@vertigis/viewer-spec 45.1.0 → 46.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.
- package/app-config/schema/common-app-config.schema.json +1 -1
- package/app-config/schema/mobile-app-config.schema.json +1 -1
- package/app-config/schema/web-app-config.schema.json +1 -1
- package/messaging/registry/Operations.d.ts +2 -0
- package/messaging/registry/Operations.js +1 -1
- package/messaging/registry/edit.d.ts +104 -25
- package/messaging/registry/edit.js +1 -1
- package/messaging/registry/map.d.ts +5 -0
- package/messaging/registry/sketching.d.ts +310 -23
- package/messaging/registry/sketching.js +1 -1
- package/messaging/registry/ui.d.ts +4 -3
- package/messaging/schema/common-action.schema.json +592 -8
- package/messaging/schema/common-event.schema.json +36 -0
- package/messaging/schema/mobile-action.schema.json +547 -17
- package/messaging/schema/web-action.schema.json +875 -26
- package/messaging/schema/web-event.schema.json +36 -0
- package/package.json +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -21,16 +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";
|
|
27
26
|
import type { Event } from "../Event.js";
|
|
28
27
|
import { EventRegistry } from "../EventRegistry.js";
|
|
29
28
|
import type { Operation } from "../Operation.js";
|
|
30
29
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
31
|
-
import type { FeaturesLike, GeometryLike, GraphicsLike, HasMaps, MapsLike } from "../common.js";
|
|
30
|
+
import type { FeaturesLike, GeometryLike, GraphicsLike, HasMaps, Maps, MapsLike } from "../common.js";
|
|
32
31
|
import type { EditSymbolResult } from "./drawing.js";
|
|
33
|
-
import type { LengthUnits } from "./geometry.js";
|
|
32
|
+
import type { GeodeticCurveType, LengthUnits, LengthUnitsMobile, ReferenceLine } from "./geometry.js";
|
|
34
33
|
/**
|
|
35
34
|
* A representation of a 2D vector or point.
|
|
36
35
|
*/
|
|
@@ -101,7 +100,9 @@ export declare enum SketchTool {
|
|
|
101
100
|
*/
|
|
102
101
|
export declare type AddNodeOrder = "add-after-active" | "add-before-active";
|
|
103
102
|
/**
|
|
104
|
-
*
|
|
103
|
+
* Deprecated - use "sketching.move-point" with {@link MovePointArgs}.
|
|
104
|
+
*
|
|
105
|
+
* @deprecated
|
|
105
106
|
*/
|
|
106
107
|
export interface MoveNodeArgs extends HasMaps {
|
|
107
108
|
/**
|
|
@@ -115,7 +116,53 @@ export interface MoveNodeArgs extends HasMaps {
|
|
|
115
116
|
position: Geometry;
|
|
116
117
|
}
|
|
117
118
|
/**
|
|
118
|
-
* The arguments for the "sketching.
|
|
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
|
|
119
166
|
*/
|
|
120
167
|
export interface SwitchActiveNodeArgs extends HasMaps {
|
|
121
168
|
/**
|
|
@@ -123,6 +170,34 @@ export interface SwitchActiveNodeArgs extends HasMaps {
|
|
|
123
170
|
*/
|
|
124
171
|
node: Point;
|
|
125
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
|
+
}
|
|
126
201
|
/**
|
|
127
202
|
* Arguments for the "sketching.capture-geometry" operation.
|
|
128
203
|
*/
|
|
@@ -147,6 +222,11 @@ export interface CaptureGeometryArgs {
|
|
|
147
222
|
* Mobile.
|
|
148
223
|
*/
|
|
149
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;
|
|
150
230
|
}
|
|
151
231
|
/**
|
|
152
232
|
* Result of the "sketching.capture-geometry" operation.
|
|
@@ -232,12 +312,23 @@ export interface EditGeometryOptions {
|
|
|
232
312
|
* Defaults to true.
|
|
233
313
|
*/
|
|
234
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;
|
|
235
320
|
/**
|
|
236
321
|
* Setting "free" allows independent scaling on the x and y axis,
|
|
237
322
|
* "preserve-aspect-ratio" constrains scaling to the original aspect ratio.
|
|
238
323
|
* Defaults to "preserve-aspect-ratio".
|
|
239
324
|
*/
|
|
240
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;
|
|
241
332
|
/**
|
|
242
333
|
* Where to anchor the geometry when performing a free scale operation.
|
|
243
334
|
* Defaults to "center".
|
|
@@ -302,7 +393,49 @@ export interface StopGeometryEditArgs {
|
|
|
302
393
|
validateGeometry?: boolean;
|
|
303
394
|
}
|
|
304
395
|
/**
|
|
305
|
-
* Arguments for the "sketching.add-
|
|
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
|
|
306
439
|
*/
|
|
307
440
|
export interface AddNodeToGeometryArgs extends HasMaps {
|
|
308
441
|
/**
|
|
@@ -333,10 +466,28 @@ export interface AddNodeToGeometryArgs extends HasMaps {
|
|
|
333
466
|
*/
|
|
334
467
|
export interface DeleteGeometryArgs extends HasMaps {
|
|
335
468
|
/**
|
|
336
|
-
* The point to
|
|
337
|
-
*
|
|
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.
|
|
473
|
+
*/
|
|
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.
|
|
338
489
|
*/
|
|
339
|
-
|
|
490
|
+
partIndex?: number;
|
|
340
491
|
}
|
|
341
492
|
/**
|
|
342
493
|
* Arguments for the "sketching.set-geometry-mode" command.
|
|
@@ -397,8 +548,12 @@ export interface GeometryEditorSettings {
|
|
|
397
548
|
editorInteractionMode?: EditorInteractionMode;
|
|
398
549
|
}
|
|
399
550
|
/**
|
|
400
|
-
* Result returned from the 'sketching.get-active-
|
|
401
|
-
|
|
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.
|
|
402
557
|
*/
|
|
403
558
|
export interface GetActiveSketchResult {
|
|
404
559
|
/**
|
|
@@ -410,6 +565,84 @@ export interface GetActiveSketchResult {
|
|
|
410
565
|
*/
|
|
411
566
|
maps: MapExtension;
|
|
412
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
|
+
}
|
|
413
646
|
export declare class SketchingOperations extends OperationRegistry {
|
|
414
647
|
/**
|
|
415
648
|
* Allows the user to create geometry by sketching on a map. Returns the
|
|
@@ -455,20 +688,20 @@ export declare class SketchingOperations extends OperationRegistry {
|
|
|
455
688
|
* they are not required for this operation.
|
|
456
689
|
*
|
|
457
690
|
* @webOnly
|
|
458
|
-
*
|
|
459
691
|
*/
|
|
460
692
|
get rotateGeometry(): Operation<RotateGeometryArgs, GeometryOperationBase>;
|
|
461
693
|
/**
|
|
462
694
|
* Stops geometry capturing or editing on a given map. Returns the current
|
|
463
695
|
* geometry. If validateGeometry parameter is true and geometry is invalid,
|
|
464
|
-
*
|
|
696
|
+
* the operation will return null.
|
|
465
697
|
*/
|
|
466
698
|
get stop(): Operation<StopGeometryEditArgs | void, CaptureGeometryResult>;
|
|
467
699
|
/**
|
|
468
|
-
*
|
|
469
|
-
*
|
|
700
|
+
* Deprecated - Mobile users should rather use "geometry.add-point"; Web
|
|
701
|
+
* users should use "sketching.add-point" or "sketching.insert-point"
|
|
702
|
+
* instead.
|
|
470
703
|
*
|
|
471
|
-
*
|
|
704
|
+
* @deprecated
|
|
472
705
|
*/
|
|
473
706
|
get addNodeToGeometry(): Operation<AddNodeToGeometryArgs, Geometry>;
|
|
474
707
|
/**
|
|
@@ -478,11 +711,27 @@ export declare class SketchingOperations extends OperationRegistry {
|
|
|
478
711
|
*/
|
|
479
712
|
get getActiveSketch(): Operation<void, GetActiveSketchResult>;
|
|
480
713
|
/**
|
|
481
|
-
*
|
|
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.
|
|
482
731
|
*
|
|
483
732
|
* @webOnly
|
|
484
733
|
*/
|
|
485
|
-
get
|
|
734
|
+
get getAdjacentPoint(): Operation<GetAdjacentPointArgs, GetActiveSketchResult>;
|
|
486
735
|
/**
|
|
487
736
|
* Checks whether streaming is active.
|
|
488
737
|
*
|
|
@@ -534,22 +783,37 @@ export declare class SketchingCommands extends CommandRegistry {
|
|
|
534
783
|
/**
|
|
535
784
|
* If a point is supplied while a sketching or editing operation is active,
|
|
536
785
|
* the vertex at that point will be deleted from the current geometry. If no
|
|
537
|
-
* point is supplied
|
|
538
|
-
* geometry will be
|
|
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.
|
|
539
789
|
*/
|
|
540
|
-
get delete(): Command<DeleteGeometryArgs>;
|
|
790
|
+
get delete(): Command<void | DeleteGeometryArgs>;
|
|
541
791
|
/**
|
|
542
|
-
*
|
|
792
|
+
* Deprecated - use 'sketching.move-point' instead.
|
|
543
793
|
*
|
|
794
|
+
* @deprecated
|
|
544
795
|
* @webOnly
|
|
545
796
|
*/
|
|
546
797
|
get moveNode(): Command<MoveNodeArgs>;
|
|
547
798
|
/**
|
|
548
|
-
*
|
|
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.
|
|
549
806
|
*
|
|
807
|
+
* @deprecated
|
|
550
808
|
* @webOnly
|
|
551
809
|
*/
|
|
552
810
|
get switchActiveNode(): Command<SwitchActiveNodeArgs>;
|
|
811
|
+
/**
|
|
812
|
+
* Switches the active point of an active sketch.
|
|
813
|
+
*
|
|
814
|
+
* @webOnly
|
|
815
|
+
*/
|
|
816
|
+
get setActivePoints(): Command<SetActivePointsArgs>;
|
|
553
817
|
/**
|
|
554
818
|
* Sets the interaction mode of the geometry editor.
|
|
555
819
|
*
|
|
@@ -580,6 +844,29 @@ export declare class SketchingCommands extends CommandRegistry {
|
|
|
580
844
|
* @webOnly
|
|
581
845
|
*/
|
|
582
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>;
|
|
583
870
|
/**
|
|
584
871
|
* Starts streaming: recording your location at regular intervals and
|
|
585
872
|
* adding the collected points to the currently active geometry editor.
|
|
@@ -1 +1 @@
|
|
|
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")}}
|
|
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:
|
|
83
|
+
message: TranslatableText;
|
|
83
84
|
/**
|
|
84
85
|
* The position of the notification on the screen.
|
|
85
86
|
*/
|