@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.
Files changed (258) hide show
  1. package/dist/constants.d.ts +1 -0
  2. package/dist/constants.d.ts.map +1 -0
  3. package/dist/edit-modes/composite-mode.d.ts +4 -3
  4. package/dist/edit-modes/composite-mode.d.ts.map +1 -0
  5. package/dist/edit-modes/composite-mode.js +1 -1
  6. package/dist/edit-modes/draw-90degree-polygon-mode.d.ts +4 -3
  7. package/dist/edit-modes/draw-90degree-polygon-mode.d.ts.map +1 -0
  8. package/dist/edit-modes/draw-90degree-polygon-mode.js +2 -2
  9. package/dist/edit-modes/draw-circle-by-diameter-mode.d.ts +4 -3
  10. package/dist/edit-modes/draw-circle-by-diameter-mode.d.ts.map +1 -0
  11. package/dist/edit-modes/draw-circle-by-diameter-mode.js +3 -3
  12. package/dist/edit-modes/draw-circle-from-center-mode.d.ts +4 -3
  13. package/dist/edit-modes/draw-circle-from-center-mode.d.ts.map +1 -0
  14. package/dist/edit-modes/draw-circle-from-center-mode.js +2 -2
  15. package/dist/edit-modes/draw-ellipse-by-bounding-box-mode.d.ts +3 -2
  16. package/dist/edit-modes/draw-ellipse-by-bounding-box-mode.d.ts.map +1 -0
  17. package/dist/edit-modes/draw-ellipse-by-bounding-box-mode.js +2 -2
  18. package/dist/edit-modes/draw-ellipse-using-three-points-mode.d.ts +3 -2
  19. package/dist/edit-modes/draw-ellipse-using-three-points-mode.d.ts.map +1 -0
  20. package/dist/edit-modes/draw-ellipse-using-three-points-mode.js +2 -2
  21. package/dist/edit-modes/draw-line-string-mode.d.ts +4 -3
  22. package/dist/edit-modes/draw-line-string-mode.d.ts.map +1 -0
  23. package/dist/edit-modes/draw-line-string-mode.js +3 -3
  24. package/dist/edit-modes/draw-point-mode.d.ts +4 -3
  25. package/dist/edit-modes/draw-point-mode.d.ts.map +1 -0
  26. package/dist/edit-modes/draw-point-mode.js +1 -1
  27. package/dist/edit-modes/draw-polygon-by-dragging-mode.d.ts +4 -3
  28. package/dist/edit-modes/draw-polygon-by-dragging-mode.d.ts.map +1 -0
  29. package/dist/edit-modes/draw-polygon-by-dragging-mode.js +2 -2
  30. package/dist/edit-modes/draw-polygon-mode.d.ts +4 -3
  31. package/dist/edit-modes/draw-polygon-mode.d.ts.map +1 -0
  32. package/dist/edit-modes/draw-polygon-mode.js +2 -2
  33. package/dist/edit-modes/draw-rectangle-from-center-mode.d.ts +3 -2
  34. package/dist/edit-modes/draw-rectangle-from-center-mode.d.ts.map +1 -0
  35. package/dist/edit-modes/draw-rectangle-from-center-mode.js +1 -1
  36. package/dist/edit-modes/draw-rectangle-mode.d.ts +3 -2
  37. package/dist/edit-modes/draw-rectangle-mode.d.ts.map +1 -0
  38. package/dist/edit-modes/draw-rectangle-mode.js +1 -1
  39. package/dist/edit-modes/draw-rectangle-using-three-points-mode.d.ts +3 -2
  40. package/dist/edit-modes/draw-rectangle-using-three-points-mode.d.ts.map +1 -0
  41. package/dist/edit-modes/draw-rectangle-using-three-points-mode.js +2 -2
  42. package/dist/edit-modes/draw-square-from-center-mode.d.ts +3 -2
  43. package/dist/edit-modes/draw-square-from-center-mode.d.ts.map +1 -0
  44. package/dist/edit-modes/draw-square-from-center-mode.js +1 -1
  45. package/dist/edit-modes/draw-square-mode.d.ts +3 -2
  46. package/dist/edit-modes/draw-square-mode.d.ts.map +1 -0
  47. package/dist/edit-modes/draw-square-mode.js +1 -1
  48. package/dist/edit-modes/duplicate-mode.d.ts +4 -3
  49. package/dist/edit-modes/duplicate-mode.d.ts.map +1 -0
  50. package/dist/edit-modes/duplicate-mode.js +1 -1
  51. package/dist/edit-modes/edit-mode.d.ts +2 -1
  52. package/dist/edit-modes/edit-mode.d.ts.map +1 -0
  53. package/dist/edit-modes/elevation-mode.d.ts +4 -3
  54. package/dist/edit-modes/elevation-mode.d.ts.map +1 -0
  55. package/dist/edit-modes/elevation-mode.js +2 -2
  56. package/dist/edit-modes/extend-line-string-mode.d.ts +4 -3
  57. package/dist/edit-modes/extend-line-string-mode.d.ts.map +1 -0
  58. package/dist/edit-modes/extend-line-string-mode.js +2 -2
  59. package/dist/edit-modes/extrude-mode.d.ts +4 -3
  60. package/dist/edit-modes/extrude-mode.d.ts.map +1 -0
  61. package/dist/edit-modes/extrude-mode.js +3 -3
  62. package/dist/edit-modes/geojson-edit-mode.d.ts +4 -3
  63. package/dist/edit-modes/geojson-edit-mode.d.ts.map +1 -0
  64. package/dist/edit-modes/geojson-edit-mode.js +2 -2
  65. package/dist/edit-modes/immutable-feature-collection.d.ts +2 -1
  66. package/dist/edit-modes/immutable-feature-collection.d.ts.map +1 -0
  67. package/dist/edit-modes/measure-angle-mode.d.ts +4 -3
  68. package/dist/edit-modes/measure-angle-mode.d.ts.map +1 -0
  69. package/dist/edit-modes/measure-angle-mode.js +2 -2
  70. package/dist/edit-modes/measure-area-mode.d.ts +4 -3
  71. package/dist/edit-modes/measure-area-mode.d.ts.map +1 -0
  72. package/dist/edit-modes/measure-area-mode.js +1 -1
  73. package/dist/edit-modes/measure-distance-mode.d.ts +4 -3
  74. package/dist/edit-modes/measure-distance-mode.d.ts.map +1 -0
  75. package/dist/edit-modes/measure-distance-mode.js +2 -2
  76. package/dist/edit-modes/modify-mode.d.ts +5 -4
  77. package/dist/edit-modes/modify-mode.d.ts.map +1 -0
  78. package/dist/edit-modes/modify-mode.js +3 -3
  79. package/dist/edit-modes/resize-circle-mode.d.ts +6 -5
  80. package/dist/edit-modes/resize-circle-mode.d.ts.map +1 -0
  81. package/dist/edit-modes/resize-circle-mode.js +3 -3
  82. package/dist/edit-modes/rotate-mode.d.ts +4 -3
  83. package/dist/edit-modes/rotate-mode.d.ts.map +1 -0
  84. package/dist/edit-modes/rotate-mode.js +3 -3
  85. package/dist/edit-modes/scale-mode.d.ts +4 -3
  86. package/dist/edit-modes/scale-mode.d.ts.map +1 -0
  87. package/dist/edit-modes/scale-mode.js +3 -3
  88. package/dist/edit-modes/snappable-mode.d.ts +4 -3
  89. package/dist/edit-modes/snappable-mode.d.ts.map +1 -0
  90. package/dist/edit-modes/snappable-mode.js +2 -2
  91. package/dist/edit-modes/split-polygon-mode.d.ts +4 -3
  92. package/dist/edit-modes/split-polygon-mode.d.ts.map +1 -0
  93. package/dist/edit-modes/split-polygon-mode.js +3 -3
  94. package/dist/edit-modes/three-click-polygon-mode.d.ts +4 -3
  95. package/dist/edit-modes/three-click-polygon-mode.d.ts.map +1 -0
  96. package/dist/edit-modes/three-click-polygon-mode.js +1 -1
  97. package/dist/edit-modes/transform-mode.d.ts +4 -3
  98. package/dist/edit-modes/transform-mode.d.ts.map +1 -0
  99. package/dist/edit-modes/transform-mode.js +4 -4
  100. package/dist/edit-modes/translate-mode.d.ts +4 -3
  101. package/dist/edit-modes/translate-mode.d.ts.map +1 -0
  102. package/dist/edit-modes/translate-mode.js +4 -4
  103. package/dist/edit-modes/two-click-polygon-mode.d.ts +4 -3
  104. package/dist/edit-modes/two-click-polygon-mode.d.ts.map +1 -0
  105. package/dist/edit-modes/two-click-polygon-mode.js +1 -1
  106. package/dist/edit-modes/types.d.ts +2 -1
  107. package/dist/edit-modes/types.d.ts.map +1 -0
  108. package/dist/edit-modes/utils.d.ts +3 -2
  109. package/dist/edit-modes/utils.d.ts.map +1 -0
  110. package/dist/edit-modes/utils.js +1 -0
  111. package/dist/edit-modes/view-mode.d.ts +2 -1
  112. package/dist/edit-modes/view-mode.d.ts.map +1 -0
  113. package/dist/edit-modes/view-mode.js +1 -1
  114. package/dist/editable-layers/editable-geojson-layer.d.ts +6 -5
  115. package/dist/editable-layers/editable-geojson-layer.d.ts.map +1 -0
  116. package/dist/editable-layers/editable-geojson-layer.js +28 -28
  117. package/dist/editable-layers/editable-h3-cluster-layer.d.ts +2 -1
  118. package/dist/editable-layers/editable-h3-cluster-layer.d.ts.map +1 -0
  119. package/dist/editable-layers/editable-h3-cluster-layer.js +4 -4
  120. package/dist/editable-layers/editable-layer.d.ts +3 -2
  121. package/dist/editable-layers/editable-layer.d.ts.map +1 -0
  122. package/dist/editable-layers/editable-path-layer.d.ts +1 -0
  123. package/dist/editable-layers/editable-path-layer.d.ts.map +1 -0
  124. package/dist/editable-layers/editable-path-layer.js +1 -1
  125. package/dist/editable-layers/elevated-edit-handle-layer.d.ts +1 -0
  126. package/dist/editable-layers/elevated-edit-handle-layer.d.ts.map +1 -0
  127. package/dist/editable-layers/junction-scatterplot-layer.d.ts +2 -1
  128. package/dist/editable-layers/junction-scatterplot-layer.d.ts.map +1 -0
  129. package/dist/editable-layers/selection-layer.d.ts +1 -0
  130. package/dist/editable-layers/selection-layer.d.ts.map +1 -0
  131. package/dist/editable-layers/selection-layer.js +4 -4
  132. package/dist/index.cjs +5 -5
  133. package/dist/index.cjs.map +3 -3
  134. package/dist/index.d.ts +59 -58
  135. package/dist/index.d.ts.map +1 -0
  136. package/dist/index.js +52 -52
  137. package/dist/lib/constants.d.ts +1 -0
  138. package/dist/lib/constants.d.ts.map +1 -0
  139. package/dist/lib/deck-renderer/deck-cache.d.ts +1 -0
  140. package/dist/lib/deck-renderer/deck-cache.d.ts.map +1 -0
  141. package/dist/lib/deck-renderer/deck-drawer.d.ts +2 -1
  142. package/dist/lib/deck-renderer/deck-drawer.d.ts.map +1 -0
  143. package/dist/lib/feature.d.ts +3 -2
  144. package/dist/lib/feature.d.ts.map +1 -0
  145. package/dist/lib/layer-mouse-event.d.ts +2 -1
  146. package/dist/lib/layer-mouse-event.d.ts.map +1 -0
  147. package/dist/lib/layers/junctions-layer.d.ts +4 -3
  148. package/dist/lib/layers/junctions-layer.d.ts.map +1 -0
  149. package/dist/lib/layers/junctions-layer.js +4 -4
  150. package/dist/lib/layers/segments-layer.d.ts +3 -2
  151. package/dist/lib/layers/segments-layer.d.ts.map +1 -0
  152. package/dist/lib/layers/segments-layer.js +4 -4
  153. package/dist/lib/layers/texts-layer.d.ts +3 -2
  154. package/dist/lib/layers/texts-layer.d.ts.map +1 -0
  155. package/dist/lib/layers/texts-layer.js +4 -4
  156. package/dist/lib/math.d.ts +2 -1
  157. package/dist/lib/math.d.ts.map +1 -0
  158. package/dist/lib/nebula-core.d.ts +2 -1
  159. package/dist/lib/nebula-core.d.ts.map +1 -0
  160. package/dist/lib/nebula-core.js +3 -3
  161. package/dist/lib/nebula-layer.d.ts +2 -1
  162. package/dist/lib/nebula-layer.d.ts.map +1 -0
  163. package/dist/lib/style.d.ts +1 -0
  164. package/dist/lib/style.d.ts.map +1 -0
  165. package/dist/mode-handlers/composite-mode-handler.d.ts +4 -3
  166. package/dist/mode-handlers/composite-mode-handler.d.ts.map +1 -0
  167. package/dist/mode-handlers/composite-mode-handler.js +1 -1
  168. package/dist/mode-handlers/draw-90degree-polygon-handler.d.ts +4 -3
  169. package/dist/mode-handlers/draw-90degree-polygon-handler.d.ts.map +1 -0
  170. package/dist/mode-handlers/draw-90degree-polygon-handler.js +2 -2
  171. package/dist/mode-handlers/draw-circle-by-bounding-box-handler.d.ts +4 -3
  172. package/dist/mode-handlers/draw-circle-by-bounding-box-handler.d.ts.map +1 -0
  173. package/dist/mode-handlers/draw-circle-by-bounding-box-handler.js +2 -2
  174. package/dist/mode-handlers/draw-circle-from-center-handler.d.ts +4 -3
  175. package/dist/mode-handlers/draw-circle-from-center-handler.d.ts.map +1 -0
  176. package/dist/mode-handlers/draw-circle-from-center-handler.js +1 -1
  177. package/dist/mode-handlers/draw-ellipse-by-bounding-box-handler.d.ts +4 -3
  178. package/dist/mode-handlers/draw-ellipse-by-bounding-box-handler.d.ts.map +1 -0
  179. package/dist/mode-handlers/draw-ellipse-by-bounding-box-handler.js +2 -2
  180. package/dist/mode-handlers/draw-ellipse-using-three-points-handler.d.ts +4 -3
  181. package/dist/mode-handlers/draw-ellipse-using-three-points-handler.d.ts.map +1 -0
  182. package/dist/mode-handlers/draw-ellipse-using-three-points-handler.js +2 -2
  183. package/dist/mode-handlers/draw-line-string-handler.d.ts +3 -2
  184. package/dist/mode-handlers/draw-line-string-handler.d.ts.map +1 -0
  185. package/dist/mode-handlers/draw-line-string-handler.js +1 -1
  186. package/dist/mode-handlers/draw-point-handler.d.ts +3 -2
  187. package/dist/mode-handlers/draw-point-handler.d.ts.map +1 -0
  188. package/dist/mode-handlers/draw-point-handler.js +1 -1
  189. package/dist/mode-handlers/draw-polygon-handler.d.ts +4 -3
  190. package/dist/mode-handlers/draw-polygon-handler.d.ts.map +1 -0
  191. package/dist/mode-handlers/draw-polygon-handler.js +1 -1
  192. package/dist/mode-handlers/draw-rectangle-handler.d.ts +4 -3
  193. package/dist/mode-handlers/draw-rectangle-handler.d.ts.map +1 -0
  194. package/dist/mode-handlers/draw-rectangle-handler.js +1 -1
  195. package/dist/mode-handlers/draw-rectangle-using-three-points-handler.d.ts +4 -3
  196. package/dist/mode-handlers/draw-rectangle-using-three-points-handler.d.ts.map +1 -0
  197. package/dist/mode-handlers/draw-rectangle-using-three-points-handler.js +2 -2
  198. package/dist/mode-handlers/duplicate-handler.d.ts +4 -3
  199. package/dist/mode-handlers/duplicate-handler.d.ts.map +1 -0
  200. package/dist/mode-handlers/duplicate-handler.js +1 -1
  201. package/dist/mode-handlers/elevation-handler.d.ts +5 -4
  202. package/dist/mode-handlers/elevation-handler.d.ts.map +1 -0
  203. package/dist/mode-handlers/elevation-handler.js +2 -2
  204. package/dist/mode-handlers/extrude-handler.d.ts +4 -3
  205. package/dist/mode-handlers/extrude-handler.d.ts.map +1 -0
  206. package/dist/mode-handlers/extrude-handler.js +3 -3
  207. package/dist/mode-handlers/mode-handler.d.ts +4 -3
  208. package/dist/mode-handlers/mode-handler.d.ts.map +1 -0
  209. package/dist/mode-handlers/mode-handler.js +1 -1
  210. package/dist/mode-handlers/modify-handler.d.ts +5 -4
  211. package/dist/mode-handlers/modify-handler.d.ts.map +1 -0
  212. package/dist/mode-handlers/modify-handler.js +2 -2
  213. package/dist/mode-handlers/rotate-handler.d.ts +4 -3
  214. package/dist/mode-handlers/rotate-handler.d.ts.map +1 -0
  215. package/dist/mode-handlers/rotate-handler.js +1 -1
  216. package/dist/mode-handlers/scale-handler.d.ts +4 -3
  217. package/dist/mode-handlers/scale-handler.d.ts.map +1 -0
  218. package/dist/mode-handlers/scale-handler.js +1 -1
  219. package/dist/mode-handlers/snappable-handler.d.ts +4 -3
  220. package/dist/mode-handlers/snappable-handler.d.ts.map +1 -0
  221. package/dist/mode-handlers/snappable-handler.js +1 -1
  222. package/dist/mode-handlers/split-polygon-handler.d.ts +3 -2
  223. package/dist/mode-handlers/split-polygon-handler.d.ts.map +1 -0
  224. package/dist/mode-handlers/split-polygon-handler.js +2 -2
  225. package/dist/mode-handlers/three-click-polygon-handler.d.ts +3 -2
  226. package/dist/mode-handlers/three-click-polygon-handler.d.ts.map +1 -0
  227. package/dist/mode-handlers/three-click-polygon-handler.js +1 -1
  228. package/dist/mode-handlers/translate-handler.d.ts +4 -3
  229. package/dist/mode-handlers/translate-handler.d.ts.map +1 -0
  230. package/dist/mode-handlers/translate-handler.js +1 -1
  231. package/dist/mode-handlers/two-click-polygon-handler.d.ts +3 -2
  232. package/dist/mode-handlers/two-click-polygon-handler.d.ts.map +1 -0
  233. package/dist/mode-handlers/two-click-polygon-handler.js +1 -1
  234. package/dist/mode-handlers/view-handler.d.ts +3 -2
  235. package/dist/mode-handlers/view-handler.d.ts.map +1 -0
  236. package/dist/mode-handlers/view-handler.js +1 -1
  237. package/dist/shaderlib/color/color.d.ts +1 -0
  238. package/dist/shaderlib/color/color.d.ts.map +1 -0
  239. package/dist/shaderlib/utils/utils.d.ts +1 -0
  240. package/dist/shaderlib/utils/utils.d.ts.map +1 -0
  241. package/dist/utils/curve-utils.d.ts +1 -0
  242. package/dist/utils/curve-utils.d.ts.map +1 -0
  243. package/dist/utils/geojson-types.d.ts +1 -0
  244. package/dist/utils/geojson-types.d.ts.map +1 -0
  245. package/dist/utils/memoize.d.ts +1 -0
  246. package/dist/utils/memoize.d.ts.map +1 -0
  247. package/dist/utils/translate-from-center.d.ts +1 -0
  248. package/dist/utils/translate-from-center.d.ts.map +1 -0
  249. package/dist/utils/translate-from-center.js +4 -4
  250. package/dist/utils/types.d.ts +1 -0
  251. package/dist/utils/types.d.ts.map +1 -0
  252. package/dist/utils/utils.d.ts +5 -4
  253. package/dist/utils/utils.d.ts.map +1 -0
  254. package/dist/utils/utils.js +3 -3
  255. package/package.json +3 -2
  256. package/src/edit-modes/utils.ts +2 -0
  257. package/src/utils/translate-from-center.ts +4 -4
  258. 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 './mode-handler';
