@vertigis/viewer-spec 45.0.0 → 45.1.0

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.
@@ -24,6 +24,8 @@ import type { Symbol as SymbolJson } from "@vertigis/arcgis-extensions/portal/Sy
24
24
  import type { ItemRef } from "../../app-config/common/ItemRef.js";
25
25
  import type { Command } from "../Command.js";
26
26
  import { CommandRegistry } from "../CommandRegistry.js";
27
+ import type { Event } from "../Event.js";
28
+ import { EventRegistry } from "../EventRegistry.js";
27
29
  import type { Operation } from "../Operation.js";
28
30
  import { OperationRegistry } from "../OperationRegistry.js";
29
31
  import type { FeaturesLike, GeometryLike, GraphicsLike, HasMaps, MapsLike } from "../common.js";
@@ -355,6 +357,15 @@ export interface SetInteractionModeArgs extends HasMaps {
355
357
  */
356
358
  editorInteractionMode: EditorInteractionMode;
357
359
  }
360
+ /**
361
+ * Arguments for the "sketching.start-streaming" command.
362
+ */
363
+ export interface StartStreamingArgs extends HasMaps {
364
+ /**
365
+ * An optional value indicating, in seconds, how often points should be recorded.
366
+ */
367
+ interval?: number;
368
+ }
358
369
  /**
359
370
  * The editor geometry mode.
360
371
  */
@@ -472,6 +483,12 @@ export declare class SketchingOperations extends OperationRegistry {
472
483
  * @webOnly
473
484
  */
474
485
  get getActiveNode(): Operation<ItemRef, GetActiveSketchResult>;
486
+ /**
487
+ * Checks whether streaming is active.
488
+ *
489
+ * @mobileOnly
490
+ */
491
+ get isStreaming(): Operation<HasMaps, boolean>;
475
492
  }
