@vertigis/viewer-spec 45.0.0 → 46.0.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.
@@ -564,6 +564,11 @@ export interface StartSketchArgs {
564
564
  * The settings to be applied to the geometry editor.
565
565
  */
566
566
  editorSettings: GeometryEditorSettings;
567
+ /**
568
+ * The maximum number of segments permitted for a polyline or polygon
569
+ * sketch. Default is no limit. Mobile only.
570
+ */
571
+ maxSegments?: number;
567
572
  }
568
573
  /**
569
574
  * Result of the "map.get-coordinate-transformation" operation.
@@ -21,14 +21,15 @@ import type { SimpleFillSymbol as SimpleFillSymbolProperties } from "@vertigis/a
21
21
  import type { SimpleLineSymbol as SimpleLineSymbolProperties } from "@vertigis/arcgis-extensions/portal/SimpleLineSymbol";
22
22
  import type { SimpleMarkerSymbol as SimpleMarkerSymbolProperties } from "@vertigis/arcgis-extensions/portal/SimpleMarkerSymbol";
23
23
  import type { Symbol as SymbolJson } from "@vertigis/arcgis-extensions/portal/Symbol";
24
- import type { ItemRef } from "../../app-config/common/ItemRef.js";
25
24
  import type { Command } from "../Command.js";
26
25
  import { CommandRegistry } from "../CommandRegistry.js";
26
+ import type { Event } from "../Event.js";
27
+ import { EventRegistry } from "../EventRegistry.js";
27
28
  import type { Operation } from "../Operation.js";
28
29
  import { OperationRegistry } from "../OperationRegistry.js";
29
- import type { FeaturesLike, GeometryLike, GraphicsLike, HasMaps, MapsLike } from "../common.js";
30
+ import type { FeaturesLike, GeometryLike, GraphicsLike, HasMaps, Maps, MapsLike } from "../common.js";
30
31
  import type { EditSymbolResult } from "./drawing.js";
31
- import type { LengthUnits } from "./geometry.js";
32
+ import type { GeodeticCurveType, LengthUnits, LengthUnitsMobile, ReferenceLine } from "./geometry.js";
32
33
  /**
33
34
  * A representation of a 2D vector or point.
34
35
  */