7
- import { TwoClickPolygonHandler } from './two-click-polygon-handler';
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 '../edit-modes/types';
2
- import { EditAction } from './mode-handler';
3
- import { TwoClickPolygonHandler } from './two-click-polygon-handler';
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 './two-click-polygon-handler';
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 '../edit-modes/types';
2
- import { EditAction } from './mode-handler';
3
- import { TwoClickPolygonHandler } from './two-click-polygon-handler';
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 './mode-handler';
9
- import { TwoClickPolygonHandler } from './two-click-polygon-handler';
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 '../edit-modes/types';
2
- import { EditAction } from './mode-handler';
3
- import { ThreeClickPolygonHandler } from './three-click-polygon-handler';
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 './mode-handler';
9
- import { ThreeClickPolygonHandler } from './three-click-polygon-handler';
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 '../edit-modes/types';
2
- import { EditAction, ModeHandler } from './mode-handler';
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 './mode-handler';
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 '../edit-modes/types';
2
- import { EditAction, ModeHandler } from './mode-handler';
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 './mode-handler';
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 '../utils/geojson-types';
2
- import { ClickEvent, PointerMoveEvent } from '../edit-modes/types';
3
- import { EditAction, EditHandle, ModeHandler } from './mode-handler';
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 './mode-handler';
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 '../edit-modes/types';
2
- import { EditAction } from './mode-handler';
3
- import { TwoClickPolygonHandler } from './two-click-polygon-handler';
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 './two-click-polygon-handler';
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 '../edit-modes/types';
2
- import { EditAction } from './mode-handler';
3
- import { ThreeClickPolygonHandler } from './three-click-polygon-handler';
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 '../utils/utils';
5
- import { ThreeClickPolygonHandler } from './three-click-polygon-handler';
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 '../edit-modes/types';
2
- import { EditAction } from './mode-handler';
3
- import { TranslateHandler } from './translate-handler';
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 './translate-handler';
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 '../utils/geojson-types';
2
- import { PointerMoveEvent, StopDraggingEvent } from '../edit-modes/types';
3
- import { EditAction } from './mode-handler';
4
- import { ModifyHandler } from './modify-handler';
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 './mode-handler';
5
- import { ModifyHandler } from './modify-handler';
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 '../edit-modes/types';
2
- import { EditAction } from './mode-handler';
3
- import { ModifyHandler } from './modify-handler';
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 '../utils/utils';
6
- import { getPickedEditHandle } from './mode-handler';
7
- import { ModifyHandler } from './modify-handler';
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 '../utils/geojson-types';
2
- import { ClickEvent, Pick, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from '../edit-modes/types';
3
- import { ImmutableFeatureCollection } from '../edit-modes/immutable-feature-collection';
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 '../edit-modes/immutable-feature-collection';
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 '../utils/geojson-types';
2
- import { NearestPointType } from '../utils/utils';
3
- import { ClickEvent, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from '../edit-modes/types';
4
- import { EditAction, EditHandle, ModeHandler } from './mode-handler';
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 '../utils/utils';
7
- import { ModeHandler, getPickedEditHandle, getEditHandlesForGeometry } from './mode-handler';
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 '../utils/geojson-types';
2
- import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from '../edit-modes/types';
3
- import { EditAction, ModeHandler } from './mode-handler';
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 './mode-handler';
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 '../utils/geojson-types';
2
- import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from '../edit-modes/types';
3
- import { EditAction, ModeHandler } from './mode-handler';
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 './mode-handler';
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 '../utils/geojson-types';
2
- import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from '../edit-modes/types';
3
- import { EditHandle, EditAction, ModeHandler } from './mode-handler';
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 './mode-handler';
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 './mode-handler';
2
- import { ClickEvent, PointerMoveEvent } from '../edit-modes/types';
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 '../utils/utils';
15
- import { ModeHandler } from './mode-handler';
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 '../edit-modes/types';
2
- import { ModeHandler, EditAction } from './mode-handler';
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 './mode-handler';
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 '../utils/geojson-types';
2
- import { PointerMoveEvent, StartDraggingEvent, StopDraggingEvent } from '../edit-modes/types';
3
- import { EditAction, ModeHandler } from './mode-handler';
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"}