476
493
  export declare class SketchingCommands extends CommandRegistry {
477
494
  /**
@@ -506,9 +523,10 @@ export declare class SketchingCommands extends CommandRegistry {
506
523
  */
507
524
  get addPointAtCurrentLocation(): Command<HasMaps>;
508
525
  /**
509
- * Sets a point at the user's current location while editing a geometry. In this context, "set" means
510
- * to either add a point at the current location, or update the currently selected point to be the user's
511
- * current location, depending on what edit mode the user is in.
526
+ * Sets a point at the user's current location while editing a geometry. In
527
+ * this context, "set" means to either add a point at the current location,
528
+ * or update the currently selected point to be the user's current
529
+ * location, depending on what edit mode the user is in.
512
530
  *
513
531
  * @mobileOnly
514
532
  */
@@ -562,4 +580,31 @@ export declare class SketchingCommands extends CommandRegistry {
562
580
  * @webOnly
563
581
  */
564
582
  get disablePrecisionMode(): Command<void>;
583
+ /**
584
+ * Starts streaming: recording your location at regular intervals and
585
+ * adding the collected points to the currently active geometry editor.
586
+ *
587
+ * @mobileOnly
588
+ */
589
+ get startStreaming(): Command<StartStreamingArgs>;
590
+ /**
591
+ * Stops streaming.
592
+ *
593
+ * @mobileOnly
594
+ */
595
+ get stopStreaming(): Command<HasMaps>;
596
+ }
597
+ export declare class SketchingEvents extends EventRegistry {
598
+ /**
599
+ * Raised when streaming has begun.
600
+ *
601
+ * @mobileOnly
602
+ */
603
+ get streamingStarted(): Event<HasMaps>;
604
+ /**
605
+ * Raised when streaming has stopped.
606
+ *
607
+ * @mobileOnly
608
+ */
609
+ get streamingStopped(): Event<HasMaps>;
565
610
  }
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var SketchTool;!function(e){e.POINT="point",e.MULTIPOINT="multipoint",e.LINE="line",e.POLYLINE="polyline",e.POLYGON="polygon",e.EXTENT="extent",e.SQUARE="square",e.CIRCLE="circle"}(SketchTool||(SketchTool={}));export class SketchingOperations extends OperationRegistry{get captureGeometry(){return this._messages.operation("sketching.capture-geometry")}get editActiveSymbol(){return this._messages.operation("sketching.edit-active-symbol")}get editGeometry(){return this._messages.operation("sketching.edit-geometry")}get moveGeometry(){return this._messages.operation("sketching.move-geometry")}get scaleGeometry(){return this._messages.operation("sketching.scale-geometry")}get rotateGeometry(){return this._messages.operation("sketching.rotate-geometry")}get stop(){return this._messages.operation("sketching.stop")}get addNodeToGeometry(){return this._messages.operation("sketching.add-node-to-geometry")}get getActiveSketch(){return this._messages.operation("sketching.get-active-sketch")}get getActiveNode(){return this._messages.operation("sketching.get-active-node")}}export class SketchingCommands extends CommandRegistry{get cancel(){return this._messages.command("sketching.cancel")}get undo(){return this._messages.command("sketching.undo")}get redo(){return this._messages.command("sketching.redo")}get setGeometryMode(){return this._messages.command("sketching.set-geometry-mode")}get addPointAtCenter(){return this._messages.command("sketching.add-point-at-center")}get addPointAtCurrentLocation(){return this._messages.command("sketching.add-point-at-current-location")}get setPointAtCurrentLocation(){return this._messages.command("sketching.set-point-at-current-location")}get delete(){return this._messages.command("sketching.delete")}get moveNode(){return this._messages.command("sketching.move-node")}get switchActiveNode(){return this._messages.command("sketching.switch-active-node")}get setInteractionMode(){return this._messages.command("sketching.set-interaction-mode")}get enableFreeScaleMode(){return this._messages.command("sketching.enable-free-scale-mode")}get disableFreeScaleMode(){return this._messages.command("sketching.disable-free-scale-mode")}get enablePrecisionMode(){return this._messages.command("sketching.enable-precision-mode")}get disablePrecisionMode(){return this._messages.command("sketching.disable-precision-mode")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var SketchTool;!function(e){e.POINT="point",e.MULTIPOINT="multipoint",e.LINE="line",e.POLYLINE="polyline",e.POLYGON="polygon",e.EXTENT="extent",e.SQUARE="square",e.CIRCLE="circle"}(SketchTool||(SketchTool={}));export class SketchingOperations extends OperationRegistry{get captureGeometry(){return this._messages.operation("sketching.capture-geometry")}get editActiveSymbol(){return this._messages.operation("sketching.edit-active-symbol")}get editGeometry(){return this._messages.operation("sketching.edit-geometry")}get moveGeometry(){return this._messages.operation("sketching.move-geometry")}get scaleGeometry(){return this._messages.operation("sketching.scale-geometry")}get rotateGeometry(){return this._messages.operation("sketching.rotate-geometry")}get stop(){return this._messages.operation("sketching.stop")}get addNodeToGeometry(){return this._messages.operation("sketching.add-node-to-geometry")}get getActiveSketch(){return this._messages.operation("sketching.get-active-sketch")}get getActiveNode(){return this._messages.operation("sketching.get-active-node")}get isStreaming(){return this._messages.operation("sketching.is-streaming")}}export class SketchingCommands extends CommandRegistry{get cancel(){return this._messages.command("sketching.cancel")}get undo(){return this._messages.command("sketching.undo")}get redo(){return this._messages.command("sketching.redo")}get setGeometryMode(){return this._messages.command("sketching.set-geometry-mode")}get addPointAtCenter(){return this._messages.command("sketching.add-point-at-center")}get addPointAtCurrentLocation(){return this._messages.command("sketching.add-point-at-current-location")}get setPointAtCurrentLocation(){return this._messages.command("sketching.set-point-at-current-location")}get delete(){return this._messages.command("sketching.delete")}get moveNode(){return this._messages.command("sketching.move-node")}get switchActiveNode(){return this._messages.command("sketching.switch-active-node")}get setInteractionMode(){return this._messages.command("sketching.set-interaction-mode")}get enableFreeScaleMode(){return this._messages.command("sketching.enable-free-scale-mode")}get disableFreeScaleMode(){return this._messages.command("sketching.disable-free-scale-mode")}get enablePrecisionMode(){return this._messages.command("sketching.enable-precision-mode")}get disablePrecisionMode(){return this._messages.command("sketching.disable-precision-mode")}get startStreaming(){return this._messages.command("sketching.start-streaming")}get stopStreaming(){return this._messages.command("sketching.stop-streaming")}}export class SketchingEvents extends EventRegistry{get streamingStarted(){return this._messages.event("sketching.streaming-started")}get streamingStopped(){return this._messages.event("sketching.streaming-stopped")}}
@@ -2483,6 +2483,21 @@
2483
2483
  ],
2484
2484
  "type": "object"
2485
2485
  },
2486
+ "StartStreamingArgs": {
2487
+ "additionalProperties": false,
2488
+ "description": "Arguments for the \"sketching.start-streaming\" command.",
2489
+ "properties": {
2490
+ "interval": {
2491
+ "description": "An optional value indicating, in seconds, how often points should be recorded.",
2492
+ "type": "number"
2493
+ },
2494
+ "maps": {
2495
+ "$ref": "MapsLike",
2496
+ "description": "Map(s) to use for the command/operation."
2497
+ }
2498
+ },
2499
+ "type": "object"
2500
+ },
2486
2501
  "StopGeometryEditArgs": {
2487
2502
  "additionalProperties": false,
2488
2503
  "description": "Arguments for the \"sketching.stop\" operation.",
@@ -13005,6 +13020,18 @@
13005
13020
  "sketching.edit-geometry:output": {
13006
13021
  "$ref": "#/definitions/EditGeometryResult"
13007
13022
  },
13023
+ "sketching.is-streaming": {
13024
+ "description": "Checks whether streaming is active.",
13025
+ "enum": [
13026
+ "sketching.is-streaming"
13027
+ ]
13028
+ },
13029
+ "sketching.is-streaming:input": {
13030
+ "$ref": "#/definitions/HasMaps"
13031
+ },
13032
+ "sketching.is-streaming:output": {
13033
+ "type": "boolean"
13034
+ },
13008
13035
  "sketching.redo": {
13009
13036
  "description": "Redoes the last undone edit while editing a geometry.",
13010
13037
  "enum": [
@@ -13041,12 +13068,30 @@
13041
13068
  "sketching.set-point-at-current-location:input": {
13042
13069
  "$ref": "#/definitions/HasMaps"
13043
13070
  },
13071
+ "sketching.start-streaming": {
13072
+ "description": "Starts streaming: recording your location at regular intervals and adding the collected points to the currently active geometry editor.",
13073
+ "enum": [
13074
+ "sketching.start-streaming"
13075
+ ]
13076
+ },
13077
+ "sketching.start-streaming:input": {
13078
+ "$ref": "#/definitions/StartStreamingArgs"
13079
+ },
13044
13080
  "sketching.stop": {
13045
13081
  "description": "Stops geometry capturing or editing on a given map. Returns the current geometry. If validateGeometry parameter is true and geometry is invalid, returns null.",
13046
13082
  "enum": [
13047
13083
  "sketching.stop"
13048
13084
  ]
13049
13085
  },
13086
+ "sketching.stop-streaming": {
13087
+ "description": "Stops streaming.",
13088
+ "enum": [
13089
+ "sketching.stop-streaming"
13090
+ ]
13091
+ },
13092
+ "sketching.stop-streaming:input": {
13093
+ "$ref": "#/definitions/HasMaps"
13094
+ },
13050
13095
  "sketching.stop:input": {
13051
13096
  "anyOf": [
13052
13097
  {
@@ -14609,6 +14654,38 @@
14609
14654
  ],
14610
14655
  "type": "object"
14611
14656
  },
14657
+ {
14658
+ "additionalProperties": false,
14659
+ "properties": {
14660
+ "arguments": {
14661
+ "$ref": "#/definitions/sketching.start-streaming:input"
14662
+ },
14663
+ "name": {
14664
+ "$ref": "#/definitions/sketching.start-streaming"
14665
+ }
14666
+ },
14667
+ "required": [
14668
+ "name",
14669
+ "arguments"
14670
+ ],
14671
+ "type": "object"
14672
+ },
14673
+ {
14674
+ "additionalProperties": false,
14675
+ "properties": {
14676
+ "arguments": {
14677
+ "$ref": "#/definitions/sketching.stop-streaming:input"
14678
+ },
14679
+ "name": {
14680
+ "$ref": "#/definitions/sketching.stop-streaming"
14681
+ }
14682
+ },
14683
+ "required": [
14684
+ "name",
14685
+ "arguments"
14686
+ ],
14687
+ "type": "object"
14688
+ },
14612
14689
  {
14613
14690
  "additionalProperties": false,
14614
14691
  "properties": {
@@ -15127,6 +15204,12 @@
15127
15204
  {
15128
15205
  "$ref": "#/definitions/sketching.set-point-at-current-location"
15129
15206
  },
15207
+ {
15208
+ "$ref": "#/definitions/sketching.start-streaming"
15209
+ },
15210
+ {
15211
+ "$ref": "#/definitions/sketching.stop-streaming"
15212
+ },
15130
15213
  {
15131
15214
  "$ref": "#/definitions/sketching.undo"
15132
15215
  },
@@ -15745,6 +15828,22 @@
15745
15828
  ],
15746
15829
  "type": "object"
15747
15830
  },
15831
+ {
15832
+ "additionalProperties": false,
15833
+ "properties": {
15834
+ "arguments": {
15835
+ "$ref": "#/definitions/sketching.is-streaming:input"
15836
+ },
15837
+ "name": {
15838
+ "$ref": "#/definitions/sketching.is-streaming"
15839
+ }
15840
+ },
15841
+ "required": [
15842
+ "name",
15843
+ "arguments"
15844
+ ],
15845
+ "type": "object"
15846
+ },
15748
15847
  {
15749
15848
  "additionalProperties": false,
15750
15849
  "properties": {
@@ -15929,6 +16028,9 @@
15929
16028
  {
15930
16029
  "$ref": "#/definitions/sketching.edit-geometry"
15931
16030
  },
16031
+ {
16032
+ "$ref": "#/definitions/sketching.is-streaming"
16033
+ },
15932
16034
  {
15933
16035
  "$ref": "#/definitions/sketching.stop"
15934
16036
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "45.0.0",
3
+ "version": "45.1.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "45.0.0";
4
+ export declare const version = "45.1.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export const version = "45.0.0";
4
+ export const version = "45.1.0";