@@ -99,7 +100,9 @@ export declare enum SketchTool {
99
100
  */
100
101
  export declare type AddNodeOrder = "add-after-active" | "add-before-active";
101
102
  /**
102
- * The arguments for the "sketching.move-node" command.
103
+ * Deprecated - use "sketching.move-point" with {@link MovePointArgs}.
104
+ *
105
+ * @deprecated
103
106
  */
104
107
  export interface MoveNodeArgs extends HasMaps {
105
108
  /**
@@ -113,7 +116,53 @@ export interface MoveNodeArgs extends HasMaps {
113
116
  position: Geometry;
114
117
  }
115
118
  /**
116
- * The arguments for the "sketching.switch-active-node" command.
119
+ * The arguments for the "sketching.move-point" command.
120
+ */
121
+ export interface MovePointArgs extends HasMaps {
122
+ /**
123
+ * The point to move, which must already exist within the active sketch. If
124
+ * this property is undefined and no geometry and pointIndex are specified,
125
+ * the active point(s) will be moved.
126
+ */
127
+ point?: Point;
128
+ /**
129
+ * The geometry where the point exists, if multiple are present in an active
130
+ * editing session. This property is required if pointIndex and/or partIndex
131
+ * are defined.
132
+ */
133
+ geometry?: Geometry;
134
+ /**
135
+ * The index of the point. If this property is defined, the 'geometry'
136
+ * property must also be defined.
137
+ */
138
+ pointIndex?: number;
139
+ /**
140
+ * The part of the geometry where the point exists. Required for polyline
141
+ * and polygon geometry types when the geometry and pointIndex properties
142
+ * are defined.
143
+ */
144
+ partIndex?: number;
145
+ /**
146
+ * The new point that will replace the target point within an active sketch
147
+ * or edit geometry. If this property is defined, the distance property
148
+ * will be ignored.
149
+ */
150
+ newPoint?: Point;
151
+ /**
152
+ * An amount to move the point(s) on the X and Y axes. If the newPoint
153
+ * property is defined, this property will be ignored.
154
+ */
155
+ distance?: Vector2D;
156
+ /**
157
+ * The units of the above distance. Optional, will default to the units used
158
+ * by the measurement service associated with the map.
159
+ */
160
+ units?: LengthUnits;
161
+ }
162
+ /**
163
+ * Deprecated - use "sketching.set-active-points" with {@link SetActivePointsArgs}.
164
+ *
165
+ * @deprecated
117
166
  */
118
167
  export interface SwitchActiveNodeArgs extends HasMaps {
119
168
  /**
@@ -121,6 +170,34 @@ export interface SwitchActiveNodeArgs extends HasMaps {
121
170
  */
122
171
  node: Point;
123
172
  }
173
+ /**
174
+ * The arguments for the "sketching.set-active-points" command.
175
+ */
176
+ export interface SetActivePointsArgs extends HasMaps {
177
+ /**
178
+ * The new point(s) that will become active in the sketch or editing
179
+ * session. Sketching only supports one active point; if multiple are
180
+ * specified, then only the first will be set as active.
181
+ */
182
+ points?: Point | Point[];
183
+ /**
184
+ * The geometry where the new active point exists, if multiple are present
185
+ * in an active editing session. This property is required if pointIndex
186
+ * and/or partIndex are defined.
187
+ */
188
+ geometry?: Geometry;
189
+ /**
190
+ * The index of the new active point. If this property is defined, the
191
+ * geometry property must be defined.
192
+ */
193
+ pointIndex?: number;
194
+ /**
195
+ * The part of the geometry where the new active point exists. Required for
196
+ * polyline and polygon geometry types when the geometry and pointIndex
197
+ * properties are defined.
198
+ */
199
+ partIndex?: number;
200
+ }
124
201
  /**
125
202
  * Arguments for the "sketching.capture-geometry" operation.
126
203
  */
@@ -145,6 +222,11 @@ export interface CaptureGeometryArgs {
145
222
  * Mobile.
146
223
  */
147
224
  symbol?: SymbolJson | SymbolSet;
225
+ /**
226
+ * The maximum number of segments permitted for a polyline or polygon
227
+ * sketch. Default is no limit. Mobile only.
228
+ */
229
+ maxSegments?: number;
148
230
  }
149
231
  /**
150
232
  * Result of the "sketching.capture-geometry" operation.
@@ -230,12 +312,23 @@ export interface EditGeometryOptions {
230
312
  * Defaults to true.
231
313
  */
232
314
  enableScaleModeToggle?: boolean;
315
+ /**
316
+ * Whether to allow the user to add, move, and remove vertices from a
317
+ * geometry. Defaults to true.
318
+ */
319
+ enableVertexEditing?: boolean;
233
320
  /**
234
321
  * Setting "free" allows independent scaling on the x and y axis,
235
322
  * "preserve-aspect-ratio" constrains scaling to the original aspect ratio.
236
323
  * Defaults to "preserve-aspect-ratio".
237
324
  */
238
325
  scaleMode?: "free" | "preserve-aspect-ratio";
326
+ /**
327
+ * Whether the resulting geometry is validated before it's returned from the
328
+ * operation. If the geometry is invalid upon completion, an error is
329
+ * thrown. Defaults to true.
330
+ */
331
+ validateGeometry?: boolean;
239
332
  /**
240
333
  * Where to anchor the geometry when performing a free scale operation.
241
334
  * Defaults to "center".
@@ -300,7 +393,49 @@ export interface StopGeometryEditArgs {
300
393
  validateGeometry?: boolean;
301
394
  }
302
395
  /**
303
- * Arguments for the "sketching.add-node-to-geometry" operation.
396
+ * Arguments for the "sketching.add-point" command.
397
+ */
398
+ export interface AddPointArgs extends HasMaps {
399
+ /**
400
+ * The new point to be added.
401
+ */
402
+ newPoint: Point;
403
+ /**
404
+ * The geometry to add the point to, if multiple are present in an active
405
+ * editing session. Not supported by Mobile.
406
+ */
407
+ geometry?: Geometry;
408
+ }
409
+ /**
410
+ * Arguments for the "sketching.insert-point" command.
411
+ */
412
+ export interface InsertPointArgs extends HasMaps {
413
+ /**
414
+ * The index of the part to which the point will be added. If null, the last
415
+ * part will be used.
416
+ */
417
+ partIndex?: number;
418
+ /**
419
+ * The index at which the point will be added. If null, the point will be
420
+ * added as the last point.
421
+ */
422
+ pointIndex?: number;
423
+ /**
424
+ * The new point to be added.
425
+ */
426
+ newPoint: Point;
427
+ /**
428
+ * The geometry to add the point to, if multiple are present in an active
429
+ * editing session. Not supported by Mobile.
430
+ */
431
+ geometry?: Geometry;
432
+ }
433
+ /**
434
+ * Deprecated - Mobile users should rather use "geometry.add-point"; Web users
435
+ * should use "sketching.add-point" with {@link AddPointArgs} or
436
+ * "sketching.insert-point" with {@link InsertPointArgs} instead.
437
+ *
438
+ * @deprecated
304
439
  */
305
440
  export interface AddNodeToGeometryArgs extends HasMaps {
306
441
  /**
@@ -331,10 +466,28 @@ export interface AddNodeToGeometryArgs extends HasMaps {
331
466
  */
332
467
  export interface DeleteGeometryArgs extends HasMaps {
333
468
  /**
334
- * The point to delete from the active sketch. Not supported in Geocortex
335
- * Mobile.
469
+ * The point to remove from the geometry. If this property is defined, the
470
+ * 'pointIndex' and 'partIndex' properties are ignored. If no point nor
471
+ * pointIndex/partIndex are specified, any active points will be deleted. If
472
+ * there are no active points, the entire geometry will be deleted.
336
473
  */
337
- geometry?: Point;
474
+ point?: Point;
475
+ /**
476
+ * The geometry to remove a point from. If this property is not specified,
477
+ * any active vertices will be deleted.
478
+ */
479
+ geometry?: Geometry;
480
+ /**
481
+ * The index of the point that should be removed from the geometry. If this
482
+ * property is defined, the geometry property must also be defined.
483
+ */
484
+ pointIndex?: number;
485
+ /**
486
+ * The index of the part of the geometry that the point should be removed
487
+ * from. Required for polyline and polygon geometry types when the geometry
488
+ * and pointIndex properties are defined.
489
+ */
490
+ partIndex?: number;
338
491
  }
339
492
  /**
340
493
  * Arguments for the "sketching.set-geometry-mode" command.
@@ -355,6 +508,15 @@ export interface SetInteractionModeArgs extends HasMaps {
355
508
  */
356
509
  editorInteractionMode: EditorInteractionMode;
357
510
  }
511
+ /**
512
+ * Arguments for the "sketching.start-streaming" command.
513
+ */
514
+ export interface StartStreamingArgs extends HasMaps {
515
+ /**
516
+ * An optional value indicating, in seconds, how often points should be recorded.
517
+ */
518
+ interval?: number;
519
+ }
358
520
  /**
359
521
  * The editor geometry mode.
360
522
  */
@@ -386,8 +548,12 @@ export interface GeometryEditorSettings {
386
548
  editorInteractionMode?: EditorInteractionMode;
387
549
  }
388
550
  /**
389
- * Result returned from the 'sketching.get-active-sketch' and
390
- * 'sketching.get-active-node' operations.
551
+ * Result returned from the 'sketching.get-active-points' operation.
552
+ */
553
+ export interface GetActivePointsResult extends GetActiveSketchResult {
554
+ }
555
+ /**
556
+ * Result returned from the 'sketching.get-active-sketch' operation.
391
557
  */
392
558
  export interface GetActiveSketchResult {
393
559
  /**
@@ -399,6 +565,84 @@ export interface GetActiveSketchResult {
399
565
  */
400
566
  maps: MapExtension;
401
567
  }
568
+ /**
569
+ * Specifies if a desired point comes before or after a given reference point.
570
+ */
571
+ export declare type PointOffset = "before" | "after";
572
+ /**
573
+ * Arguments for the 'sketching.get-adjacent-point' operation.
574
+ */
575
+ export interface GetAdjacentPointArgs extends HasMaps {
576
+ /**
577
+ * A point geometry that represents a vertex within an active editing
578
+ * graphic.
579
+ */
580
+ referencePoint: Point;
581
+ /**
582
+ * Specifies if the desired point comes before or after the referencePoint.
583
+ * Defaults to 'after'.
584
+ */
585
+ relativeOffset?: PointOffset;
586
+ }
587
+ /**
588
+ * Arguments for the "sketching.set-constraints" command.
589
+ */
590
+ export interface SetConstraintsArgs extends HasMaps {
591
+ /**
592
+ * The constraint for the length of the line between the selected vertex and
593
+ * the new point.
594
+ */
595
+ length?: number;
596
+ /**
597
+ * The constraint for the angle of the line between the selected vertex and
598
+ * the new point, relative to the reference line. Remains unchanged until
599
+ * set to a different value, or cleared.
600
+ */
601
+ angle?: number;
602
+ /**
603
+ * A reference line that the angle will be relative to. Defaults to 'north'.
604
+ * Remains unchanged until set again.
605
+ */
606
+ referenceLine?: ReferenceLine;
607
+ /**
608
+ * Indicates whether constraints will be automatically cleared after a
609
+ * vertex is added or updated. If not set (value is null), then the value
610
+ * will remain unchanged with this operation. If the value has never been
611
+ * set, the default is false. Remains unchanged until set to a different
612
+ * value.
613
+ */
614
+ autoClear?: boolean;
615
+ /**
616
+ * The units to be used for length. If not specified, the units of the map's
617
+ * spatial reference will be used.
618
+ */
619
+ units?: LengthUnitsMobile;
620
+ /**
621
+ * Indicates whether the distance calculations will be geodetic or planar.
622
+ * Default is true.
623
+ */
624
+ geodetic?: boolean;
625
+ /**
626
+ * The geodetic curve type used when calculating the new point. Only applies
627
+ * when geodetic is set to true. Defaults to geodesic.
628
+ * */
629
+ geodeticCurveType?: GeodeticCurveType;
630
+ }
631
+ /**
632
+ * Arguments for the "sketching.clear-constraints" command.
633
+ */
634
+ export interface ClearConstraintsArgs extends HasMaps {
635
+ /**
636
+ * Indicates whether the length constraint should be cleared. Defaults to
637
+ * true if not specified.
638
+ */
639
+ clearLengthConstraint?: boolean;
640
+ /**
641
+ * Indicates whether the angle constraint should be cleared. Defaults to
642
+ * true if not specified.
643
+ */
644
+ clearAngleConstraint?: boolean;
645
+ }
402
646
  export declare class SketchingOperations extends OperationRegistry {
403
647
  /**
404
648
  * Allows the user to create geometry by sketching on a map. Returns the
@@ -444,20 +688,20 @@ export declare class SketchingOperations extends OperationRegistry {
444
688
  * they are not required for this operation.
445
689
  *
446
690
  * @webOnly
447
- *
448
691
  */
449
692
  get rotateGeometry(): Operation<RotateGeometryArgs, GeometryOperationBase>;
450
693
  /**
451
694
  * Stops geometry capturing or editing on a given map. Returns the current
452
695
  * geometry. If validateGeometry parameter is true and geometry is invalid,
453
- * returns null.
696
+ * the operation will return null.
454
697
  */
455
698
  get stop(): Operation<StopGeometryEditArgs | void, CaptureGeometryResult>;
456
699
  /**
457
- * Adds a point to a given polyline or polygon geometry. Returns the
458
- * resulting geometry.
700
+ * Deprecated - Mobile users should rather use "geometry.add-point"; Web
701
+ * users should use "sketching.add-point" or "sketching.insert-point"
702
+ * instead.
459
703
  *
460
- * Deprecated in Mobile, use geometry.add-point instead.
704
+ * @deprecated
461
705
  */
462
706
  get addNodeToGeometry(): Operation<AddNodeToGeometryArgs, Geometry>;
463
707
  /**
@@ -467,11 +711,33 @@ export declare class SketchingOperations extends OperationRegistry {
467
711
  */
468
712
  get getActiveSketch(): Operation<void, GetActiveSketchResult>;
469
713
  /**
470
- * Returns the active point graphic of the active sketch on a map.
714
+ * Deprecated - use 'sketching.get-active-points' instead.
715
+ *
716
+ * @deprecated
717
+ * @webOnly
718
+ */
719
+ get getActiveNode(): Operation<Maps, GetActivePointsResult>;
720
+ /**
721
+ * Returns the active point graphics of the active sketch or edit session on
722
+ * a map.
723
+ *
724
+ * @webOnly
725
+ */
726
+ get getActivePoints(): Operation<Maps, GetActivePointsResult>;
727
+ /**
728
+ * Return the adjacent point graphic(s), relative to a given vertex that's a
729
+ * part of an active editing or sketching session. This operation is only
730
+ * supported for Polyline and Polygon geometries.
471
731
  *
472
732
  * @webOnly
473
733
  */
474
- get getActiveNode(): Operation<ItemRef, GetActiveSketchResult>;
734
+ get getAdjacentPoint(): Operation<GetAdjacentPointArgs, GetActiveSketchResult>;
735
+ /**
736
+ * Checks whether streaming is active.
737
+ *
738
+ * @mobileOnly
739
+ */
740
+ get isStreaming(): Operation<HasMaps, boolean>;
475
741
  }
476
742
  export declare class SketchingCommands extends CommandRegistry {
477
743
  /**
@@ -506,9 +772,10 @@ export declare class SketchingCommands extends CommandRegistry {
506
772
  */
507
773
  get addPointAtCurrentLocation(): Command<HasMaps>;
508
774
  /**
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.
775
+ * Sets a point at the user's current location while editing a geometry. In
776
+ * this context, "set" means to either add a point at the current location,
777
+ * or update the currently selected point to be the user's current
778
+ * location, depending on what edit mode the user is in.
512
779
  *
513
780
  * @mobileOnly
514
781
  */
@@ -516,22 +783,37 @@ export declare class SketchingCommands extends CommandRegistry {
516
783
  /**
517
784
  * If a point is supplied while a sketching or editing operation is active,
518
785
  * the vertex at that point will be deleted from the current geometry. If no
519
- * point is supplied and a geometry editing session is active, the entire
520
- * geometry will be deleted.
786
+ * point is supplied, any active points in the session will be deleted. If
787
+ * there are no active points in the session, the entire geometry will be
788
+ * deleted.
521
789
  */
522
- get delete(): Command<DeleteGeometryArgs>;
790
+ get delete(): Command<void | DeleteGeometryArgs>;
523
791
  /**
524
- * Moves a point within an active sketch to a new location.
792
+ * Deprecated - use 'sketching.move-point' instead.
525
793
  *
794
+ * @deprecated
526
795
  * @webOnly
527
796
  */
528
797
  get moveNode(): Command<MoveNodeArgs>;
529
798
  /**
530
- * Switches the active point of an active sketch.
799
+ * Moves a point within an active sketch to a new location.
800
+ *
801
+ * @webOnly
802
+ */
803
+ get movePoint(): Command<MovePointArgs>;
804
+ /**
805
+ * Deprecated - use 'sketching.set-active-points' instead.
531
806
  *
807
+ * @deprecated
532
808
  * @webOnly
533
809
  */
534
810
  get switchActiveNode(): Command<SwitchActiveNodeArgs>;
811
+ /**
812
+ * Switches the active point of an active sketch.
813
+ *
814
+ * @webOnly
815
+ */
816
+ get setActivePoints(): Command<SetActivePointsArgs>;
535
817
  /**
536
818
  * Sets the interaction mode of the geometry editor.
537
819
  *
@@ -562,4 +844,54 @@ export declare class SketchingCommands extends CommandRegistry {
562
844
  * @webOnly
563
845
  */
564
846
  get disablePrecisionMode(): Command<void>;
847
+ /**
848
+ * Sets constraints on the active sketch.
849
+ *
850
+ * @mobileOnly
851
+ */
852
+ get setConstraints(): Command<SetConstraintsArgs>;
853
+ /**
854
+ * Clears constraints that have been previously set.
855
+ *
856
+ * @mobileOnly
857
+ */
858
+ get clearConstraints(): Command<ClearConstraintsArgs>;
859
+ /**
860
+ * Inserts a point into a polygon, polyline, or multipoint at the specified
861
+ * index. If the partIndex is null, then the last part is used. If the
862
+ * pointIndex is null, then the new point is inserted at the end.
863
+ */
864
+ get insertPoint(): Command<InsertPointArgs>;
865
+ /**
866
+ * Adds a point to polygon, polyline, or multipoint using the selected index
867
+ * as the point to insert after.
868
+ */
869
+ get addPoint(): Command<AddPointArgs>;
870
+ /**
871
+ * Starts streaming: recording your location at regular intervals and
872
+ * adding the collected points to the currently active geometry editor.
873
+ *
874
+ * @mobileOnly
875
+ */
876
+ get startStreaming(): Command<StartStreamingArgs>;
877
+ /**
878
+ * Stops streaming.
879
+ *
880
+ * @mobileOnly
881
+ */
882
+ get stopStreaming(): Command<HasMaps>;
883
+ }
884
+ export declare class SketchingEvents extends EventRegistry {
885
+ /**
886
+ * Raised when streaming has begun.
887
+ *
888
+ * @mobileOnly
889
+ */
890
+ get streamingStarted(): Event<HasMaps>;
891
+ /**
892
+ * Raised when streaming has stopped.
893
+ *
894
+ * @mobileOnly
895
+ */
896
+ get streamingStopped(): Event<HasMaps>;
565
897
  }
@@ -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 getActivePoints(){return this._messages.operation("sketching.get-active-points")}get getAdjacentPoint(){return this._messages.operation("sketching.get-adjacent-point")}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 movePoint(){return this._messages.command("sketching.move-point")}get switchActiveNode(){return this._messages.command("sketching.switch-active-node")}get setActivePoints(){return this._messages.command("sketching.set-active-points")}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 setConstraints(){return this._messages.command("sketching.set-constraints")}get clearConstraints(){return this._messages.command("sketching.clear-constraints")}get insertPoint(){return this._messages.command("sketching.insert-point")}get addPoint(){return this._messages.command("sketching.add-point")}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")}}
@@ -1,5 +1,5 @@
1
1
  import type { UIDensity } from "../../app-config/common/BrandingModelProperties.js";
2
- import type { TranslateOptions } from "../../app-config/common/TranslatableText.js";
2
+ import type { TranslatableText, TranslateOptions } from "../../app-config/common/TranslatableText.js";
3
3
  import type { Command } from "../Command.js";
4
4
  import { CommandRegistry } from "../CommandRegistry.js";
5
5
  import type { Event } from "../Event.js";
@@ -77,9 +77,10 @@ export interface DisplayNotificationArgs {
77
77
  */
78
78
  category?: NotificationCategory;
79
79
  /**
80
- * The message to be displayed in the notification.
80
+ * The message to be displayed in the notification. Mobile only supports a
81
+ * string for this property.
81
82
  */
82
- message: string;
83
+ message: TranslatableText;
83
84
  /**
84
85
  * The position of the notification on the screen.
85
86
  */