Skip to content

Commit

Permalink
fix typo / add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xinaesthete committed Dec 11, 2024
1 parent ed2b5e1 commit 0c7d258
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/editable-layers/deck-community-ish/translate-mode-exp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { point, type Feature as TurfFeature, type Geometry as TurfGeometry } fro
* Each position in coordinates is transformed by calling the provided function.
* @param coords Coordinates of a feature.
* @param callback A function to transform each coordinate.
* @retuns Transformed coordinates.
* @returns Transformed coordinates.
*/
export function mapCoords(
coords: AnyCoordinates,
Expand Down Expand Up @@ -71,6 +71,9 @@ function translate(feature: TurfFeature<TurfGeometry>, dp: [number, number]) {
}


/**
* This is an edit mode for translating GeoJSON features with non-geographic coordinates.
*/
export default class TranslateModeEx extends TranslateMode {
getTranslateAction(startDragPoint: Position, currentPoint: Position, editType: string, props: ModeProps<FeatureCollection>): GeoJsonEditAction | null | undefined {
if (!this._geometryBeforeTranslate) {
Expand Down

0 comments on commit 0c7d258

Please sign in to comment.