@deck.gl-community/editable-layers 9.0.2 → 9.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/edit-modes/composite-mode.d.ts +4 -3
- package/dist/edit-modes/composite-mode.d.ts.map +1 -0
- package/dist/edit-modes/composite-mode.js +1 -1
- package/dist/edit-modes/draw-90degree-polygon-mode.d.ts +4 -3
- package/dist/edit-modes/draw-90degree-polygon-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-90degree-polygon-mode.js +2 -2
- package/dist/edit-modes/draw-circle-by-diameter-mode.d.ts +4 -3
- package/dist/edit-modes/draw-circle-by-diameter-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-circle-by-diameter-mode.js +3 -3
- package/dist/edit-modes/draw-circle-from-center-mode.d.ts +4 -3
- package/dist/edit-modes/draw-circle-from-center-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-circle-from-center-mode.js +2 -2
- package/dist/edit-modes/draw-ellipse-by-bounding-box-mode.d.ts +3 -2
- package/dist/edit-modes/draw-ellipse-by-bounding-box-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-ellipse-by-bounding-box-mode.js +2 -2
- package/dist/edit-modes/draw-ellipse-using-three-points-mode.d.ts +3 -2
- package/dist/edit-modes/draw-ellipse-using-three-points-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-ellipse-using-three-points-mode.js +2 -2
- package/dist/edit-modes/draw-line-string-mode.d.ts +4 -3
- package/dist/edit-modes/draw-line-string-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-line-string-mode.js +3 -3
- package/dist/edit-modes/draw-point-mode.d.ts +4 -3
- package/dist/edit-modes/draw-point-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-point-mode.js +1 -1
- package/dist/edit-modes/draw-polygon-by-dragging-mode.d.ts +4 -3
- package/dist/edit-modes/draw-polygon-by-dragging-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-polygon-by-dragging-mode.js +2 -2
- package/dist/edit-modes/draw-polygon-mode.d.ts +4 -3
- package/dist/edit-modes/draw-polygon-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-polygon-mode.js +2 -2
- package/dist/edit-modes/draw-rectangle-from-center-mode.d.ts +3 -2
- package/dist/edit-modes/draw-rectangle-from-center-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-rectangle-from-center-mode.js +1 -1
- package/dist/edit-modes/draw-rectangle-mode.d.ts +3 -2
- package/dist/edit-modes/draw-rectangle-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-rectangle-mode.js +1 -1
- package/dist/edit-modes/draw-rectangle-using-three-points-mode.d.ts +3 -2
- package/dist/edit-modes/draw-rectangle-using-three-points-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-rectangle-using-three-points-mode.js +2 -2
- package/dist/edit-modes/draw-square-from-center-mode.d.ts +3 -2
- package/dist/edit-modes/draw-square-from-center-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-square-from-center-mode.js +1 -1
- package/dist/edit-modes/draw-square-mode.d.ts +3 -2
- package/dist/edit-modes/draw-square-mode.d.ts.map +1 -0
- package/dist/edit-modes/draw-square-mode.js +1 -1
- package/dist/edit-modes/duplicate-mode.d.ts +4 -3
- package/dist/edit-modes/duplicate-mode.d.ts.map +1 -0
- package/dist/edit-modes/duplicate-mode.js +1 -1
- package/dist/edit-modes/edit-mode.d.ts +2 -1
- package/dist/edit-modes/edit-mode.d.ts.map +1 -0
- package/dist/edit-modes/elevation-mode.d.ts +4 -3
- package/dist/edit-modes/elevation-mode.d.ts.map +1 -0
- package/dist/edit-modes/elevation-mode.js +2 -2
- package/dist/edit-modes/extend-line-string-mode.d.ts +4 -3
- package/dist/edit-modes/extend-line-string-mode.d.ts.map +1 -0
- package/dist/edit-modes/extend-line-string-mode.js +2 -2
- package/dist/edit-modes/extrude-mode.d.ts +4 -3
- package/dist/edit-modes/extrude-mode.d.ts.map +1 -0
- package/dist/edit-modes/extrude-mode.js +3 -3
- package/dist/edit-modes/geojson-edit-mode.d.ts +4 -3
- package/dist/edit-modes/geojson-edit-mode.d.ts.map +1 -0
- package/dist/edit-modes/geojson-edit-mode.js +2 -2
- package/dist/edit-modes/immutable-feature-collection.d.ts +2 -1
- package/dist/edit-modes/immutable-feature-collection.d.ts.map +1 -0
- package/dist/edit-modes/measure-angle-mode.d.ts +4 -3
- package/dist/edit-modes/measure-angle-mode.d.ts.map +1 -0
- package/dist/edit-modes/measure-angle-mode.js +2 -2
- package/dist/edit-modes/measure-area-mode.d.ts +4 -3
- package/dist/edit-modes/measure-area-mode.d.ts.map +1 -0
- package/dist/edit-modes/measure-area-mode.js +1 -1
- package/dist/edit-modes/measure-distance-mode.d.ts +4 -3
- package/dist/edit-modes/measure-distance-mode.d.ts.map +1 -0
- package/dist/edit-modes/measure-distance-mode.js +2 -2
- package/dist/edit-modes/modify-mode.d.ts +5 -4
- package/dist/edit-modes/modify-mode.d.ts.map +1 -0
- package/dist/edit-modes/modify-mode.js +3 -3
- package/dist/edit-modes/resize-circle-mode.d.ts +6 -5
- package/dist/edit-modes/resize-circle-mode.d.ts.map +1 -0
- package/dist/edit-modes/resize-circle-mode.js +3 -3
- package/dist/edit-modes/rotate-mode.d.ts +4 -3
- package/dist/edit-modes/rotate-mode.d.ts.map +1 -0
- package/dist/edit-modes/rotate-mode.js +3 -3
- package/dist/edit-modes/scale-mode.d.ts +4 -3
- package/dist/edit-modes/scale-mode.d.ts.map +1 -0
- package/dist/edit-modes/scale-mode.js +3 -3
- package/dist/edit-modes/snappable-mode.d.ts +4 -3
- package/dist/edit-modes/snappable-mode.d.ts.map +1 -0
- package/dist/edit-modes/snappable-mode.js +2 -2
- package/dist/edit-modes/split-polygon-mode.d.ts +4 -3
- package/dist/edit-modes/split-polygon-mode.d.ts.map +1 -0
- package/dist/edit-modes/split-polygon-mode.js +3 -3
- package/dist/edit-modes/three-click-polygon-mode.d.ts +4 -3
- package/dist/edit-modes/three-click-polygon-mode.d.ts.map +1 -0
- package/dist/edit-modes/three-click-polygon-mode.js +1 -1
- package/dist/edit-modes/transform-mode.d.ts +4 -3
- package/dist/edit-modes/transform-mode.d.ts.map +1 -0
- package/dist/edit-modes/transform-mode.js +4 -4
- package/dist/edit-modes/translate-mode.d.ts +4 -3
- package/dist/edit-modes/translate-mode.d.ts.map +1 -0
- package/dist/edit-modes/translate-mode.js +4 -4
- package/dist/edit-modes/two-click-polygon-mode.d.ts +4 -3
- package/dist/edit-modes/two-click-polygon-mode.d.ts.map +1 -0
- package/dist/edit-modes/two-click-polygon-mode.js +1 -1
- package/dist/edit-modes/types.d.ts +2 -1
- package/dist/edit-modes/types.d.ts.map +1 -0
- package/dist/edit-modes/utils.d.ts +3 -2
- package/dist/edit-modes/utils.d.ts.map +1 -0
- package/dist/edit-modes/utils.js +1 -0
- package/dist/edit-modes/view-mode.d.ts +2 -1
- package/dist/edit-modes/view-mode.d.ts.map +1 -0
- package/dist/edit-modes/view-mode.js +1 -1
- package/dist/editable-layers/editable-geojson-layer.d.ts +6 -5
- package/dist/editable-layers/editable-geojson-layer.d.ts.map +1 -0
- package/dist/editable-layers/editable-geojson-layer.js +28 -28
- package/dist/editable-layers/editable-h3-cluster-layer.d.ts +2 -1
- package/dist/editable-layers/editable-h3-cluster-layer.d.ts.map +1 -0
- package/dist/editable-layers/editable-h3-cluster-layer.js +4 -4
- package/dist/editable-layers/editable-layer.d.ts +3 -2
- package/dist/editable-layers/editable-layer.d.ts.map +1 -0
- package/dist/editable-layers/editable-path-layer.d.ts +1 -0
- package/dist/editable-layers/editable-path-layer.d.ts.map +1 -0
- package/dist/editable-layers/editable-path-layer.js +1 -1
- package/dist/editable-layers/elevated-edit-handle-layer.d.ts +1 -0
- package/dist/editable-layers/elevated-edit-handle-layer.d.ts.map +1 -0
- package/dist/editable-layers/junction-scatterplot-layer.d.ts +2 -1
- package/dist/editable-layers/junction-scatterplot-layer.d.ts.map +1 -0
- package/dist/editable-layers/selection-layer.d.ts +1 -0
- package/dist/editable-layers/selection-layer.d.ts.map +1 -0
- package/dist/editable-layers/selection-layer.js +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +59 -58
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52 -52
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/deck-renderer/deck-cache.d.ts +1 -0
- package/dist/lib/deck-renderer/deck-cache.d.ts.map +1 -0
- package/dist/lib/deck-renderer/deck-drawer.d.ts +2 -1
- package/dist/lib/deck-renderer/deck-drawer.d.ts.map +1 -0
- package/dist/lib/feature.d.ts +3 -2
- package/dist/lib/feature.d.ts.map +1 -0
- package/dist/lib/layer-mouse-event.d.ts +2 -1
- package/dist/lib/layer-mouse-event.d.ts.map +1 -0
- package/dist/lib/layers/junctions-layer.d.ts +4 -3
- package/dist/lib/layers/junctions-layer.d.ts.map +1 -0
- package/dist/lib/layers/junctions-layer.js +4 -4
- package/dist/lib/layers/segments-layer.d.ts +3 -2
- package/dist/lib/layers/segments-layer.d.ts.map +1 -0
- package/dist/lib/layers/segments-layer.js +4 -4
- package/dist/lib/layers/texts-layer.d.ts +3 -2
- package/dist/lib/layers/texts-layer.d.ts.map +1 -0
- package/dist/lib/layers/texts-layer.js +4 -4
- package/dist/lib/math.d.ts +2 -1
- package/dist/lib/math.d.ts.map +1 -0
- package/dist/lib/nebula-core.d.ts +2 -1
- package/dist/lib/nebula-core.d.ts.map +1 -0
- package/dist/lib/nebula-core.js +3 -3
- package/dist/lib/nebula-layer.d.ts +2 -1
- package/dist/lib/nebula-layer.d.ts.map +1 -0
- package/dist/lib/style.d.ts +1 -0
- package/dist/lib/style.d.ts.map +1 -0
- package/dist/mode-handlers/composite-mode-handler.d.ts +4 -3
- package/dist/mode-handlers/composite-mode-handler.d.ts.map +1 -0
- package/dist/mode-handlers/composite-mode-handler.js +1 -1
- package/dist/mode-handlers/draw-90degree-polygon-handler.d.ts +4 -3
- package/dist/mode-handlers/draw-90degree-polygon-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-90degree-polygon-handler.js +2 -2
- package/dist/mode-handlers/draw-circle-by-bounding-box-handler.d.ts +4 -3
- package/dist/mode-handlers/draw-circle-by-bounding-box-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-circle-by-bounding-box-handler.js +2 -2
- package/dist/mode-handlers/draw-circle-from-center-handler.d.ts +4 -3
- package/dist/mode-handlers/draw-circle-from-center-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-circle-from-center-handler.js +1 -1
- package/dist/mode-handlers/draw-ellipse-by-bounding-box-handler.d.ts +4 -3
- package/dist/mode-handlers/draw-ellipse-by-bounding-box-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-ellipse-by-bounding-box-handler.js +2 -2
- package/dist/mode-handlers/draw-ellipse-using-three-points-handler.d.ts +4 -3
- package/dist/mode-handlers/draw-ellipse-using-three-points-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-ellipse-using-three-points-handler.js +2 -2
- package/dist/mode-handlers/draw-line-string-handler.d.ts +3 -2
- package/dist/mode-handlers/draw-line-string-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-line-string-handler.js +1 -1
- package/dist/mode-handlers/draw-point-handler.d.ts +3 -2
- package/dist/mode-handlers/draw-point-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-point-handler.js +1 -1
- package/dist/mode-handlers/draw-polygon-handler.d.ts +4 -3
- package/dist/mode-handlers/draw-polygon-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-polygon-handler.js +1 -1
- package/dist/mode-handlers/draw-rectangle-handler.d.ts +4 -3
- package/dist/mode-handlers/draw-rectangle-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-rectangle-handler.js +1 -1
- package/dist/mode-handlers/draw-rectangle-using-three-points-handler.d.ts +4 -3
- package/dist/mode-handlers/draw-rectangle-using-three-points-handler.d.ts.map +1 -0
- package/dist/mode-handlers/draw-rectangle-using-three-points-handler.js +2 -2
- package/dist/mode-handlers/duplicate-handler.d.ts +4 -3
- package/dist/mode-handlers/duplicate-handler.d.ts.map +1 -0
- package/dist/mode-handlers/duplicate-handler.js +1 -1
- package/dist/mode-handlers/elevation-handler.d.ts +5 -4
- package/dist/mode-handlers/elevation-handler.d.ts.map +1 -0
- package/dist/mode-handlers/elevation-handler.js +2 -2
- package/dist/mode-handlers/extrude-handler.d.ts +4 -3
- package/dist/mode-handlers/extrude-handler.d.ts.map +1 -0
- package/dist/mode-handlers/extrude-handler.js +3 -3
- package/dist/mode-handlers/mode-handler.d.ts +4 -3
- package/dist/mode-handlers/mode-handler.d.ts.map +1 -0
- package/dist/mode-handlers/mode-handler.js +1 -1
- package/dist/mode-handlers/modify-handler.d.ts +5 -4
- package/dist/mode-handlers/modify-handler.d.ts.map +1 -0
- package/dist/mode-handlers/modify-handler.js +2 -2
- package/dist/mode-handlers/rotate-handler.d.ts +4 -3
- package/dist/mode-handlers/rotate-handler.d.ts.map +1 -0
- package/dist/mode-handlers/rotate-handler.js +1 -1
- package/dist/mode-handlers/scale-handler.d.ts +4 -3
- package/dist/mode-handlers/scale-handler.d.ts.map +1 -0
- package/dist/mode-handlers/scale-handler.js +1 -1
- package/dist/mode-handlers/snappable-handler.d.ts +4 -3
- package/dist/mode-handlers/snappable-handler.d.ts.map +1 -0
- package/dist/mode-handlers/snappable-handler.js +1 -1
- package/dist/mode-handlers/split-polygon-handler.d.ts +3 -2
- package/dist/mode-handlers/split-polygon-handler.d.ts.map +1 -0
- package/dist/mode-handlers/split-polygon-handler.js +2 -2
- package/dist/mode-handlers/three-click-polygon-handler.d.ts +3 -2
- package/dist/mode-handlers/three-click-polygon-handler.d.ts.map +1 -0
- package/dist/mode-handlers/three-click-polygon-handler.js +1 -1
- package/dist/mode-handlers/translate-handler.d.ts +4 -3
- package/dist/mode-handlers/translate-handler.d.ts.map +1 -0
- package/dist/mode-handlers/translate-handler.js +1 -1
- package/dist/mode-handlers/two-click-polygon-handler.d.ts +3 -2
- package/dist/mode-handlers/two-click-polygon-handler.d.ts.map +1 -0
- package/dist/mode-handlers/two-click-polygon-handler.js +1 -1
- package/dist/mode-handlers/view-handler.d.ts +3 -2
- package/dist/mode-handlers/view-handler.d.ts.map +1 -0
- package/dist/mode-handlers/view-handler.js +1 -1
- package/dist/shaderlib/color/color.d.ts +1 -0
- package/dist/shaderlib/color/color.d.ts.map +1 -0
- package/dist/shaderlib/utils/utils.d.ts +1 -0
- package/dist/shaderlib/utils/utils.d.ts.map +1 -0
- package/dist/utils/curve-utils.d.ts +1 -0
- package/dist/utils/curve-utils.d.ts.map +1 -0
- package/dist/utils/geojson-types.d.ts +1 -0
- package/dist/utils/geojson-types.d.ts.map +1 -0
- package/dist/utils/memoize.d.ts +1 -0
- package/dist/utils/memoize.d.ts.map +1 -0
- package/dist/utils/translate-from-center.d.ts +1 -0
- package/dist/utils/translate-from-center.d.ts.map +1 -0
- package/dist/utils/translate-from-center.js +4 -4
- package/dist/utils/types.d.ts +1 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/utils.d.ts +5 -4
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +3 -3
- package/package.json +3 -2
- package/src/edit-modes/utils.ts +2 -0
- package/src/utils/translate-from-center.ts +4 -4
- package/src/utils/utils.ts +3 -3
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import circle from '@turf/circle';
|
|
5
5
|
import distance from '@turf/distance';
|
|
6
|
-
import { getIntermediatePosition } from
|
|
7
|
-
import { TwoClickPolygonHandler } from
|
|
6
|
+
import { getIntermediatePosition } from "./mode-handler.js";
|
|
7
|
+
import { TwoClickPolygonHandler } from "./two-click-polygon-handler.js";
|
|
8
8
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
9
9
|
export class DrawCircleByBoundingBoxHandler extends TwoClickPolygonHandler {
|
|
10
10
|
handlePointerMove(event) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PointerMoveEvent } from
|
|
2
|
-
import { EditAction } from
|
|
3
|
-
import { TwoClickPolygonHandler } from
|
|
1
|
+
import { PointerMoveEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction } from "./mode-handler.js";
|
|
3
|
+
import { TwoClickPolygonHandler } from "./two-click-polygon-handler.js";
|
|
4
4
|
export declare class DrawCircleFromCenterHandler extends TwoClickPolygonHandler {
|
|
5
5
|
handlePointerMove(event: PointerMoveEvent): {
|
|
6
6
|
editAction: EditAction | null | undefined;
|
|
7
7
|
cancelMapPan: boolean;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=draw-circle-from-center-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-circle-from-center-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-circle-from-center-handler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,gBAAgB,EAAC,+BAA4B;AACrD,OAAO,EAAC,UAAU,EAAC,0BAAuB;AAC1C,OAAO,EAAC,sBAAsB,EAAC,uCAAoC;AAGnE,qBAAa,2BAA4B,SAAQ,sBAAsB;IACrE,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;CA0BF"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import circle from '@turf/circle';
|
|
5
5
|
import distance from '@turf/distance';
|
|
6
|
-
import { TwoClickPolygonHandler } from
|
|
6
|
+
import { TwoClickPolygonHandler } from "./two-click-polygon-handler.js";
|
|
7
7
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
8
8
|
export class DrawCircleFromCenterHandler extends TwoClickPolygonHandler {
|
|
9
9
|
handlePointerMove(event) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PointerMoveEvent } from
|
|
2
|
-
import { EditAction } from
|
|
3
|
-
import { TwoClickPolygonHandler } from
|
|
1
|
+
import { PointerMoveEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction } from "./mode-handler.js";
|
|
3
|
+
import { TwoClickPolygonHandler } from "./two-click-polygon-handler.js";
|
|
4
4
|
export declare class DrawEllipseByBoundingBoxHandler extends TwoClickPolygonHandler {
|
|
5
5
|
handlePointerMove(event: PointerMoveEvent): {
|
|
6
6
|
editAction: EditAction | null | undefined;
|
|
7
7
|
cancelMapPan: boolean;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=draw-ellipse-by-bounding-box-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-ellipse-by-bounding-box-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-ellipse-by-bounding-box-handler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,gBAAgB,EAAC,+BAA4B;AACrD,OAAO,EAAC,UAAU,EAA0B,0BAAuB;AACnE,OAAO,EAAC,sBAAsB,EAAC,uCAAoC;AAGnE,qBAAa,+BAAgC,SAAQ,sBAAsB;IACzE,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;CA2BF"}
|
|
@@ -5,8 +5,8 @@ import bboxPolygon from '@turf/bbox-polygon';
|
|
|
5
5
|
import distance from '@turf/distance';
|
|
6
6
|
import ellipse from '@turf/ellipse';
|
|
7
7
|
import { point } from '@turf/helpers';
|
|
8
|
-
import { getIntermediatePosition } from
|
|
9
|
-
import { TwoClickPolygonHandler } from
|
|
8
|
+
import { getIntermediatePosition } from "./mode-handler.js";
|
|
9
|
+
import { TwoClickPolygonHandler } from "./two-click-polygon-handler.js";
|
|
10
10
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
11
11
|
export class DrawEllipseByBoundingBoxHandler extends TwoClickPolygonHandler {
|
|
12
12
|
handlePointerMove(event) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PointerMoveEvent } from
|
|
2
|
-
import { EditAction } from
|
|
3
|
-
import { ThreeClickPolygonHandler } from
|
|
1
|
+
import { PointerMoveEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction } from "./mode-handler.js";
|
|
3
|
+
import { ThreeClickPolygonHandler } from "./three-click-polygon-handler.js";
|
|
4
4
|
export declare class DrawEllipseUsingThreePointsHandler extends ThreeClickPolygonHandler {
|
|
5
5
|
handlePointerMove(event: PointerMoveEvent): {
|
|
6
6
|
editAction: EditAction | null | undefined;
|
|
7
7
|
cancelMapPan: boolean;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=draw-ellipse-using-three-points-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-ellipse-using-three-points-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-ellipse-using-three-points-handler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,gBAAgB,EAAC,+BAA4B;AACrD,OAAO,EAAC,UAAU,EAA0B,0BAAuB;AACnE,OAAO,EAAC,wBAAwB,EAAC,yCAAsC;AAGvE,qBAAa,kCAAmC,SAAQ,wBAAwB;IAC9E,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;CAgCF"}
|
|
@@ -5,8 +5,8 @@ import distance from '@turf/distance';
|
|
|
5
5
|
import ellipse from '@turf/ellipse';
|
|
6
6
|
import bearing from '@turf/bearing';
|
|
7
7
|
import { point } from '@turf/helpers';
|
|
8
|
-
import { getIntermediatePosition } from
|
|
9
|
-
import { ThreeClickPolygonHandler } from
|
|
8
|
+
import { getIntermediatePosition } from "./mode-handler.js";
|
|
9
|
+
import { ThreeClickPolygonHandler } from "./three-click-polygon-handler.js";
|
|
10
10
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
11
11
|
export class DrawEllipseUsingThreePointsHandler extends ThreeClickPolygonHandler {
|
|
12
12
|
handlePointerMove(event) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClickEvent, PointerMoveEvent } from
|
|
2
|
-
import { EditAction, ModeHandler } from
|
|
1
|
+
import { ClickEvent, PointerMoveEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction, ModeHandler } from "./mode-handler.js";
|
|
3
3
|
export declare class DrawLineStringHandler extends ModeHandler {
|
|
4
4
|
handleClick(event: ClickEvent): EditAction | null | undefined;
|
|
5
5
|
handlePointerMove(event: PointerMoveEvent): {
|
|
@@ -7,3 +7,4 @@ export declare class DrawLineStringHandler extends ModeHandler {
|
|
|
7
7
|
cancelMapPan: boolean;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=draw-line-string-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-line-string-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-line-string-handler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,+BAA4B;AACjE,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,0BAAuB;AAGvD,qBAAa,qBAAsB,SAAQ,WAAW;IACpD,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAuD7D,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;CA2CF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ModeHandler } from
|
|
4
|
+
import { ModeHandler } from "./mode-handler.js";
|
|
5
5
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
6
6
|
export class DrawLineStringHandler extends ModeHandler {
|
|
7
7
|
handleClick(event) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ClickEvent } from
|
|
2
|
-
import { EditAction, ModeHandler } from
|
|
1
|
+
import { ClickEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction, ModeHandler } from "./mode-handler.js";
|
|
3
3
|
export declare class DrawPointHandler extends ModeHandler {
|
|
4
4
|
handleClick({ mapCoords }: ClickEvent): EditAction | null | undefined;
|
|
5
5
|
}
|
|
6
|
+
//# sourceMappingURL=draw-point-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-point-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-point-handler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,UAAU,EAAC,+BAA4B;AAC/C,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,0BAAuB;AAGvD,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,WAAW,CAAC,EAAC,SAAS,EAAC,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;CAQpE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ModeHandler } from
|
|
4
|
+
import { ModeHandler } from "./mode-handler.js";
|
|
5
5
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
6
6
|
export class DrawPointHandler extends ModeHandler {
|
|
7
7
|
handleClick({ mapCoords }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Position } from
|
|
2
|
-
import { ClickEvent, PointerMoveEvent } from
|
|
3
|
-
import { EditAction, EditHandle, ModeHandler } from
|
|
1
|
+
import { Position } from "../utils/geojson-types.js";
|
|
2
|
+
import { ClickEvent, PointerMoveEvent } from "../edit-modes/types.js";
|
|
3
|
+
import { EditAction, EditHandle, ModeHandler } from "./mode-handler.js";
|
|
4
4
|
export declare class DrawPolygonHandler extends ModeHandler {
|
|
5
5
|
getEditHandles(picks?: Array<Record<string, any>>, mapCoords?: Position): EditHandle[];
|
|
6
6
|
handleClick(event: ClickEvent): EditAction | null | undefined;
|
|
@@ -9,3 +9,4 @@ export declare class DrawPolygonHandler extends ModeHandler {
|
|
|
9
9
|
cancelMapPan: boolean;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
+
//# sourceMappingURL=draw-polygon-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-polygon-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-polygon-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAU,QAAQ,EAAC,kCAA+B;AACzD,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,+BAA4B;AACjE,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EAGZ,0BAAuB;AAGxB,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,EAAE;IAkBtF,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAwD7D,iBAAiB,CAAC,EAAC,SAAS,EAAC,EAAE,gBAAgB,GAAG;QAChD,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;CA+BF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from
|
|
4
|
+
import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from "./mode-handler.js";
|
|
5
5
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
6
6
|
export class DrawPolygonHandler extends ModeHandler {
|
|
7
7
|
getEditHandles(picks, mapCoords) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PointerMoveEvent } from
|
|
2
|
-
import { EditAction } from
|
|
3
|
-
import { TwoClickPolygonHandler } from
|
|
1
|
+
import { PointerMoveEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction } from "./mode-handler.js";
|
|
3
|
+
import { TwoClickPolygonHandler } from "./two-click-polygon-handler.js";
|
|
4
4
|
export declare class DrawRectangleHandler extends TwoClickPolygonHandler {
|
|
5
5
|
handlePointerMove(event: PointerMoveEvent): {
|
|
6
6
|
editAction: EditAction | null | undefined;
|
|
7
7
|
cancelMapPan: boolean;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=draw-rectangle-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-rectangle-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-rectangle-handler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,gBAAgB,EAAC,+BAA4B;AACrD,OAAO,EAAC,UAAU,EAAC,0BAAuB;AAC1C,OAAO,EAAC,sBAAsB,EAAC,uCAAoC;AAGnE,qBAAa,oBAAqB,SAAQ,sBAAsB;IAC9D,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;CAiBF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import bboxPolygon from '@turf/bbox-polygon';
|
|
5
|
-
import { TwoClickPolygonHandler } from
|
|
5
|
+
import { TwoClickPolygonHandler } from "./two-click-polygon-handler.js";
|
|
6
6
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
7
7
|
export class DrawRectangleHandler extends TwoClickPolygonHandler {
|
|
8
8
|
handlePointerMove(event) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PointerMoveEvent } from
|
|
2
|
-
import { EditAction } from
|
|
3
|
-
import { ThreeClickPolygonHandler } from
|
|
1
|
+
import { PointerMoveEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction } from "./mode-handler.js";
|
|
3
|
+
import { ThreeClickPolygonHandler } from "./three-click-polygon-handler.js";
|
|
4
4
|
export declare class DrawRectangleUsingThreePointsHandler extends ThreeClickPolygonHandler {
|
|
5
5
|
handlePointerMove(event: PointerMoveEvent): {
|
|
6
6
|
editAction: EditAction | null | undefined;
|
|
7
7
|
cancelMapPan: boolean;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=draw-rectangle-using-three-points-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-rectangle-using-three-points-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-rectangle-using-three-points-handler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,gBAAgB,EAAC,+BAA4B;AACrD,OAAO,EAAC,UAAU,EAAC,0BAAuB;AAC1C,OAAO,EAAC,wBAAwB,EAAC,yCAAsC;AAGvE,qBAAa,oCAAqC,SAAQ,wBAAwB;IAChF,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;CAgDF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { generatePointsParallelToLinePoints } from
|
|
5
|
-
import { ThreeClickPolygonHandler } from
|
|
4
|
+
import { generatePointsParallelToLinePoints } from "../utils/utils.js";
|
|
5
|
+
import { ThreeClickPolygonHandler } from "./three-click-polygon-handler.js";
|
|
6
6
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
7
7
|
export class DrawRectangleUsingThreePointsHandler extends ThreeClickPolygonHandler {
|
|
8
8
|
handlePointerMove(event) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { StartDraggingEvent } from
|
|
2
|
-
import { EditAction } from
|
|
3
|
-
import { TranslateHandler } from
|
|
1
|
+
import { StartDraggingEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction } from "./mode-handler.js";
|
|
3
|
+
import { TranslateHandler } from "./translate-handler.js";
|
|
4
4
|
export declare class DuplicateHandler extends TranslateHandler {
|
|
5
5
|
handleStartDragging(event: StartDraggingEvent): EditAction | null | undefined;
|
|
6
6
|
getCursor({ isDragging }: {
|
|
7
7
|
isDragging: boolean;
|
|
8
8
|
}): string;
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=duplicate-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duplicate-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/duplicate-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,kBAAkB,EAAC,+BAA4B;AACvD,OAAO,EAAC,UAAU,EAAC,0BAAuB;AAC1C,OAAO,EAAC,gBAAgB,EAAC,+BAA4B;AAGrD,qBAAa,gBAAiB,SAAQ,gBAAgB;IACpD,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAY7E,SAAS,CAAC,EAAC,UAAU,EAAC,EAAE;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,GAAG,MAAM;CAMvD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { TranslateHandler } from
|
|
4
|
+
import { TranslateHandler } from "./translate-handler.js";
|
|
5
5
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
6
6
|
export class DuplicateHandler extends TranslateHandler {
|
|
7
7
|
handleStartDragging(event) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Position } from
|
|
2
|
-
import { PointerMoveEvent, StopDraggingEvent } from
|
|
3
|
-
import { EditAction } from
|
|
4
|
-
import { ModifyHandler } from
|
|
1
|
+
import { Position } from "../utils/geojson-types.js";
|
|
2
|
+
import { PointerMoveEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
3
|
+
import { EditAction } from "./mode-handler.js";
|
|
4
|
+
import { ModifyHandler } from "./modify-handler.js";
|
|
5
5
|
export declare class ElevationHandler extends ModifyHandler {
|
|
6
6
|
makeElevatedEvent<T extends PointerMoveEvent | StopDraggingEvent>(event: T, position: Position): T;
|
|
7
7
|
handlePointerMove(event: PointerMoveEvent): {
|
|
@@ -17,3 +17,4 @@ export declare class ElevationHandler extends ModifyHandler {
|
|
|
17
17
|
screenCoords: Position;
|
|
18
18
|
}): number;
|
|
19
19
|
}
|
|
20
|
+
//# sourceMappingURL=elevation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/elevation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,QAAQ,EAAC,kCAA+B;AAChD,OAAO,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,+BAA4B;AACxE,OAAO,EAAC,UAAU,EAAsB,0BAAuB;AAE/D,OAAO,EAAC,aAAa,EAAC,4BAAyB;AAa/C,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,iBAAiB,CAAC,CAAC,SAAS,gBAAgB,GAAG,iBAAiB,EAC9D,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,QAAQ,GACjB,CAAC;IA2BJ,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IAMD,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAM3E,SAAS,CAAC,MAAM,EAAE;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,GAAG,MAAM;IAQhD,MAAM,CAAC,oCAAoC,CACzC,QAAQ,EAAE,GAAG,EACb,EACE,uBAAuB,EACvB,YAAY,EACb,EAAE;QACD,uBAAuB,EAAE,QAAQ,CAAC;QAClC,YAAY,EAAE,QAAQ,CAAC;KACxB,GACA,MAAM;CAOV"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { getPickedEditHandle } from
|
|
5
|
-
import { ModifyHandler } from
|
|
4
|
+
import { getPickedEditHandle } from "./mode-handler.js";
|
|
5
|
+
import { ModifyHandler } from "./modify-handler.js";
|
|
6
6
|
function defaultCalculateElevationChange({ pointerDownScreenCoords, screenCoords }) {
|
|
7
7
|
return 10 * (pointerDownScreenCoords[1] - screenCoords[1]);
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from
|
|
2
|
-
import { EditAction } from
|
|
3
|
-
import { ModifyHandler } from
|
|
1
|
+
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { EditAction } from "./mode-handler.js";
|
|
3
|
+
import { ModifyHandler } from "./modify-handler.js";
|
|
4
4
|
export declare class ExtrudeHandler extends ModifyHandler {
|
|
5
5
|
isPointAdded: boolean;
|
|
6
6
|
handlePointerMove(event: PointerMoveEvent): {
|
|
@@ -16,3 +16,4 @@ export declare class ExtrudeHandler extends ModifyHandler {
|
|
|
16
16
|
prevPositionIndexes(positionIndexes: number[], size: number): number[];
|
|
17
17
|
getPointForPositionIndexes(positionIndexes: number[], featureIndex: number): any;
|
|
18
18
|
}
|
|
19
|
+
//# sourceMappingURL=extrude-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extrude-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/extrude-handler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,+BAA4B;AAC5F,OAAO,EAAC,UAAU,EAAsB,0BAAuB;AAE/D,OAAO,EAAC,aAAa,EAAC,4BAAyB;AAG/C,qBAAa,cAAe,SAAQ,aAAa;IAC/C,YAAY,UAAS;IACrB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IAiDD,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAyD7E,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IA8C3E,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM;IAmB/D,UAAU,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;IAQ3B,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAkB1E,mBAAmB,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;IAQtE,mBAAmB,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;IAQtE,0BAA0B,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM;CAkB3E"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import bearing from '@turf/bearing';
|
|
5
|
-
import { generatePointsParallelToLinePoints } from
|
|
6
|
-
import { getPickedEditHandle } from
|
|
7
|
-
import { ModifyHandler } from
|
|
5
|
+
import { generatePointsParallelToLinePoints } from "../utils/utils.js";
|
|
6
|
+
import { getPickedEditHandle } from "./mode-handler.js";
|
|
7
|
+
import { ModifyHandler } from "./modify-handler.js";
|
|
8
8
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
9
9
|
export class ExtrudeHandler extends ModifyHandler {
|
|
10
10
|
isPointAdded = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FeatureCollection, Feature, Polygon, Geometry, Position } from
|
|
2
|
-
import { ClickEvent, Pick, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from
|
|
3
|
-
import { ImmutableFeatureCollection } from
|
|
1
|
+
import { FeatureCollection, Feature, Polygon, Geometry, Position } from "../utils/geojson-types.js";
|
|
2
|
+
import { ClickEvent, Pick, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
3
|
+
import { ImmutableFeatureCollection } from "../edit-modes/immutable-feature-collection.js";
|
|
4
4
|
export type EditHandleType = 'existing' | 'intermediate' | 'snap';
|
|
5
5
|
export type EditHandle = {
|
|
6
6
|
position: Position;
|
|
@@ -59,3 +59,4 @@ export declare class ModeHandler {
|
|
|
59
59
|
export declare function getPickedEditHandle(picks: any[] | null | undefined): EditHandle | null | undefined;
|
|
60
60
|
export declare function getIntermediatePosition(position1: Position, position2: Position): Position;
|
|
61
61
|
export declare function getEditHandlesForGeometry(geometry: Geometry, featureIndex: number, editHandleType?: EditHandleType): EditHandle[];
|
|
62
|
+
//# sourceMappingURL=mode-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mode-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/mode-handler.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import turfUnion from '@turf/union';
|
|
6
6
|
import turfDifference from '@turf/difference';
|
|
7
7
|
import turfIntersect from '@turf/intersect';
|
|
8
|
-
import { ImmutableFeatureCollection } from
|
|
8
|
+
import { ImmutableFeatureCollection } from "../edit-modes/immutable-feature-collection.js";
|
|
9
9
|
export class ModeHandler {
|
|
10
10
|
// TODO: add underscore
|
|
11
11
|
featureCollection = undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Position, FeatureOf, Point, LineString } from
|
|
2
|
-
import { NearestPointType } from
|
|
3
|
-
import { ClickEvent, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from
|
|
4
|
-
import { EditAction, EditHandle, ModeHandler } from
|
|
1
|
+
import { Position, FeatureOf, Point, LineString } from "../utils/geojson-types.js";
|
|
2
|
+
import { NearestPointType } from "../utils/utils.js";
|
|
3
|
+
import { ClickEvent, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
4
|
+
import { EditAction, EditHandle, ModeHandler } from "./mode-handler.js";
|
|
5
5
|
export declare class ModifyHandler extends ModeHandler {
|
|
6
6
|
_lastPointerMovePicks: any;
|
|
7
7
|
getEditHandles(picks?: Array<Record<string, any>>, mapCoords?: Position): EditHandle[];
|
|
@@ -17,3 +17,4 @@ export declare class ModifyHandler extends ModeHandler {
|
|
|
17
17
|
isDragging: boolean;
|
|
18
18
|
}): string;
|
|
19
19
|
}
|
|
20
|
+
//# sourceMappingURL=modify-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modify-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/modify-handler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAC,kCAA+B;AAC9E,OAAO,EAGL,gBAAgB,EACjB,0BAAuB;AACxB,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EAClB,+BAA4B;AAC7B,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EAGZ,0BAAuB;AAGxB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,qBAAqB,EAAE,GAAG,CAAC;IAE3B,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,EAAE;IA0EtF,kBAAkB,CAAC,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,gBAAgB;IAiB5F,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAoD7D,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IA6BD,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAyB7E,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAwB3E,SAAS,CAAC,EAAC,UAAU,EAAC,EAAE;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,GAAG,MAAM;CAYvD"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import nearestPointOnLine from '@turf/nearest-point-on-line';
|
|
5
5
|
import { point, lineString as toLineString } from '@turf/helpers';
|
|
6
|
-
import { recursivelyTraverseNestedArrays, nearestPointOnProjectedLine } from
|
|
7
|
-
import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from
|
|
6
|
+
import { recursivelyTraverseNestedArrays, nearestPointOnProjectedLine } from "../utils/utils.js";
|
|
7
|
+
import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from "./mode-handler.js";
|
|
8
8
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
9
9
|
export class ModifyHandler extends ModeHandler {
|
|
10
10
|
_lastPointerMovePicks;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FeatureCollection, Position } from
|
|
2
|
-
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from
|
|
3
|
-
import { EditAction, ModeHandler } from
|
|
1
|
+
import { FeatureCollection, Position } from "../utils/geojson-types.js";
|
|
2
|
+
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
3
|
+
import { EditAction, ModeHandler } from "./mode-handler.js";
|
|
4
4
|
export declare class RotateHandler extends ModeHandler {
|
|
5
5
|
_isRotatable: boolean;
|
|
6
6
|
_geometryBeingRotated: FeatureCollection | null | undefined;
|
|
@@ -15,3 +15,4 @@ export declare class RotateHandler extends ModeHandler {
|
|
|
15
15
|
}): string;
|
|
16
16
|
getRotateAction(startDragPoint: Position, currentPoint: Position, editType: string): EditAction;
|
|
17
17
|
}
|
|
18
|
+
//# sourceMappingURL=rotate-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotate-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/rotate-handler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,iBAAiB,EAAE,QAAQ,EAAC,kCAA+B;AACnE,OAAO,EAAC,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,+BAA4B;AAC5F,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,0BAAuB;AAGvD,qBAAa,aAAc,SAAQ,WAAW;IAC5C,YAAY,EAAE,OAAO,CAAc;IACnC,qBAAqB,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;IAE5D,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IAkBD,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAS7E,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAY3E,SAAS,CAAC,EAAC,UAAU,EAAC,EAAE;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,GAAG,MAAM;IAQtD,eAAe,CAAC,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU;CA8BhG"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import turfCentroid from '@turf/centroid';
|
|
5
5
|
import turfBearing from '@turf/bearing';
|
|
6
6
|
import turfTransformRotate from '@turf/transform-rotate';
|
|
7
|
-
import { ModeHandler } from
|
|
7
|
+
import { ModeHandler } from "./mode-handler.js";
|
|
8
8
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
9
9
|
export class RotateHandler extends ModeHandler {
|
|
10
10
|
_isRotatable = undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FeatureCollection, Position } from
|
|
2
|
-
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from
|
|
3
|
-
import { EditAction, ModeHandler } from
|
|
1
|
+
import { FeatureCollection, Position } from "../utils/geojson-types.js";
|
|
2
|
+
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
3
|
+
import { EditAction, ModeHandler } from "./mode-handler.js";
|
|
4
4
|
export declare class ScaleHandler extends ModeHandler {
|
|
5
5
|
_isScalable: boolean;
|
|
6
6
|
_geometryBeingScaled: FeatureCollection | null | undefined;
|
|
@@ -15,3 +15,4 @@ export declare class ScaleHandler extends ModeHandler {
|
|
|
15
15
|
}): string;
|
|
16
16
|
getScaleAction(startDragPoint: Position, currentPoint: Position, editType: string): EditAction;
|
|
17
17
|
}
|
|
18
|
+
//# sourceMappingURL=scale-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scale-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/scale-handler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,iBAAiB,EAAE,QAAQ,EAAC,kCAA+B;AACnE,OAAO,EAAC,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,+BAA4B;AAC5F,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,0BAAuB;AAGvD,qBAAa,YAAa,SAAQ,WAAW;IAC3C,WAAW,EAAE,OAAO,CAAc;IAClC,oBAAoB,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;IAE3D,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IAkBD,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAS7E,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAY3E,SAAS,CAAC,EAAC,UAAU,EAAC,EAAE;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,GAAG,MAAM;IAQtD,cAAc,CAAC,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU;CAgC/F"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import turfCentroid from '@turf/centroid';
|
|
5
5
|
import turfDistance from '@turf/distance';
|
|
6
6
|
import turfTransformScale from '@turf/transform-scale';
|
|
7
|
-
import { ModeHandler } from
|
|
7
|
+
import { ModeHandler } from "./mode-handler.js";
|
|
8
8
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
9
9
|
export class ScaleHandler extends ModeHandler {
|
|
10
10
|
_isScalable = undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Feature, FeatureCollection, Position } from
|
|
2
|
-
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from
|
|
3
|
-
import { EditHandle, EditAction, ModeHandler } from
|
|
1
|
+
import { Feature, FeatureCollection, Position } from "../utils/geojson-types.js";
|
|
2
|
+
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
3
|
+
import { EditHandle, EditAction, ModeHandler } from "./mode-handler.js";
|
|
4
4
|
type HandlePicks = {
|
|
5
5
|
pickedHandle?: EditHandle;
|
|
6
6
|
potentialSnapHandle?: EditHandle;
|
|
@@ -31,3 +31,4 @@ export declare class SnappableHandler extends ModeHandler {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export {};
|
|
34
|
+
//# sourceMappingURL=snappable-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snappable-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/snappable-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAC,kCAA+B;AAC5E,OAAO,EAAC,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,+BAA4B;AAC5F,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EAGZ,0BAAuB;AAExB,KAAK,WAAW,GAAG;IAAC,YAAY,CAAC,EAAE,UAAU,CAAC;IAAC,mBAAmB,CAAC,EAAE,UAAU,CAAA;CAAC,CAAC;AAGjF,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,QAAQ,EAAE,WAAW,CAAC;IACtB,gBAAgB,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,4BAA4B,EAAE,QAAQ,CAAc;gBAExC,OAAO,EAAE,WAAW;IAKhC,oBAAoB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI;IAIhE,aAAa,CAAC,UAAU,EAAE,GAAG,GAAG,IAAI;IAKpC,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAIlD,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAG,gBAAgB;IAQxF,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW;IAgBzD,2BAA2B,CAAC,UAAU,EAAE,UAAU;IA0BlD,eAAe,IAAI,OAAO,EAAE;IAW5B,gCAAgC,IAAI,UAAU,EAAE;IAoBhD,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,QAAQ,GAAG,GAAG,EAAE;IAuB/E,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAQnE,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAK7E,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAQ3E,SAAS,CAAC,KAAK,EAAE;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,GAAG,MAAM;IAI/C,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;CAeF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from
|
|
4
|
+
import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from "./mode-handler.js";
|
|
5
5
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
6
6
|
export class SnappableHandler extends ModeHandler {
|
|
7
7
|
_handler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditAction, ModeHandler } from
|
|
2
|
-
import { ClickEvent, PointerMoveEvent } from
|
|
1
|
+
import { EditAction, ModeHandler } from "./mode-handler.js";
|
|
2
|
+
import { ClickEvent, PointerMoveEvent } from "../edit-modes/types.js";
|
|
3
3
|
export declare class SplitPolygonHandler extends ModeHandler {
|
|
4
4
|
calculateMapCoords(clickSequence: any, mapCoords: any): any;
|
|
5
5
|
handleClick(event: ClickEvent): EditAction | null | undefined;
|
|
@@ -9,3 +9,4 @@ export declare class SplitPolygonHandler extends ModeHandler {
|
|
|
9
9
|
};
|
|
10
10
|
splitPolygon(): EditAction;
|
|
11
11
|
}
|
|
12
|
+
//# sourceMappingURL=split-polygon-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-polygon-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/split-polygon-handler.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,0BAAuB;AACvD,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,+BAA4B;AAGjE,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,kBAAkB,CAAC,aAAa,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IAgDrD,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAoC7D,iBAAiB,CAAC,EAAC,SAAS,EAAC,EAAE,gBAAgB,GAAG;QAChD,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IAoBD,YAAY;CAqDb"}
|
|
@@ -11,8 +11,8 @@ import turfDistance from '@turf/distance';
|
|
|
11
11
|
import turfDestination from '@turf/destination';
|
|
12
12
|
import turfPolygonToLine from '@turf/polygon-to-line';
|
|
13
13
|
import nearestPointOnLine from '@turf/nearest-point-on-line';
|
|
14
|
-
import { generatePointsParallelToLinePoints } from
|
|
15
|
-
import { ModeHandler } from
|
|
14
|
+
import { generatePointsParallelToLinePoints } from "../utils/utils.js";
|
|
15
|
+
import { ModeHandler } from "./mode-handler.js";
|
|
16
16
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
17
17
|
export class SplitPolygonHandler extends ModeHandler {
|
|
18
18
|
calculateMapCoords(clickSequence, mapCoords) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ClickEvent } from
|
|
2
|
-
import { ModeHandler, EditAction } from
|
|
1
|
+
import { ClickEvent } from "../edit-modes/types.js";
|
|
2
|
+
import { ModeHandler, EditAction } from "./mode-handler.js";
|
|
3
3
|
export declare class ThreeClickPolygonHandler extends ModeHandler {
|
|
4
4
|
handleClick(event: ClickEvent): EditAction | null | undefined;
|
|
5
5
|
}
|
|
6
|
+
//# sourceMappingURL=three-click-polygon-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three-click-polygon-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/three-click-polygon-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,UAAU,EAAC,+BAA4B;AAC/C,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,0BAAuB;AAGvD,qBAAa,wBAAyB,SAAQ,WAAW;IACvD,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;CAmB9D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ModeHandler } from
|
|
4
|
+
import { ModeHandler } from "./mode-handler.js";
|
|
5
5
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
6
6
|
export class ThreeClickPolygonHandler extends ModeHandler {
|
|
7
7
|
handleClick(event) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FeatureCollection, Position } from
|
|
2
|
-
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from
|
|
3
|
-
import { EditAction, ModeHandler } from
|
|
1
|
+
import { FeatureCollection, Position } from "../utils/geojson-types.js";
|
|
2
|
+
import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
3
|
+
import { EditAction, ModeHandler } from "./mode-handler.js";
|
|
4
4
|
export declare class TranslateHandler extends ModeHandler {
|
|
5
5
|
_geometryBeforeTranslate: FeatureCollection | null | undefined;
|
|
6
6
|
_isTranslatable: boolean;
|
|
@@ -15,3 +15,4 @@ export declare class TranslateHandler extends ModeHandler {
|
|
|
15
15
|
}): string;
|
|
16
16
|
getTranslateAction(startDragPoint: Position, currentPoint: Position, editType: string): EditAction | null | undefined;
|
|
17
17
|
}
|
|
18
|
+
//# sourceMappingURL=translate-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/translate-handler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,iBAAiB,EAAE,QAAQ,EAAC,kCAA+B;AACnE,OAAO,EAAC,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,+BAA4B;AAC5F,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,0BAAuB;AAGvD,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,wBAAwB,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/D,eAAe,EAAE,OAAO,CAAc;IAEtC,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IAuBD,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAS7E,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAgB3E,SAAS,CAAC,EAAC,UAAU,EAAC,EAAE;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,GAAG,MAAM;IAOtD,kBAAkB,CAChB,cAAc,EAAE,QAAQ,EACxB,YAAY,EAAE,QAAQ,EACtB,QAAQ,EAAE,MAAM,GACf,UAAU,GAAG,IAAI,GAAG,SAAS;CAkCjC"}
|