@vertigis/viewer-spec 43.4.1 → 43.5.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.
@@ -47,6 +47,49 @@
47
47
  </complexType>
48
48
  </element>
49
49
 
50
+ <element name="geometry-toolbar" substitutionGroup="base:component">
51
+ <annotation>
52
+ <documentation xml:lang="en">
53
+ A geometry toolbar consisting of a collection of widgets and a
54
+ configurable toolbar that is displayed while geometry edits are being
55
+ performed.
56
+ </documentation>
57
+ </annotation>
58
+ <complexType>
59
+ <complexContent>
60
+ <extension base="base:Component">
61
+ <attribute name="orientation">
62
+ <annotation>
63
+ <documentation xml:lang="en">
64
+ Determines the orientation of the widgets and toolbar menu items.
65
+ </documentation>
66
+ </annotation>
67
+ <simpleType>
68
+ <restriction base="string">
69
+ <enumeration value="vertical"/>
70
+ <enumeration value="horizontal"/>
71
+ </restriction>
72
+ </simpleType>
73
+ </attribute>
74
+ <attribute name="size">
75
+ <annotation>
76
+ <documentation xml:lang="en">
77
+ The size of the geometry toolbar.
78
+ </documentation>
79
+ </annotation>
80
+ <simpleType>
81
+ <restriction base="string">
82
+ <enumeration value="small"/>
83
+ <enumeration value="medium"/>
84
+ <enumeration value="large"/>
85
+ </restriction>
86
+ </simpleType>
87
+ </attribute>
88
+ </extension>
89
+ </complexContent>
90
+ </complexType>
91
+ </element>
92
+
50
93
  <element name="inline" substitutionGroup="base:component">
51
94
  <annotation>
52
95
  <documentation xml:lang="en">
@@ -27,6 +27,7 @@ import { CommandRegistry } from "../CommandRegistry.js";
27
27
  import type { Operation } from "../Operation.js";
28
28
  import { OperationRegistry } from "../OperationRegistry.js";
29
29
  import type { FeaturesLike, GeometryLike, GraphicsLike, HasMaps, MapsLike } from "../common.js";
30
+ import type { EditSymbolResult } from "./drawing.js";
30
31
  import type { LengthUnits } from "./geometry.js";
31
32
  /**
32
33
  * A representation of a 2D vector or point.
@@ -201,11 +202,15 @@ export interface GeometryOperationBase {
201
202
  export interface EditGeometryArgs extends GeometryOperationBase {
202
203
  /**
203
204
  * The options for this edit operation. Not supported in Mobile.
205
+ *
206
+ * @webOnly
204
207
  */
205
208
  options?: EditGeometryOptions;
206
209
  }
207
210
  /**
208
211
  * Options for the "sketching.edit-geometry operation.
212
+ *
213
+ * @webOnly
209
214
  */
210
215
  export interface EditGeometryOptions {
211
216
  /**
@@ -400,6 +405,12 @@ export declare class SketchingOperations extends OperationRegistry {
400
405
  * geometry that was drawn, along with the map that it was drawn on.
401
406
  */
402
407
  get captureGeometry(): Operation<CaptureGeometryArgs, CaptureGeometryResult>;
408
+ /**
409
+ * Allows the user to edit the symbology used by the graphics actively being edited.
410
+ *
411
+ * @webOnly
412
+ */
413
+ get editActiveSymbol(): Operation<void, EditSymbolResult | undefined>;
403
414
  /**
404
415
  * Allows the user to edit an existing geometry by drawing on a map. Returns
405
416
  * the geometry that was edited, or the supplied feature with the altered
@@ -441,7 +452,7 @@ export declare class SketchingOperations extends OperationRegistry {
441
452
  * geometry. If validateGeometry parameter is true and geometry is invalid,
442
453
  * returns null.
443
454
  */
444
- get stop(): Operation<StopGeometryEditArgs, CaptureGeometryResult>;
455
+ get stop(): Operation<StopGeometryEditArgs | void, CaptureGeometryResult>;
445
456
  /**
446
457
  * Adds a point to a given polyline or polygon geometry. Returns the
447
458
  * resulting geometry.
@@ -461,6 +472,12 @@ export declare class SketchingOperations extends OperationRegistry {
461
472
  get getActiveNode(): Operation<ItemRef, GetActiveSketchResult>;
462
473
  }
463
474
  export declare class SketchingCommands extends CommandRegistry {
475
+ /**
476
+ * Cancels the current geometry edit or capture operation.
477
+ *
478
+ * @webOnly
479
+ */
480
+ get cancel(): Command<void>;
464
481
  /**
465
482
  * Undoes the last edit while editing a geometry.
466
483
  */
@@ -495,9 +512,10 @@ export declare class SketchingCommands extends CommandRegistry {
495
512
  */
496
513
  get setPointAtCurrentLocation(): Command<HasMaps>;
497
514
  /**
498
- * Deletes a point or the entire geometry, depending on which is selected
499
- * while editing a geometry. If a point is specified in the arguments, it
500
- * will be deleted (Web only).
515
+ * If a point is supplied while a sketching or editing operation is active,
516
+ * the vertex at that point will be deleted from the current geometry. If no
517
+ * point is supplied and a geometry editing session is active, the entire
518
+ * geometry will be deleted.
501
519
  */
502
520
  get delete(): Command<DeleteGeometryArgs>;
503
521
  /**
@@ -518,4 +536,28 @@ export declare class SketchingCommands extends CommandRegistry {
518
536
  * @mobileOnly
519
537
  */
520
538
  get setInteractionMode(): Command<SetInteractionModeArgs>;
539
+ /**
540
+ * Enables free scaling while editing geometries.
541
+ *
542
+ * @webOnly
543
+ */
544
+ get enableFreeScaleMode(): Command<void>;
545
+ /**
546
+ * Disables free scaling while editing geometries.
547
+ *
548
+ * @webOnly
549
+ */
550
+ get disableFreeScaleMode(): Command<void>;
551
+ /**
552
+ * Enables more precise inputs while editing geometries.
553
+ *
554
+ * @webOnly
555
+ */
556
+ get enablePrecisionMode(): Command<void>;
557
+ /**
558
+ * Disables more precise inputs while editing geometries.
559
+ *
560
+ * @webOnly
561
+ */
562
+ get disablePrecisionMode(): Command<void>;
521
563
  }
@@ -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 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 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")}}
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")}}
@@ -11148,7 +11148,7 @@
11148
11148
  "$ref": "#/definitions/CaptureGeometryResult"
11149
11149
  },
