@deck.gl-community/editable-layers 9.0.2 → 9.1.0-beta.2
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/delete-mode.d.ts +7 -0
- package/dist/edit-modes/delete-mode.d.ts.map +1 -0
- package/dist/edit-modes/delete-mode.js +22 -0
- 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 +7 -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 +6 -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 +11 -3
- 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 +12 -3
- 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 +5 -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 +6 -3
- package/dist/edit-modes/geojson-edit-mode.d.ts +6 -5
- package/dist/edit-modes/geojson-edit-mode.d.ts.map +1 -0
- package/dist/edit-modes/geojson-edit-mode.js +9 -6
- 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 +6 -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 +4 -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 +5 -4
- 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 +5 -4
- 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 +4 -2
- 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 +7 -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 +6 -5
- 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 +4 -5
- package/dist/edit-modes/types.d.ts +3 -1
- package/dist/edit-modes/types.d.ts.map +1 -0
- package/dist/edit-modes/utils.d.ts +5 -3
- package/dist/edit-modes/utils.d.ts.map +1 -0
- package/dist/edit-modes/utils.js +5 -1
- 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 +10 -9
- package/dist/editable-layers/editable-geojson-layer.d.ts.map +1 -0
- package/dist/editable-layers/editable-geojson-layer.js +30 -28
- package/dist/editable-layers/editable-h3-cluster-layer.d.ts +3 -2
- package/dist/editable-layers/editable-h3-cluster-layer.d.ts.map +1 -0
- package/dist/editable-layers/editable-h3-cluster-layer.js +4 -5
- package/dist/editable-layers/editable-layer.d.ts +7 -4
- package/dist/editable-layers/editable-layer.d.ts.map +1 -0
- package/dist/editable-layers/editable-layer.js +8 -4
- package/dist/editable-layers/editable-path-layer.d.ts +14 -1
- package/dist/editable-layers/editable-path-layer.d.ts.map +1 -0
- package/dist/editable-layers/editable-path-layer.js +21 -13
- 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 +6 -3
- package/dist/editable-layers/junction-scatterplot-layer.d.ts.map +1 -0
- package/dist/editable-layers/selection-layer.d.ts +3 -1
- package/dist/editable-layers/selection-layer.d.ts.map +1 -0
- package/dist/editable-layers/selection-layer.js +4 -5
- package/dist/index.cjs +127 -45
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +60 -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 +13 -2
- package/dist/shaderlib/color/color.d.ts.map +1 -0
- package/dist/shaderlib/color/color.js +25 -18
- 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 +4 -4
- package/package.json +11 -10
- package/src/edit-modes/delete-mode.ts +28 -0
- package/src/edit-modes/draw-circle-by-diameter-mode.ts +4 -0
- package/src/edit-modes/draw-circle-from-center-mode.ts +4 -0
- package/src/edit-modes/draw-ellipse-by-bounding-box-mode.ts +10 -1
- package/src/edit-modes/draw-ellipse-using-three-points-mode.ts +11 -1
- package/src/edit-modes/extend-line-string-mode.ts +4 -0
- package/src/edit-modes/extrude-mode.ts +6 -1
- package/src/edit-modes/geojson-edit-mode.ts +9 -4
- package/src/edit-modes/measure-distance-mode.ts +1 -1
- package/src/edit-modes/modify-mode.ts +6 -1
- package/src/edit-modes/resize-circle-mode.ts +1 -0
- package/src/edit-modes/rotate-mode.ts +2 -1
- package/src/edit-modes/scale-mode.ts +2 -1
- package/src/edit-modes/split-polygon-mode.ts +4 -2
- package/src/edit-modes/three-click-polygon-mode.ts +7 -1
- package/src/edit-modes/transform-mode.ts +4 -0
- package/src/edit-modes/translate-mode.ts +4 -2
- package/src/edit-modes/two-click-polygon-mode.ts +3 -4
- package/src/edit-modes/types.ts +1 -0
- package/src/edit-modes/utils.ts +10 -3
- package/src/editable-layers/editable-geojson-layer.ts +6 -4
- package/src/editable-layers/editable-h3-cluster-layer.ts +1 -1
- package/src/editable-layers/editable-layer.ts +12 -4
- package/src/editable-layers/editable-path-layer.ts +29 -15
- package/src/editable-layers/junction-scatterplot-layer.ts +4 -2
- package/src/editable-layers/selection-layer.ts +2 -1
- package/src/index.ts +2 -0
- package/src/mode-handlers/split-polygon-handler.ts +2 -1
- package/src/shaderlib/color/color.ts +34 -20
- package/src/utils/translate-from-center.ts +5 -5
- package/src/utils/utils.ts +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
|
-
export { ArrowStyles, DEFAULT_ARROWS, MAX_ARROWS } from
|
|
2
|
-
export { SELECTION_TYPE } from
|
|
3
|
-
export { Feature } from
|
|
4
|
-
export { LayerMouseEvent } from
|
|
5
|
-
export { NebulaLayer } from
|
|
6
|
-
export { JunctionsLayer } from
|
|
7
|
-
export { TextsLayer } from
|
|
8
|
-
export { SegmentsLayer } from
|
|
9
|
-
export { NebulaCore } from
|
|
10
|
-
export { PROJECTED_PIXEL_SIZE_MULTIPLIER } from
|
|
11
|
-
export { toDeckColor } from
|
|
12
|
-
export type { Color, Style, Viewport } from
|
|
13
|
-
export { EditableGeoJsonLayer } from
|
|
14
|
-
export { EditableH3ClusterLayer } from
|
|
15
|
-
export { SelectionLayer } from
|
|
16
|
-
export { ElevatedEditHandleLayer } from
|
|
17
|
-
export { JunctionScatterplotLayer } from
|
|
18
|
-
import * as utils from
|
|
1
|
+
export { ArrowStyles, DEFAULT_ARROWS, MAX_ARROWS } from "./lib/style.js";
|
|
2
|
+
export { SELECTION_TYPE } from "./lib/deck-renderer/deck-drawer.js";
|
|
3
|
+
export { Feature } from "./lib/feature.js";
|
|
4
|
+
export { LayerMouseEvent } from "./lib/layer-mouse-event.js";
|
|
5
|
+
export { NebulaLayer } from "./lib/nebula-layer.js";
|
|
6
|
+
export { JunctionsLayer } from "./lib/layers/junctions-layer.js";
|
|
7
|
+
export { TextsLayer } from "./lib/layers/texts-layer.js";
|
|
8
|
+
export { SegmentsLayer } from "./lib/layers/segments-layer.js";
|
|
9
|
+
export { NebulaCore } from "./lib/nebula-core.js";
|
|
10
|
+
export { PROJECTED_PIXEL_SIZE_MULTIPLIER } from "./lib/constants.js";
|
|
11
|
+
export { toDeckColor } from "./utils/utils.js";
|
|
12
|
+
export type { Color, Style, Viewport } from "./utils/types.js";
|
|
13
|
+
export { EditableGeoJsonLayer } from "./editable-layers/editable-geojson-layer.js";
|
|
14
|
+
export { EditableH3ClusterLayer } from "./editable-layers/editable-h3-cluster-layer.js";
|
|
15
|
+
export { SelectionLayer } from "./editable-layers/selection-layer.js";
|
|
16
|
+
export { ElevatedEditHandleLayer } from "./editable-layers/elevated-edit-handle-layer.js";
|
|
17
|
+
export { JunctionScatterplotLayer } from "./editable-layers/junction-scatterplot-layer.js";
|
|
18
|
+
import * as utils from "./utils/utils.js";
|
|
19
19
|
export { utils };
|
|
20
|
-
export { getPickedEditHandle, getEditHandlesForGeometry } from
|
|
21
|
-
export type { EditMode } from
|
|
22
|
-
export type { GeoJsonEditModeType } from
|
|
23
|
-
export type { GeoJsonEditModeConstructor } from
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export
|
|
58
|
-
export type {
|
|
59
|
-
export {
|
|
20
|
+
export { getPickedEditHandle, getEditHandlesForGeometry } from "./edit-modes/utils.js";
|
|
21
|
+
export type { EditMode } from "./edit-modes/edit-mode.js";
|
|
22
|
+
export type { GeoJsonEditModeType } from "./edit-modes/geojson-edit-mode.js";
|
|
23
|
+
export type { GeoJsonEditModeConstructor } from "./edit-modes/geojson-edit-mode.js";
|
|
24
|
+
export type { EditableGeoJsonLayerProps } from "./editable-layers/editable-geojson-layer.js";
|
|
25
|
+
export { GeoJsonEditMode } from "./edit-modes/geojson-edit-mode.js";
|
|
26
|
+
export { ModifyMode } from "./edit-modes/modify-mode.js";
|
|
27
|
+
export { ResizeCircleMode } from "./edit-modes/resize-circle-mode.js";
|
|
28
|
+
export { TranslateMode } from "./edit-modes/translate-mode.js";
|
|
29
|
+
export { ScaleMode } from "./edit-modes/scale-mode.js";
|
|
30
|
+
export { RotateMode } from "./edit-modes/rotate-mode.js";
|
|
31
|
+
export { DuplicateMode } from "./edit-modes/duplicate-mode.js";
|
|
32
|
+
export { ExtendLineStringMode } from "./edit-modes/extend-line-string-mode.js";
|
|
33
|
+
export { SplitPolygonMode } from "./edit-modes/split-polygon-mode.js";
|
|
34
|
+
export { ExtrudeMode } from "./edit-modes/extrude-mode.js";
|
|
35
|
+
export { ElevationMode } from "./edit-modes/elevation-mode.js";
|
|
36
|
+
export { TransformMode } from "./edit-modes/transform-mode.js";
|
|
37
|
+
export { DrawPointMode } from "./edit-modes/draw-point-mode.js";
|
|
38
|
+
export { DrawLineStringMode } from "./edit-modes/draw-line-string-mode.js";
|
|
39
|
+
export { DrawPolygonMode } from "./edit-modes/draw-polygon-mode.js";
|
|
40
|
+
export { DrawRectangleMode } from "./edit-modes/draw-rectangle-mode.js";
|
|
41
|
+
export { DrawSquareMode } from "./edit-modes/draw-square-mode.js";
|
|
42
|
+
export { DrawRectangleFromCenterMode } from "./edit-modes/draw-rectangle-from-center-mode.js";
|
|
43
|
+
export { DrawSquareFromCenterMode } from "./edit-modes/draw-square-from-center-mode.js";
|
|
44
|
+
export { DrawCircleByDiameterMode } from "./edit-modes/draw-circle-by-diameter-mode.js";
|
|
45
|
+
export { DrawCircleFromCenterMode } from "./edit-modes/draw-circle-from-center-mode.js";
|
|
46
|
+
export { DrawEllipseByBoundingBoxMode } from "./edit-modes/draw-ellipse-by-bounding-box-mode.js";
|
|
47
|
+
export { DrawEllipseUsingThreePointsMode } from "./edit-modes/draw-ellipse-using-three-points-mode.js";
|
|
48
|
+
export { DrawRectangleUsingThreePointsMode } from "./edit-modes/draw-rectangle-using-three-points-mode.js";
|
|
49
|
+
export { Draw90DegreePolygonMode } from "./edit-modes/draw-90degree-polygon-mode.js";
|
|
50
|
+
export { DrawPolygonByDraggingMode } from "./edit-modes/draw-polygon-by-dragging-mode.js";
|
|
51
|
+
export { ImmutableFeatureCollection } from "./edit-modes/immutable-feature-collection.js";
|
|
52
|
+
export { ViewMode } from "./edit-modes/view-mode.js";
|
|
53
|
+
export { MeasureDistanceMode } from "./edit-modes/measure-distance-mode.js";
|
|
54
|
+
export { MeasureAreaMode } from "./edit-modes/measure-area-mode.js";
|
|
55
|
+
export { MeasureAngleMode } from "./edit-modes/measure-angle-mode.js";
|
|
56
|
+
export { CompositeMode } from "./edit-modes/composite-mode.js";
|
|
57
|
+
export { SnappableMode } from "./edit-modes/snappable-mode.js";
|
|
58
|
+
export type { ScreenCoordinates, EditAction, Pick, ClickEvent, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent, DraggingEvent, ModeProps, GuideFeatureCollection, Tooltip } from "./edit-modes/types.js";
|
|
59
|
+
export type { Position, PointCoordinates, LineStringCoordinates, PolygonCoordinates, MultiPointCoordinates, MultiLineStringCoordinates, MultiPolygonCoordinates, AnyCoordinates, Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, Geometry, Polygonal, BoundingBoxArray, FeatureOf, FeatureWithProps, FeatureCollection, AnyGeoJson } from "./utils/geojson-types.js";
|
|
60
|
+
export { memoize as _memoize } from "./utils/memoize.js";
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
export { ArrowStyles, DEFAULT_ARROWS, MAX_ARROWS } from
|
|
5
|
-
export { SELECTION_TYPE } from
|
|
6
|
-
export { Feature } from
|
|
7
|
-
export { LayerMouseEvent } from
|
|
8
|
-
export { NebulaLayer } from
|
|
9
|
-
export { JunctionsLayer } from
|
|
10
|
-
export { TextsLayer } from
|
|
11
|
-
export { SegmentsLayer } from
|
|
12
|
-
export { NebulaCore } from
|
|
13
|
-
export { PROJECTED_PIXEL_SIZE_MULTIPLIER } from
|
|
4
|
+
export { ArrowStyles, DEFAULT_ARROWS, MAX_ARROWS } from "./lib/style.js";
|
|
5
|
+
export { SELECTION_TYPE } from "./lib/deck-renderer/deck-drawer.js";
|
|
6
|
+
export { Feature } from "./lib/feature.js";
|
|
7
|
+
export { LayerMouseEvent } from "./lib/layer-mouse-event.js";
|
|
8
|
+
export { NebulaLayer } from "./lib/nebula-layer.js";
|
|
9
|
+
export { JunctionsLayer } from "./lib/layers/junctions-layer.js";
|
|
10
|
+
export { TextsLayer } from "./lib/layers/texts-layer.js";
|
|
11
|
+
export { SegmentsLayer } from "./lib/layers/segments-layer.js";
|
|
12
|
+
export { NebulaCore } from "./lib/nebula-core.js";
|
|
13
|
+
export { PROJECTED_PIXEL_SIZE_MULTIPLIER } from "./lib/constants.js";
|
|
14
14
|
// Utils
|
|
15
|
-
export { toDeckColor } from
|
|
15
|
+
export { toDeckColor } from "./utils/utils.js";
|
|
16
16
|
// Layers
|
|
17
|
-
export { EditableGeoJsonLayer } from
|
|
18
|
-
export { EditableH3ClusterLayer } from
|
|
19
|
-
export { SelectionLayer } from
|
|
20
|
-
export { ElevatedEditHandleLayer } from
|
|
17
|
+
export { EditableGeoJsonLayer } from "./editable-layers/editable-geojson-layer.js";
|
|
18
|
+
export { EditableH3ClusterLayer } from "./editable-layers/editable-h3-cluster-layer.js";
|
|
19
|
+
export { SelectionLayer } from "./editable-layers/selection-layer.js";
|
|
20
|
+
export { ElevatedEditHandleLayer } from "./editable-layers/elevated-edit-handle-layer.js";
|
|
21
21
|
// Layers move to deck.gl-community/layers?
|
|
22
|
-
export { JunctionScatterplotLayer } from
|
|
22
|
+
export { JunctionScatterplotLayer } from "./editable-layers/junction-scatterplot-layer.js";
|
|
23
23
|
// Types
|
|
24
|
-
import * as utils from
|
|
24
|
+
import * as utils from "./utils/utils.js";
|
|
25
25
|
export { utils };
|
|
26
|
-
export { getPickedEditHandle, getEditHandlesForGeometry } from
|
|
27
|
-
export { GeoJsonEditMode } from
|
|
26
|
+
export { getPickedEditHandle, getEditHandlesForGeometry } from "./edit-modes/utils.js";
|
|
27
|
+
export { GeoJsonEditMode } from "./edit-modes/geojson-edit-mode.js";
|
|
28
28
|
// Alter modes
|
|
29
|
-
export { ModifyMode } from
|
|
30
|
-
export { ResizeCircleMode } from
|
|
31
|
-
export { TranslateMode } from
|
|
32
|
-
export { ScaleMode } from
|
|
33
|
-
export { RotateMode } from
|
|
34
|
-
export { DuplicateMode } from
|
|
35
|
-
export { ExtendLineStringMode } from
|
|
36
|
-
export { SplitPolygonMode } from
|
|
37
|
-
export { ExtrudeMode } from
|
|
38
|
-
export { ElevationMode } from
|
|
39
|
-
export { TransformMode } from
|
|
29
|
+
export { ModifyMode } from "./edit-modes/modify-mode.js";
|
|
30
|
+
export { ResizeCircleMode } from "./edit-modes/resize-circle-mode.js";
|
|
31
|
+
export { TranslateMode } from "./edit-modes/translate-mode.js";
|
|
32
|
+
export { ScaleMode } from "./edit-modes/scale-mode.js";
|
|
33
|
+
export { RotateMode } from "./edit-modes/rotate-mode.js";
|
|
34
|
+
export { DuplicateMode } from "./edit-modes/duplicate-mode.js";
|
|
35
|
+
export { ExtendLineStringMode } from "./edit-modes/extend-line-string-mode.js";
|
|
36
|
+
export { SplitPolygonMode } from "./edit-modes/split-polygon-mode.js";
|
|
37
|
+
export { ExtrudeMode } from "./edit-modes/extrude-mode.js";
|
|
38
|
+
export { ElevationMode } from "./edit-modes/elevation-mode.js";
|
|
39
|
+
export { TransformMode } from "./edit-modes/transform-mode.js";
|
|
40
40
|
// Draw modes
|
|
41
|
-
export { DrawPointMode } from
|
|
42
|
-
export { DrawLineStringMode } from
|
|
43
|
-
export { DrawPolygonMode } from
|
|
44
|
-
export { DrawRectangleMode } from
|
|
45
|
-
export { DrawSquareMode } from
|
|
46
|
-
export { DrawRectangleFromCenterMode } from
|
|
47
|
-
export { DrawSquareFromCenterMode } from
|
|
48
|
-
export { DrawCircleByDiameterMode } from
|
|
49
|
-
export { DrawCircleFromCenterMode } from
|
|
50
|
-
export { DrawEllipseByBoundingBoxMode } from
|
|
51
|
-
export { DrawEllipseUsingThreePointsMode } from
|
|
52
|
-
export { DrawRectangleUsingThreePointsMode } from
|
|
53
|
-
export { Draw90DegreePolygonMode } from
|
|
54
|
-
export { DrawPolygonByDraggingMode } from
|
|
55
|
-
export { ImmutableFeatureCollection } from
|
|
41
|
+
export { DrawPointMode } from "./edit-modes/draw-point-mode.js";
|
|
42
|
+
export { DrawLineStringMode } from "./edit-modes/draw-line-string-mode.js";
|
|
43
|
+
export { DrawPolygonMode } from "./edit-modes/draw-polygon-mode.js";
|
|
44
|
+
export { DrawRectangleMode } from "./edit-modes/draw-rectangle-mode.js";
|
|
45
|
+
export { DrawSquareMode } from "./edit-modes/draw-square-mode.js";
|
|
46
|
+
export { DrawRectangleFromCenterMode } from "./edit-modes/draw-rectangle-from-center-mode.js";
|
|
47
|
+
export { DrawSquareFromCenterMode } from "./edit-modes/draw-square-from-center-mode.js";
|
|
48
|
+
export { DrawCircleByDiameterMode } from "./edit-modes/draw-circle-by-diameter-mode.js";
|
|
49
|
+
export { DrawCircleFromCenterMode } from "./edit-modes/draw-circle-from-center-mode.js";
|
|
50
|
+
export { DrawEllipseByBoundingBoxMode } from "./edit-modes/draw-ellipse-by-bounding-box-mode.js";
|
|
51
|
+
export { DrawEllipseUsingThreePointsMode } from "./edit-modes/draw-ellipse-using-three-points-mode.js";
|
|
52
|
+
export { DrawRectangleUsingThreePointsMode } from "./edit-modes/draw-rectangle-using-three-points-mode.js";
|
|
53
|
+
export { Draw90DegreePolygonMode } from "./edit-modes/draw-90degree-polygon-mode.js";
|
|
54
|
+
export { DrawPolygonByDraggingMode } from "./edit-modes/draw-polygon-by-dragging-mode.js";
|
|
55
|
+
export { ImmutableFeatureCollection } from "./edit-modes/immutable-feature-collection.js";
|
|
56
56
|
// Other modes
|
|
57
|
-
export { ViewMode } from
|
|
58
|
-
export { MeasureDistanceMode } from
|
|
59
|
-
export { MeasureAreaMode } from
|
|
60
|
-
export { MeasureAngleMode } from
|
|
61
|
-
export { CompositeMode } from
|
|
62
|
-
export { SnappableMode } from
|
|
57
|
+
export { ViewMode } from "./edit-modes/view-mode.js";
|
|
58
|
+
export { MeasureDistanceMode } from "./edit-modes/measure-distance-mode.js";
|
|
59
|
+
export { MeasureAreaMode } from "./edit-modes/measure-area-mode.js";
|
|
60
|
+
export { MeasureAngleMode } from "./edit-modes/measure-angle-mode.js";
|
|
61
|
+
export { CompositeMode } from "./edit-modes/composite-mode.js";
|
|
62
|
+
export { SnappableMode } from "./edit-modes/snappable-mode.js";
|
|
63
63
|
// Experimental
|
|
64
|
-
export { memoize as _memoize } from
|
|
64
|
+
export { memoize as _memoize } from "./utils/memoize.js";
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deck-cache.d.ts","sourceRoot":"","sources":["../../../src/lib/deck-renderer/deck-cache.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS,CAAC,KAAK,EAAE,KAAK;IACjC,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,SAAS,EAAE,KAAK,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,EAAE,MAAM,KAAK,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,KAAK,CAAC;gBAErB,OAAO,EAAE,MAAM,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,KAAK;IAUnE,oBAAoB;IAgBpB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE;IAapC,aAAa;IAIb,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS;IAKvD,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS;CAItD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PolygonLayer } from '@deck.gl/layers';
|
|
2
|
-
import { Color } from
|
|
2
|
+
import { Color } from "../../utils/types.js";
|
|
3
3
|
export declare const SELECTION_TYPE: {
|
|
4
4
|
NONE: any;
|
|
5
5
|
RECTANGLE: string;
|
|
@@ -60,3 +60,4 @@ export declare class DeckDrawer {
|
|
|
60
60
|
}) => any;
|
|
61
61
|
}>)[];
|
|
62
62
|
}
|
|
63
|
+
//# sourceMappingURL=deck-drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deck-drawer.d.ts","sourceRoot":"","sources":["../../../src/lib/deck-renderer/deck-drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAQ7C,OAAO,EAAC,KAAK,EAAC,6BAA0B;AAWxC,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,qBAAa,UAAU;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAC/B,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;gBAEpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAQvC,YAAY;IAOZ,uBAAuB,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;IAQ3D,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAYtC,uBAAuB;IAgBvB,qBAAqB;IASrB,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IAMnE,WAAW,CACT,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACxB,aAAa,EAAE,MAAM,GACpB;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC;IAwDzC,KAAK;IAKL,wBAAwB,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE;IAM5D,MAAM;;;;;;;;;4BA4EoB;YAAC,SAAS,CAAC,EAAE,KAAK,CAAA;SAAC;4BACnB;YAAC,SAAS,CAAC,EAAE,KAAK,CAAA;SAAC;wBACvB;YAAC,OAAO,CAAC,EAAE,GAAG,CAAA;SAAC;;;;4BAKX;YAAC,SAAS,CAAC,EAAE,KAAK,CAAA;SAAC;4BACnB;YAAC,SAAS,CAAC,EAAE,KAAK,CAAA;SAAC;;;;;wBAKvB;YAAC,OAAO,CAAC,EAAE,GAAG,CAAA;SAAC;;CAItC"}
|
package/dist/lib/feature.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Feature as GeoJson } from
|
|
2
|
-
import { Style } from
|
|
1
|
+
import { Feature as GeoJson } from "../utils/geojson-types.js";
|
|
2
|
+
import { Style } from "../utils/types.js";
|
|
3
3
|
export declare class Feature {
|
|
4
4
|
geoJson: GeoJson;
|
|
5
5
|
style: Style;
|
|
@@ -8,3 +8,4 @@ export declare class Feature {
|
|
|
8
8
|
constructor(geoJson: GeoJson, style: Style, original?: any | null | undefined, metadata?: Record<string, any>);
|
|
9
9
|
getCoords(): import("geojson").Position | import("geojson").Position[] | import("geojson").Position[][] | import("geojson").Position[][][];
|
|
10
10
|
}
|
|
11
|
+
//# sourceMappingURL=feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../src/lib/feature.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,kCAA+B;AAE1D,OAAO,EAAC,KAAK,EAAC,0BAAuB;AAErC,qBAAa,OAAO;IAElB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAG5B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,GAAE,GAAG,GAAG,IAAI,GAAG,SAAgB,EACvC,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;IAQpC,SAAS;CAGV"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Position } from
|
|
1
|
+
import { Position } from "../utils/geojson-types.js";
|
|
2
2
|
export declare class LayerMouseEvent {
|
|
3
3
|
canceled: boolean;
|
|
4
4
|
data: Record<string, any>;
|
|
@@ -9,3 +9,4 @@ export declare class LayerMouseEvent {
|
|
|
9
9
|
constructor(nativeEvent: MouseEvent, { data, groundPoint, nebula, metadata }: Record<string, any>);
|
|
10
10
|
stopPropagation(): void;
|
|
11
11
|
}
|
|
12
|
+
//# sourceMappingURL=layer-mouse-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layer-mouse-event.d.ts","sourceRoot":"","sources":["../../src/lib/layer-mouse-event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,QAAQ,EAAC,kCAA+B;AAEhD,qBAAa,eAAe;IAC1B,QAAQ,EAAE,OAAO,CAAS;IAE1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE9B,WAAW,EAAE,QAAQ,CAAC;IAEtB,WAAW,EAAE,UAAU,CAAC;IAExB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAEhB,WAAW,EAAE,UAAU,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAS/F,eAAe;CAIhB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { NebulaLayer } from
|
|
2
|
-
import { DeckCache } from
|
|
3
|
-
import { JunctionScatterplotLayer } from
|
|
1
|
+
import { NebulaLayer } from "../nebula-layer.js";
|
|
2
|
+
import { DeckCache } from "../deck-renderer/deck-cache.js";
|
|
3
|
+
import { JunctionScatterplotLayer } from "../../editable-layers/junction-scatterplot-layer.js";
|
|
4
4
|
export declare class JunctionsLayer extends NebulaLayer {
|
|
5
5
|
deckCache: DeckCache<any, any>;
|
|
6
6
|
constructor(config: Record<string, any>);
|
|
7
7
|
render({ nebula }: Record<string, any>): JunctionScatterplotLayer;
|
|
8
8
|
}
|
|
9
|
+
//# sourceMappingURL=junctions-layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"junctions-layer.d.ts","sourceRoot":"","sources":["../../../src/lib/layers/junctions-layer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAE5C,OAAO,EAAC,SAAS,EAAC,uCAAoC;AACtD,OAAO,EAAC,wBAAwB,EAAC,4DAAyD;AAE1F,qBAAa,cAAe,SAAQ,WAAW;IAC7C,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gBAEnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAMvC,MAAM,CAAC,EAAC,MAAM,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAyBrC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { NebulaLayer } from
|
|
5
|
-
import { toDeckColor } from
|
|
6
|
-
import { DeckCache } from
|
|
7
|
-
import { JunctionScatterplotLayer } from
|
|
4
|
+
import { NebulaLayer } from "../nebula-layer.js";
|
|
5
|
+
import { toDeckColor } from "../../utils/utils.js";
|
|
6
|
+
import { DeckCache } from "../deck-renderer/deck-cache.js";
|
|
7
|
+
import { JunctionScatterplotLayer } from "../../editable-layers/junction-scatterplot-layer.js";
|
|
8
8
|
export class JunctionsLayer extends NebulaLayer {
|
|
9
9
|
deckCache;
|
|
10
10
|
constructor(config) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NebulaLayer } from
|
|
2
|
-
import { DeckCache } from
|
|
1
|
+
import { NebulaLayer } from "../nebula-layer.js";
|
|
2
|
+
import { DeckCache } from "../deck-renderer/deck-cache.js";
|
|
3
3
|
import { PathMarkerLayer } from '@deck.gl-community/layers';
|
|
4
4
|
export declare class SegmentsLayer extends NebulaLayer {
|
|
5
5
|
deckCache: DeckCache<any, any>;
|
|
@@ -16,3 +16,4 @@ export declare class SegmentsLayer extends NebulaLayer {
|
|
|
16
16
|
_getHighlightedObjectIndex({ nebula }: Record<string, any>): number;
|
|
17
17
|
render({ nebula }: Record<string, any>): PathMarkerLayer<any, Record<string, unknown>>;
|
|
18
18
|
}
|
|
19
|
+
//# sourceMappingURL=segments-layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"segments-layer.d.ts","sourceRoot":"","sources":["../../../src/lib/layers/segments-layer.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAE5C,OAAO,EAAC,SAAS,EAAC,uCAAoC;AACtD,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAS1D,qBAAa,aAAc,SAAQ,WAAW;IAC5C,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;gBAE7C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAcvC,mBAAmB,IAAI,GAAG;IAK1B,sBAAsB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,EAAE;IAazD,0BAA0B,CAAC,EAAC,MAAM,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM;IAajE,MAAM,CAAC,EAAC,MAAM,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAuCrC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ArrowStyles, DEFAULT_STYLE, MAX_ARROWS } from
|
|
5
|
-
import { NebulaLayer } from
|
|
6
|
-
import { toDeckColor } from
|
|
7
|
-
import { DeckCache } from
|
|
4
|
+
import { ArrowStyles, DEFAULT_STYLE, MAX_ARROWS } from "../style.js";
|
|
5
|
+
import { NebulaLayer } from "../nebula-layer.js";
|
|
6
|
+
import { toDeckColor } from "../../utils/utils.js";
|
|
7
|
+
import { DeckCache } from "../deck-renderer/deck-cache.js";
|
|
8
8
|
import { PathMarkerLayer } from '@deck.gl-community/layers';
|
|
9
9
|
const NEBULA_TO_DECK_DIRECTIONS = {
|
|
10
10
|
[ArrowStyles.NONE]: { forward: false, backward: false },
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TextLayer } from '@deck.gl/layers';
|
|
2
|
-
import { NebulaLayer } from
|
|
3
|
-
import { DeckCache } from
|
|
2
|
+
import { NebulaLayer } from "../nebula-layer.js";
|
|
3
|
+
import { DeckCache } from "../deck-renderer/deck-cache.js";
|
|
4
4
|
export declare class TextsLayer extends NebulaLayer {
|
|
5
5
|
deckCache: DeckCache<any, any>;
|
|
6
6
|
constructor(config: Record<string, any>);
|
|
7
7
|
render({ nebula }: Record<string, any>): TextLayer;
|
|
8
8
|
}
|
|
9
|
+
//# sourceMappingURL=texts-layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texts-layer.d.ts","sourceRoot":"","sources":["../../../src/lib/layers/texts-layer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAG5C,OAAO,EAAC,SAAS,EAAC,uCAAoC;AAGtD,qBAAa,UAAW,SAAQ,WAAW;IACzC,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gBAEnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAKvC,MAAM,CAAC,EAAC,MAAM,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS;CA2BjD"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import { TextLayer } from '@deck.gl/layers';
|
|
5
|
-
import { NebulaLayer } from
|
|
6
|
-
import { toDeckColor } from
|
|
7
|
-
import { PROJECTED_PIXEL_SIZE_MULTIPLIER } from
|
|
8
|
-
import { DeckCache } from
|
|
5
|
+
import { NebulaLayer } from "../nebula-layer.js";
|
|
6
|
+
import { toDeckColor } from "../../utils/utils.js";
|
|
7
|
+
import { PROJECTED_PIXEL_SIZE_MULTIPLIER } from "../constants.js";
|
|
8
|
+
import { DeckCache } from "../deck-renderer/deck-cache.js";
|
|
9
9
|
export class TextsLayer extends NebulaLayer {
|
|
10
10
|
deckCache;
|
|
11
11
|
constructor(config) {
|
package/dist/lib/math.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Position } from
|
|
1
|
+
import { Position } from "../utils/geojson-types.js";
|
|
2
2
|
export declare function toDegree(radian: number): number;
|
|
3
3
|
export declare function toRadian(angle: number): number;
|
|
4
4
|
/**
|
|
@@ -9,3 +9,4 @@ export declare function toRadian(angle: number): number;
|
|
|
9
9
|
* [ [lng_degrees, lat_degrees], [lng_degrees, lat_degrees], ...]
|
|
10
10
|
*/
|
|
11
11
|
export declare function convertE7Array(array: number[]): Position[];
|
|
12
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../src/lib/math.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,QAAQ,EAAC,kCAA+B;AAEhD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAQ1D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
import { WebMercatorViewport } from '@deck.gl/core';
|
|
3
|
-
import { DeckDrawer } from
|
|
3
|
+
import { DeckDrawer } from "./deck-renderer/deck-drawer.js";
|
|
4
4
|
export declare class NebulaCore {
|
|
5
5
|
init(props: Record<string, any>): void;
|
|
6
6
|
detach(): void;
|
|
@@ -32,3 +32,4 @@ export declare class NebulaCore {
|
|
|
32
32
|
setDeck(deckgl: Record<string, any> | null): void;
|
|
33
33
|
setMainContainer(mainContainer: Record<string, any> | null): void;
|
|
34
34
|
}
|
|
35
|
+
//# sourceMappingURL=nebula-core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nebula-core.d.ts","sourceRoot":"","sources":["../../src/lib/nebula-core.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AAElD,OAAO,EAAC,UAAU,EAAC,uCAAoC;AAMvD,qBAAa,UAAU;IACrB,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAU/B,MAAM;IAON,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAOzC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAS;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAQ;IAC1C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAQ;IACjD,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,CAAQ;IACnE,WAAW,EAAE,UAAU,CAAS;IAChC,aAAa,EAAE,OAAO,CAAS;IAC/B,UAAU,EAAE,mBAAmB,CAAS;IACxC,iBAAiB,qCAAsB;IACvC,WAAW,EAAE,MAAM,GAAG,CAAS;IAC/B,MAAM,EAAE,OAAO,CAAS;IAExB,GAAG,CAAC,OAAO,EAAE,MAAM;IAOnB,oBAAoB;IASpB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE;IASpC,cAAc;IAId,cAAc,CAAC,EAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IA8B3D,aAAa,UAAW,UAAU,UAwChC;IAEF,sBAAsB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACqB,CAAC,MAAM,EAAE,MAAM,CAAC;IAGtF,sBAAsB,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IAKzE,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IA0G7C,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;IAQ3C,gBAAgB;IAMhB,YAAY;IAcZ,iBAAiB;IAIjB,0BAA0B,CACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAC7B,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAehC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;IAM1C,gBAAgB,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;CAK3D"}
|
package/dist/lib/nebula-core.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import { EventEmitter } from 'eventemitter3';
|
|
5
5
|
import { WebMercatorViewport } from '@deck.gl/core';
|
|
6
|
-
import { DeckDrawer } from
|
|
7
|
-
import { LayerMouseEvent } from
|
|
8
|
-
import { NebulaLayer } from
|
|
6
|
+
import { DeckDrawer } from "./deck-renderer/deck-drawer.js";
|
|
7
|
+
import { LayerMouseEvent } from "./layer-mouse-event.js";
|
|
8
|
+
import { NebulaLayer } from "./nebula-layer.js";
|
|
9
9
|
const LOGGER_PREFIX = 'Nebula: ';
|
|
10
10
|
export class NebulaCore {
|
|
11
11
|
init(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
|
-
import { Feature } from
|
|
2
|
+
import { Feature } from "./feature.js";
|
|
3
3
|
export declare class NebulaLayer extends EventEmitter {
|
|
4
4
|
getData: () => Record<string, any>[];
|
|
5
5
|
toNebulaFeature: (data: Record<string, any>) => Feature;
|
|
@@ -11,3 +11,4 @@ export declare class NebulaLayer extends EventEmitter {
|
|
|
11
11
|
constructor({ getData, on, toNebulaFeature }: Record<string, any>);
|
|
12
12
|
render(config: Record<string, any>): unknown;
|
|
13
13
|
}
|
|
14
|
+
//# sourceMappingURL=nebula-layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nebula-layer.d.ts","sourceRoot":"","sources":["../../src/lib/nebula-layer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAC,OAAO,EAAC,qBAAkB;AAElC,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IACrC,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAGpC,aAAa,UAAS;IACtB,aAAa,UAAS;IACtB,eAAe,UAAS;gBAGZ,EAAC,OAAO,EAAE,EAAE,EAAE,eAAe,EAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAY/D,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO;CAG7C"}
|
package/dist/lib/style.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../src/lib/style.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,eAAO,MAAM,aAAa;;;;;;;;;;CAUzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FeatureCollection, Feature, Position } from
|
|
2
|
-
import { ClickEvent, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from
|
|
3
|
-
import { ModeHandler, EditAction, EditHandle } from
|
|
1
|
+
import { FeatureCollection, Feature, Position } from "../utils/geojson-types.js";
|
|
2
|
+
import { ClickEvent, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from "../edit-modes/types.js";
|
|
3
|
+
import { ModeHandler, EditAction, EditHandle } from "./mode-handler.js";
|
|
4
4
|
export declare class CompositeModeHandler extends ModeHandler {
|
|
5
5
|
handlers: Array<ModeHandler>;
|
|
6
6
|
options: Record<string, any>;
|
|
@@ -22,3 +22,4 @@ export declare class CompositeModeHandler extends ModeHandler {
|
|
|
22
22
|
isDragging: boolean;
|
|
23
23
|
}): string;
|
|
24
24
|
}
|
|
25
|
+
//# sourceMappingURL=composite-mode-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite-mode-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/composite-mode-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,OAAO,EAAE,QAAQ,EAAC,kCAA+B;AAC5E,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EAClB,+BAA4B;AAC7B,OAAO,EAAC,WAAW,EAAE,UAAU,EAAE,UAAU,EAAC,0BAAuB;AAGnE,qBAAa,oBAAqB,SAAQ,WAAW;IACnD,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAEjB,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;IAM3E,SAAS,CAAC,CAAC,EACT,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,CAAC,EAClC,UAAU,GAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,IAAW,GAClE,CAAC,GAAG,SAAS;IAchB,oBAAoB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI;IAIhE,aAAa,CAAC,UAAU,EAAE,GAAG,GAAG,IAAI;IAIpC,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAIlD,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAI7D,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG;QAC1C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IAOD,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAI7E,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IAI3E,mBAAmB,IAAI,OAAO,GAAG,IAAI,GAAG,SAAS;IAIjD,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,EAAE;IAUtF,SAAS,CAAC,EAAC,UAAU,EAAC,EAAE;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,GAAG,MAAM;CAGvD"}
|
|
@@ -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 Draw90DegreePolygonHandler extends ModeHandler {
|
|
5
5
|
getEditHandles(picks?: Array<Record<string, any>>, mapCoords?: Position): EditHandle[];
|
|
6
6
|
handlePointerMove({ mapCoords }: PointerMoveEvent): {
|
|
@@ -11,3 +11,4 @@ export declare class Draw90DegreePolygonHandler extends ModeHandler {
|
|
|
11
11
|
finalizedCoordinates(coords: Position[]): Position[][];
|
|
12
12
|
getIntermediatePoint(coordinates: Position[]): Position | null;
|
|
13
13
|
}
|
|
14
|
+
//# sourceMappingURL=draw-90degree-polygon-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw-90degree-polygon-handler.d.ts","sourceRoot":"","sources":["../../src/mode-handlers/draw-90degree-polygon-handler.ts"],"names":[],"mappings":"AASA,OAAO,EAAU,QAAQ,EAAC,kCAA+B;AAEzD,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,+BAA4B;AACjE,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EAGZ,0BAAuB;AAGxB,qBAAa,0BAA2B,SAAQ,WAAW;IACzD,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,EAAE;IAmBtF,iBAAiB,CAAC,EAAC,SAAS,EAAC,EAAE,gBAAgB,GAAG;QAChD,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,YAAY,EAAE,OAAO,CAAC;KACvB;IAkDD,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS;IA+C7D,oBAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE;IAmBvC,oBAAoB,CAAC,WAAW,EAAE,QAAQ,EAAE,GAAG,QAAQ,GAAG,IAAI;CA4C/D"}
|
|
@@ -6,8 +6,8 @@ import bearing from '@turf/bearing';
|
|
|
6
6
|
import lineIntersect from '@turf/line-intersect';
|
|
7
7
|
import turfDistance from '@turf/distance';
|
|
8
8
|
import { point, lineString } from '@turf/helpers';
|
|
9
|
-
import { generatePointsParallelToLinePoints } from
|
|
10
|
-
import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from
|
|
9
|
+
import { generatePointsParallelToLinePoints } from "../utils/utils.js";
|
|
10
|
+
import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from "./mode-handler.js";
|
|
11
11
|
// TODO edit-modes: delete handlers once EditMode fully implemented
|
|
12
12
|
export class Draw90DegreePolygonHandler extends ModeHandler {
|
|
13
13
|
getEditHandles(picks, mapCoords) {
|