jmapcloud-ng-core-types 2.0.15-qa.12 → 2.0.15-qa.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "2.0.15-qa.12",
3
+ "version": "2.0.15-qa.13",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "types": "ambient.d.ts",
package/public/core.d.ts CHANGED
@@ -7550,6 +7550,29 @@ export namespace JMap {
7550
7550
  */
7551
7551
  function on(listenerId: string, fn: (params: JDrawEventParams) => void, options?: JDrawListenerOptions): void
7552
7552
  }
7553
+ /**
7554
+ * Emitted with the live geometry while a selected feature is being edited (a feature,
7555
+ * vertex or midpoint drag), throttled to at most once per animation frame. The committed
7556
+ * geometry follows on release through `featureUpdated`; persist there, not here.
7557
+ */
7558
+ namespace editingProgress {
7559
+ /**
7560
+ * Registers an editing-progress listener.
7561
+ *
7562
+ * @param listenerId Non-empty listener id.
7563
+ * @param fn Listener receiving the owner and the features being edited, with their live geometry.
7564
+ * @param options Optional owner filter.
7565
+ * @example
7566
+ * ```ts
7567
+ * JMap.Event.Draw.editingProgress.on(
7568
+ * "mask-editing",
7569
+ * ({ features }) => console.log("Live geometry", features[0].geometry),
7570
+ * { owner: "analysis-mask" }
7571
+ * )
7572
+ * ```
7573
+ */
7574
+ function on(listenerId: string, fn: (params: JDrawEventParams) => void, options?: JDrawListenerOptions): void
7575
+ }
7553
7576
  /**
7554
7577
  * Reactivates every Draw listener carrying the id.
7555
7578
  *
@@ -121,6 +121,7 @@ export interface JDrawEventModule {
121
121
  armedChanged: JDrawArmedEventChannel
122
122
  drawingProgress: JDrawFeatureEventChannel
123
123
  drawingCancelled: JDrawFeatureEventChannel
124
+ editingProgress: JDrawFeatureEventChannel
124
125
  activateListener(listenerId: string): void
125
126
  deactivateListener(listenerId: string): void
126
127
  removeListener(listenerId: string): void