11150
11150
  "sketching.delete": {
11151
- "description": "Deletes a point or the entire geometry, depending on which is selected while editing a geometry. If a point is specified in the arguments, it will be deleted (Web only).",
11151
+ "description": "If a point is supplied while a sketching or editing operation is active, the vertex at that point will be deleted from the current geometry. If no point is supplied and a geometry editing session is active, the entire geometry will be deleted.",
11152
11152
  "enum": [
11153
11153
  "sketching.delete"
11154
11154
  ]
@@ -11193,7 +11193,14 @@
11193
11193
  ]
11194
11194
  },
11195
11195
  "sketching.stop:input": {
11196
- "$ref": "#/definitions/StopGeometryEditArgs"
11196
+ "anyOf": [
11197
+ {
11198
+ "$ref": "#/definitions/StopGeometryEditArgs"
11199
+ },
11200
+ {
11201
+ "type": "null"
11202
+ }
11203
+ ]
11197
11204
  },
11198
11205
  "sketching.stop:output": {
11199
11206
  "$ref": "#/definitions/CaptureGeometryResult"
@@ -12735,7 +12735,7 @@
12735
12735
  "$ref": "#/definitions/CaptureGeometryResult"
12736
12736
  },
12737
12737
  "sketching.delete": {
12738
- "description": "Deletes a point or the entire geometry, depending on which is selected while editing a geometry. If a point is specified in the arguments, it will be deleted (Web only).",
12738
+ "description": "If a point is supplied while a sketching or editing operation is active, the vertex at that point will be deleted from the current geometry. If no point is supplied and a geometry editing session is active, the entire geometry will be deleted.",
12739
12739
  "enum": [
12740
12740
  "sketching.delete"
12741
12741
  ]
@@ -12798,7 +12798,14 @@
12798
12798
  ]
12799
12799
  },
12800
12800
  "sketching.stop:input": {
12801
- "$ref": "#/definitions/StopGeometryEditArgs"
12801
+ "anyOf": [
12802
+ {
12803
+ "$ref": "#/definitions/StopGeometryEditArgs"
12804
+ },
12805
+ {
12806
+ "type": "null"
12807
+ }
12808
+ ]
12802
12809
  },
12803
12810
  "sketching.stop:output": {
12804
12811
  "$ref": "#/definitions/CaptureGeometryResult"
@@ -16554,6 +16554,12 @@
16554
16554
  "sketching.add-node-to-geometry:output": {
16555
16555
  "$ref": "#/definitions/esri.Geometry"
16556
16556
  },
16557
+ "sketching.cancel": {
16558
+ "description": "Cancels the current geometry edit or capture operation.",
16559
+ "enum": [
16560
+ "sketching.cancel"
16561
+ ]
16562
+ },
16557
16563
  "sketching.capture-geometry": {
16558
16564
  "description": "Allows the user to create geometry by sketching on a map. Returns the geometry that was drawn, along with the map that it was drawn on.",
16559
16565
  "enum": [
@@ -16567,7 +16573,7 @@
16567
16573
  "$ref": "#/definitions/CaptureGeometryResult"
16568
16574
  },
16569
16575
  "sketching.delete": {
16570
- "description": "Deletes a point or the entire geometry, depending on which is selected while editing a geometry. If a point is specified in the arguments, it will be deleted (Web only).",
16576
+ "description": "If a point is supplied while a sketching or editing operation is active, the vertex at that point will be deleted from the current geometry. If no point is supplied and a geometry editing session is active, the entire geometry will be deleted.",
16571
16577
  "enum": [
16572
16578
  "sketching.delete"
16573
16579
  ]
@@ -16575,6 +16581,27 @@
16575
16581
  "sketching.delete:input": {
16576
16582
  "$ref": "#/definitions/DeleteGeometryArgs"
16577
16583
  },
16584
+ "sketching.disable-free-scale-mode": {
16585
+ "description": "Disables free scaling while editing geometries.",
16586
+ "enum": [
16587
+ "sketching.disable-free-scale-mode"
16588
+ ]
16589
+ },
16590
+ "sketching.disable-precision-mode": {
16591
+ "description": "Disables more precise inputs while editing geometries.",
16592
+ "enum": [
16593
+ "sketching.disable-precision-mode"
16594
+ ]
16595
+ },
16596
+ "sketching.edit-active-symbol": {
16597
+ "description": "Allows the user to edit the symbology used by the graphics actively being edited.",
16598
+ "enum": [
16599
+ "sketching.edit-active-symbol"
16600
+ ]
16601
+ },
16602
+ "sketching.edit-active-symbol:output": {
16603
+ "$ref": "#/definitions/EditSymbolResult"
16604
+ },
16578
16605
  "sketching.edit-geometry": {
16579
16606
  "description": "Allows the user to edit an existing geometry by drawing on a map. Returns the geometry that was edited, or the supplied feature with the altered geometry applied, along with the map that it was drawn on.",
16580
16607
  "enum": [
@@ -16587,6 +16614,18 @@
16587
16614
  "sketching.edit-geometry:output": {
16588
16615
  "$ref": "#/definitions/EditGeometryResult"
16589
16616
  },
16617
+ "sketching.enable-free-scale-mode": {
16618
+ "description": "Enables free scaling while editing geometries.",
16619
+ "enum": [
16620
+ "sketching.enable-free-scale-mode"
16621
+ ]
16622
+ },
16623
+ "sketching.enable-precision-mode": {
16624
+ "description": "Enables more precise inputs while editing geometries.",
16625
+ "enum": [
16626
+ "sketching.enable-precision-mode"
16627
+ ]
16628
+ },
16590
16629
  "sketching.get-active-node": {
16591
16630
  "description": "Returns the active point graphic of the active sketch on a map.",
16592
16631
  "enum": [
@@ -16678,7 +16717,14 @@
16678
16717
  ]
16679
16718
  },
16680
16719
  "sketching.stop:input": {
16681
- "$ref": "#/definitions/StopGeometryEditArgs"
16720
+ "anyOf": [
16721
+ {
16722
+ "$ref": "#/definitions/StopGeometryEditArgs"
16723
+ },
16724
+ {
16725
+ "type": "null"
16726
+ }
16727
+ ]
16682
16728
  },
16683
16729
  "sketching.stop:output": {
16684
16730
  "$ref": "#/definitions/CaptureGeometryResult"
@@ -19144,9 +19190,24 @@
19144
19190
  {
19145
19191
  "$ref": "#/definitions/search.clear"
19146
19192
  },
19193
+ {
19194
+ "$ref": "#/definitions/sketching.cancel"
19195
+ },
19147
19196
  {
19148
19197
  "$ref": "#/definitions/sketching.delete"
19149
19198
  },
19199
+ {
19200
+ "$ref": "#/definitions/sketching.disable-free-scale-mode"
19201
+ },
19202
+ {
19203
+ "$ref": "#/definitions/sketching.disable-precision-mode"
19204
+ },
19205
+ {
19206
+ "$ref": "#/definitions/sketching.enable-free-scale-mode"
19207
+ },
19208
+ {
19209
+ "$ref": "#/definitions/sketching.enable-precision-mode"
19210
+ },
19150
19211
  {
19151
19212
  "$ref": "#/definitions/sketching.move-node"
19152
19213
  },
@@ -20206,6 +20267,9 @@
20206
20267
  {
20207
20268
  "$ref": "#/definitions/sketching.capture-geometry"
20208
20269
  },
20270
+ {
20271
+ "$ref": "#/definitions/sketching.edit-active-symbol"
20272
+ },
20209
20273
  {
20210
20274
  "$ref": "#/definitions/sketching.edit-geometry"
20211
20275
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "43.4.1",
3
+ "version": "43.5.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 = "43.4.1";
4
+ export declare const version = "43.5.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 = "43.4.1";
4
+ export const version = "43.5.0";