@vertigis/viewer-spec 45.1.0 → 45.2.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/messaging/registry/map.d.ts +5 -0
- package/messaging/registry/sketching.d.ts +116 -1
- package/messaging/registry/sketching.js +1 -1
- package/messaging/schema/common-action.schema.json +104 -0
- package/messaging/schema/mobile-action.schema.json +204 -0
- package/messaging/schema/web-action.schema.json +104 -0
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.
|
|
@@ -30,7 +30,7 @@ import type { Operation } from "../Operation.js";
|
|
|
30
30
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
31
31
|
import type { FeaturesLike, GeometryLike, GraphicsLike, HasMaps, MapsLike } from "../common.js";
|
|
32
32
|
import type { EditSymbolResult } from "./drawing.js";
|
|
33
|
-
import type { LengthUnits } from "./geometry.js";
|
|
33
|
+
import type { GeodeticCurveType, LengthUnits, LengthUnitsMobile, ReferenceLine } from "./geometry.js";
|
|
34
34
|
/**
|
|
35
35
|
* A representation of a 2D vector or point.
|
|
36
36
|
*/
|
|
@@ -147,6 +147,11 @@ export interface CaptureGeometryArgs {
|
|
|
147
147
|
* Mobile.
|
|
148
148
|
*/
|
|
149
149
|
symbol?: SymbolJson | SymbolSet;
|
|
150
|
+
/**
|
|
151
|
+
* The maximum number of segments permitted for a polyline or polygon
|
|
152
|
+
* sketch. Default is no limit. Mobile only.
|
|
153
|
+
*/
|
|
154
|
+
maxSegments?: number;
|
|
150
155
|
}
|
|
151
156
|
/**
|
|
152
157
|
* Result of the "sketching.capture-geometry" operation.
|
|
@@ -410,6 +415,93 @@ export interface GetActiveSketchResult {
|
|
|
410
415
|
*/
|
|
411
416
|
maps: MapExtension;
|
|
412
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* Arguments for the "sketching.set-constraints" command.
|
|
420
|
+
*/
|
|
421
|
+
export interface SetConstraintsArgs extends HasMaps {
|
|
422
|
+
/**
|
|
423
|
+
* The constraint for the length of the line between the selected vertex and
|
|
424
|
+
* the new point.
|
|
425
|
+
*/
|
|
426
|
+
length?: number;
|
|
427
|
+
/**
|
|
428
|
+
* The constraint for the angle of the line between the selected vertex and
|
|
429
|
+
* the new point, relative to the reference line. Remains unchanged until
|
|
430
|
+
* set to a different value, or cleared.
|
|
431
|
+
*/
|
|
432
|
+
angle?: number;
|
|
433
|
+
/**
|
|
434
|
+
* A reference line that the angle will be relative to. Defaults to 'north'.
|
|
435
|
+
* Remains unchanged until set again.
|
|
436
|
+
*/
|
|
437
|
+
referenceLine?: ReferenceLine;
|
|
438
|
+
/**
|
|
439
|
+
* Indicates whether constraints will be automatically cleared after a
|
|
440
|
+
* vertex is added or updated. If not set (value is null), then the value
|
|
441
|
+
* will remain unchanged with this operation. If the value has never been
|
|
442
|
+
* set, the default is false. Remains unchanged until set to a different
|
|
443
|
+
* value.
|
|
444
|
+
*/
|
|
445
|
+
autoClear?: boolean;
|
|
446
|
+
/**
|
|
447
|
+
* The units to be used for length. If not specified, the units of the map's
|
|
448
|
+
* spatial reference will be used.
|
|
449
|
+
*/
|
|
450
|
+
units?: LengthUnitsMobile;
|
|
451
|
+
/**
|
|
452
|
+
* Indicates whether the distance calculations will be geodetic or planar.
|
|
453
|
+
* Default is true.
|
|
454
|
+
*/
|
|
455
|
+
geodetic?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* The geodetic curve type used when calculating the new point. Only applies
|
|
458
|
+
* when geodetic is set to true. Defaults to geodesic.
|
|
459
|
+
* */
|
|
460
|
+
geodeticCurveType?: GeodeticCurveType;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Arguments for the "sketching.clear-constraints" command.
|
|
464
|
+
*/
|
|
465
|
+
export interface ClearConstraintsArgs extends HasMaps {
|
|
466
|
+
/**
|
|
467
|
+
* Indicates whether the length constraint should be cleared. Defaults to
|
|
468
|
+
* true if not specified.
|
|
469
|
+
*/
|
|
470
|
+
clearLengthConstraint?: boolean;
|
|
471
|
+
/**
|
|
472
|
+
* Indicates whether the angle constraint should be cleared. Defaults to
|
|
473
|
+
* true if not specified.
|
|
474
|
+
*/
|
|
475
|
+
clearAngleConstraint?: boolean;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Arguments for the "sketching.add-point" command.
|
|
479
|
+
*/
|
|
480
|
+
export interface AddPointArgs extends HasMaps {
|
|
481
|
+
/**
|
|
482
|
+
* The new point to be added.
|
|
483
|
+
*/
|
|
484
|
+
newPoint: Point;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Arguments for the "sketching.insert-point" command.
|
|
488
|
+
*/
|
|
489
|
+
export interface InsertPointArgs extends HasMaps {
|
|
490
|
+
/**
|
|
491
|
+
* The index of the part to which the point will be added. If null, the last
|
|
492
|
+
* part will be used.
|
|
493
|
+
*/
|
|
494
|
+
partIndex?: number;
|
|
495
|
+
/**
|
|
496
|
+
* The index at which the point will be added. If null, the point will be
|
|
497
|
+
* added as the last point.
|
|
498
|
+
*/
|
|
499
|
+
pointIndex?: number;
|
|
500
|
+
/**
|
|
501
|
+
* The new point to be added.
|
|
502
|
+
*/
|
|
503
|
+
newPoint: Point;
|
|
504
|
+
}
|
|
413
505
|
export declare class SketchingOperations extends OperationRegistry {
|
|
414
506
|
/**
|
|
415
507
|
* Allows the user to create geometry by sketching on a map. Returns the
|
|
@@ -580,6 +672,29 @@ export declare class SketchingCommands extends CommandRegistry {
|
|
|
580
672
|
* @webOnly
|
|
581
673
|
*/
|
|
582
674
|
get disablePrecisionMode(): Command<void>;
|
|
675
|
+
/**
|
|
676
|
+
* Sets constraints on the active sketch.
|
|
677
|
+
*
|
|
678
|
+
* @mobileOnly
|
|
679
|
+
*/
|
|
680
|
+
get setConstraints(): Command<SetConstraintsArgs>;
|
|
681
|
+
/**
|
|
682
|
+
* Clears constraints that have been previously set.
|
|
683
|
+
*
|
|
684
|
+
* @mobileOnly
|
|
685
|
+
*/
|
|
686
|
+
get clearConstraints(): Command<ClearConstraintsArgs>;
|
|
687
|
+
/**
|
|
688
|
+
* Inserts a point into a polygon or polyline at the specified index. If the
|
|
689
|
+
* partIndex is null, then the last part is used. If the pointIndex is null,
|
|
690
|
+
* then the new point is inserted at the end.
|
|
691
|
+
*/
|
|
692
|
+
get insertPoint(): Command<InsertPointArgs>;
|
|
693
|
+
/**
|
|
694
|
+
* Adds a point to polygon or polyline using the selected index as the point
|
|
695
|
+
* to insert after.
|
|
696
|
+
*/
|
|
697
|
+
get addPoint(): Command<AddPointArgs>;
|
|
583
698
|
/**
|
|
584
699
|
* Starts streaming: recording your location at regular intervals and
|
|
585
700
|
* 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 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 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")}}
|
|
@@ -493,6 +493,24 @@
|
|
|
493
493
|
],
|
|
494
494
|
"type": "object"
|
|
495
495
|
},
|
|
496
|
+
"AddPointArgs": {
|
|
497
|
+
"additionalProperties": false,
|
|
498
|
+
"description": "Arguments for the \"sketching.add-point\" command.",
|
|
499
|
+
"properties": {
|
|
500
|
+
"maps": {
|
|
501
|
+
"$ref": "MapsLike",
|
|
502
|
+
"description": "Map(s) to use for the command/operation."
|
|
503
|
+
},
|
|
504
|
+
"newPoint": {
|
|
505
|
+
"$ref": "#/definitions/esri.Point",
|
|
506
|
+
"description": "The new point to be added."
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"required": [
|
|
510
|
+
"newPoint"
|
|
511
|
+
],
|
|
512
|
+
"type": "object"
|
|
513
|
+
},
|
|
496
514
|
"AlertCommandArgs": {
|
|
497
515
|
"additionalProperties": false,
|
|
498
516
|
"description": "Arguments for the 'ui.alert' command.",
|
|
@@ -555,6 +573,10 @@
|
|
|
555
573
|
"$ref": "MapsLike",
|
|
556
574
|
"description": "The maps to activate drawing on. By default it will be all maps."
|
|
557
575
|
},
|
|
576
|
+
"maxSegments": {
|
|
577
|
+
"description": "The maximum number of segments permitted for a polyline or polygon sketch. Default is no limit. Mobile only.",
|
|
578
|
+
"type": "number"
|
|
579
|
+
},
|
|
558
580
|
"symbol": {
|
|
559
581
|
"anyOf": [
|
|
560
582
|
{
|
|
@@ -1220,6 +1242,32 @@
|
|
|
1220
1242
|
],
|
|
1221
1243
|
"type": "object"
|
|
1222
1244
|
},
|
|
1245
|
+
"InsertPointArgs": {
|
|
1246
|
+
"additionalProperties": false,
|
|
1247
|
+
"description": "Arguments for the \"sketching.insert-point\" command.",
|
|
1248
|
+
"properties": {
|
|
1249
|
+
"maps": {
|
|
1250
|
+
"$ref": "MapsLike",
|
|
1251
|
+
"description": "Map(s) to use for the command/operation."
|
|
1252
|
+
},
|
|
1253
|
+
"newPoint": {
|
|
1254
|
+
"$ref": "#/definitions/esri.Point",
|
|
1255
|
+
"description": "The new point to be added."
|
|
1256
|
+
},
|
|
1257
|
+
"partIndex": {
|
|
1258
|
+
"description": "The index of the part to which the point will be added. If null, the last part will be used.",
|
|
1259
|
+
"type": "number"
|
|
1260
|
+
},
|
|
1261
|
+
"pointIndex": {
|
|
1262
|
+
"description": "The index at which the point will be added. If null, the point will be added as the last point.",
|
|
1263
|
+
"type": "number"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
"required": [
|
|
1267
|
+
"newPoint"
|
|
1268
|
+
],
|
|
1269
|
+
"type": "object"
|
|
1270
|
+
},
|
|
1223
1271
|
"JobParameters": {
|
|
1224
1272
|
"additionalProperties": false,
|
|
1225
1273
|
"description": "A set of parameters used to run a job.",
|
|
@@ -11135,6 +11183,15 @@
|
|
|
11135
11183
|
"sketching.add-node-to-geometry:output": {
|
|
11136
11184
|
"$ref": "#/definitions/esri.Geometry"
|
|
11137
11185
|
},
|
|
11186
|
+
"sketching.add-point": {
|
|
11187
|
+
"description": "Adds a point to polygon or polyline using the selected index as the point to insert after.",
|
|
11188
|
+
"enum": [
|
|
11189
|
+
"sketching.add-point"
|
|
11190
|
+
]
|
|
11191
|
+
},
|
|
11192
|
+
"sketching.add-point:input": {
|
|
11193
|
+
"$ref": "#/definitions/AddPointArgs"
|
|
11194
|
+
},
|
|
11138
11195
|
"sketching.capture-geometry": {
|
|
11139
11196
|
"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.",
|
|
11140
11197
|
"enum": [
|
|
@@ -11168,6 +11225,15 @@
|
|
|
11168
11225
|
"sketching.edit-geometry:output": {
|
|
11169
11226
|
"$ref": "#/definitions/EditGeometryResult"
|
|
11170
11227
|
},
|
|
11228
|
+
"sketching.insert-point": {
|
|
11229
|
+
"description": "Inserts a point into a polygon or polyline at the specified index. If the partIndex is null, then the last part is used. If the pointIndex is null, then the new point is inserted at the end.",
|
|
11230
|
+
"enum": [
|
|
11231
|
+
"sketching.insert-point"
|
|
11232
|
+
]
|
|
11233
|
+
},
|
|
11234
|
+
"sketching.insert-point:input": {
|
|
11235
|
+
"$ref": "#/definitions/InsertPointArgs"
|
|
11236
|
+
},
|
|
11171
11237
|
"sketching.redo": {
|
|
11172
11238
|
"description": "Redoes the last undone edit while editing a geometry.",
|
|
11173
11239
|
"enum": [
|
|
@@ -11830,6 +11896,22 @@
|
|
|
11830
11896
|
],
|
|
11831
11897
|
"type": "object"
|
|
11832
11898
|
},
|
|
11899
|
+
{
|
|
11900
|
+
"additionalProperties": false,
|
|
11901
|
+
"properties": {
|
|
11902
|
+
"arguments": {
|
|
11903
|
+
"$ref": "#/definitions/sketching.add-point:input"
|
|
11904
|
+
},
|
|
11905
|
+
"name": {
|
|
11906
|
+
"$ref": "#/definitions/sketching.add-point"
|
|
11907
|
+
}
|
|
11908
|
+
},
|
|
11909
|
+
"required": [
|
|
11910
|
+
"name",
|
|
11911
|
+
"arguments"
|
|
11912
|
+
],
|
|
11913
|
+
"type": "object"
|
|
11914
|
+
},
|
|
11833
11915
|
{
|
|
11834
11916
|
"additionalProperties": false,
|
|
11835
11917
|
"properties": {
|
|
@@ -11846,6 +11928,22 @@
|
|
|
11846
11928
|
],
|
|
11847
11929
|
"type": "object"
|
|
11848
11930
|
},
|
|
11931
|
+
{
|
|
11932
|
+
"additionalProperties": false,
|
|
11933
|
+
"properties": {
|
|
11934
|
+
"arguments": {
|
|
11935
|
+
"$ref": "#/definitions/sketching.insert-point:input"
|
|
11936
|
+
},
|
|
11937
|
+
"name": {
|
|
11938
|
+
"$ref": "#/definitions/sketching.insert-point"
|
|
11939
|
+
}
|
|
11940
|
+
},
|
|
11941
|
+
"required": [
|
|
11942
|
+
"name",
|
|
11943
|
+
"arguments"
|
|
11944
|
+
],
|
|
11945
|
+
"type": "object"
|
|
11946
|
+
},
|
|
11849
11947
|
{
|
|
11850
11948
|
"additionalProperties": false,
|
|
11851
11949
|
"properties": {
|
|
@@ -12092,9 +12190,15 @@
|
|
|
12092
12190
|
{
|
|
12093
12191
|
"$ref": "#/definitions/search.clear"
|
|
12094
12192
|
},
|
|
12193
|
+
{
|
|
12194
|
+
"$ref": "#/definitions/sketching.add-point"
|
|
12195
|
+
},
|
|
12095
12196
|
{
|
|
12096
12197
|
"$ref": "#/definitions/sketching.delete"
|
|
12097
12198
|
},
|
|
12199
|
+
{
|
|
12200
|
+
"$ref": "#/definitions/sketching.insert-point"
|
|
12201
|
+
},
|
|
12098
12202
|
{
|
|
12099
12203
|
"$ref": "#/definitions/sketching.redo"
|
|
12100
12204
|
},
|
|
@@ -696,6 +696,10 @@
|
|
|
696
696
|
"$ref": "MapsLike",
|
|
697
697
|
"description": "The maps to activate drawing on. By default it will be all maps."
|
|
698
698
|
},
|
|
699
|
+
"maxSegments": {
|
|
700
|
+
"description": "The maximum number of segments permitted for a polyline or polygon sketch. Default is no limit. Mobile only.",
|
|
701
|
+
"type": "number"
|
|
702
|
+
},
|
|
699
703
|
"symbol": {
|
|
700
704
|
"anyOf": [
|
|
701
705
|
{
|
|
@@ -751,6 +755,25 @@
|
|
|
751
755
|
],
|
|
752
756
|
"type": "object"
|
|
753
757
|
},
|
|
758
|
+
"ClearConstraintsArgs": {
|
|
759
|
+
"additionalProperties": false,
|
|
760
|
+
"description": "Arguments for the \"sketching.clear-constraints\" command.",
|
|
761
|
+
"properties": {
|
|
762
|
+
"clearAngleConstraint": {
|
|
763
|
+
"description": "Indicates whether the angle constraint should be cleared. Defaults to true if not specified.",
|
|
764
|
+
"type": "boolean"
|
|
765
|
+
},
|
|
766
|
+
"clearLengthConstraint": {
|
|
767
|
+
"description": "Indicates whether the length constraint should be cleared. Defaults to true if not specified.",
|
|
768
|
+
"type": "boolean"
|
|
769
|
+
},
|
|
770
|
+
"maps": {
|
|
771
|
+
"$ref": "MapsLike",
|
|
772
|
+
"description": "Map(s) to use for the command/operation."
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"type": "object"
|
|
776
|
+
},
|
|
754
777
|
"ConfirmOperationArgs": {
|
|
755
778
|
"additionalProperties": false,
|
|
756
779
|
"description": "Arguments for the 'ui.confirm' operation.",
|
|
@@ -1683,6 +1706,32 @@
|
|
|
1683
1706
|
],
|
|
1684
1707
|
"type": "object"
|
|
1685
1708
|
},
|
|
1709
|
+
"InsertPointArgs": {
|
|
1710
|
+
"additionalProperties": false,
|
|
1711
|
+
"description": "Arguments for the \"sketching.insert-point\" command.",
|
|
1712
|
+
"properties": {
|
|
1713
|
+
"maps": {
|
|
1714
|
+
"$ref": "MapsLike",
|
|
1715
|
+
"description": "Map(s) to use for the command/operation."
|
|
1716
|
+
},
|
|
1717
|
+
"newPoint": {
|
|
1718
|
+
"$ref": "#/definitions/esri.Point",
|
|
1719
|
+
"description": "The new point to be added."
|
|
1720
|
+
},
|
|
1721
|
+
"partIndex": {
|
|
1722
|
+
"description": "The index of the part to which the point will be added. If null, the last part will be used.",
|
|
1723
|
+
"type": "number"
|
|
1724
|
+
},
|
|
1725
|
+
"pointIndex": {
|
|
1726
|
+
"description": "The index at which the point will be added. If null, the point will be added as the last point.",
|
|
1727
|
+
"type": "number"
|
|
1728
|
+
}
|
|
1729
|
+
},
|
|
1730
|
+
"required": [
|
|
1731
|
+
"newPoint"
|
|
1732
|
+
],
|
|
1733
|
+
"type": "object"
|
|
1734
|
+
},
|
|
1686
1735
|
"JobParameters": {
|
|
1687
1736
|
"additionalProperties": false,
|
|
1688
1737
|
"description": "A set of parameters used to run a job.",
|
|
@@ -2314,6 +2363,45 @@
|
|
|
2314
2363
|
],
|
|
2315
2364
|
"type": "object"
|
|
2316
2365
|
},
|
|
2366
|
+
"SetConstraintsArgs": {
|
|
2367
|
+
"additionalProperties": false,
|
|
2368
|
+
"description": "Arguments for the \"sketching.set-constraints\" command.",
|
|
2369
|
+
"properties": {
|
|
2370
|
+
"angle": {
|
|
2371
|
+
"description": "The constraint for the angle of the line between the selected vertex and the new point, relative to the reference line. Remains unchanged until set to a different value, or cleared.",
|
|
2372
|
+
"type": "number"
|
|
2373
|
+
},
|
|
2374
|
+
"autoClear": {
|
|
2375
|
+
"description": "Indicates whether constraints will be automatically cleared after a vertex is added or updated. If not set (value is null), then the value will remain unchanged with this operation. If the value has never been set, the default is false. Remains unchanged until set to a different value.",
|
|
2376
|
+
"type": "boolean"
|
|
2377
|
+
},
|
|
2378
|
+
"geodetic": {
|
|
2379
|
+
"description": "Indicates whether the distance calculations will be geodetic or planar. Default is true.",
|
|
2380
|
+
"type": "boolean"
|
|
2381
|
+
},
|
|
2382
|
+
"geodeticCurveType": {
|
|
2383
|
+
"$ref": "#/definitions/GeodeticCurveType",
|
|
2384
|
+
"description": "The geodetic curve type used when calculating the new point. Only applies when geodetic is set to true. Defaults to geodesic."
|
|
2385
|
+
},
|
|
2386
|
+
"length": {
|
|
2387
|
+
"description": "The constraint for the length of the line between the selected vertex and the new point.",
|
|
2388
|
+
"type": "number"
|
|
2389
|
+
},
|
|
2390
|
+
"maps": {
|
|
2391
|
+
"$ref": "MapsLike",
|
|
2392
|
+
"description": "Map(s) to use for the command/operation."
|
|
2393
|
+
},
|
|
2394
|
+
"referenceLine": {
|
|
2395
|
+
"$ref": "#/definitions/ReferenceLine",
|
|
2396
|
+
"description": "A reference line that the angle will be relative to. Defaults to 'north'. Remains unchanged until set again."
|
|
2397
|
+
},
|
|
2398
|
+
"units": {
|
|
2399
|
+
"$ref": "#/definitions/LengthUnitsMobile",
|
|
2400
|
+
"description": "The units to be used for length. If not specified, the units of the map's spatial reference will be used."
|
|
2401
|
+
}
|
|
2402
|
+
},
|
|
2403
|
+
"type": "object"
|
|
2404
|
+
},
|
|
2317
2405
|
"SetGeometryModeArgs": {
|
|
2318
2406
|
"additionalProperties": false,
|
|
2319
2407
|
"description": "Arguments for the \"sketching.set-geometry-mode\" command.",
|
|
@@ -2463,6 +2551,10 @@
|
|
|
2463
2551
|
"$ref": "MapsLike",
|
|
2464
2552
|
"description": "The map to sketch on."
|
|
2465
2553
|
},
|
|
2554
|
+
"maxSegments": {
|
|
2555
|
+
"description": "The maximum number of segments permitted for a polyline or polygon sketch. Default is no limit. Mobile only.",
|
|
2556
|
+
"type": "number"
|
|
2557
|
+
},
|
|
2466
2558
|
"resumeId": {
|
|
2467
2559
|
"description": "Gets a resume ID for the sketch. Cannot be set.",
|
|
2468
2560
|
"type": "string"
|
|
@@ -12969,6 +13061,12 @@
|
|
|
12969
13061
|
"sketching.add-node-to-geometry:output": {
|
|
12970
13062
|
"$ref": "#/definitions/esri.Geometry"
|
|
12971
13063
|
},
|
|
13064
|
+
"sketching.add-point": {
|
|
13065
|
+
"description": "Adds a point to polygon or polyline using the selected index as the point to insert after.",
|
|
13066
|
+
"enum": [
|
|
13067
|
+
"sketching.add-point"
|
|
13068
|
+
]
|
|
13069
|
+
},
|
|
12972
13070
|
"sketching.add-point-at-center": {
|
|
12973
13071
|
"description": "Adds a point at the center of the map while editing a geometry. Works in centerCrosshair mode only.",
|
|
12974
13072
|
"enum": [
|
|
@@ -12987,6 +13085,9 @@
|
|
|
12987
13085
|
"sketching.add-point-at-current-location:input": {
|
|
12988
13086
|
"$ref": "#/definitions/HasMaps"
|
|
12989
13087
|
},
|
|
13088
|
+
"sketching.add-point:input": {
|
|
13089
|
+
"$ref": "#/definitions/AddPointArgs"
|
|
13090
|
+
},
|
|
12990
13091
|
"sketching.capture-geometry": {
|
|
12991
13092
|
"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.",
|
|
12992
13093
|
"enum": [
|
|
@@ -12999,6 +13100,15 @@
|
|
|
12999
13100
|
"sketching.capture-geometry:output": {
|
|
13000
13101
|
"$ref": "#/definitions/CaptureGeometryResult"
|
|
13001
13102
|
},
|
|
13103
|
+
"sketching.clear-constraints": {
|
|
13104
|
+
"description": "Clears constraints that have been previously set.",
|
|
13105
|
+
"enum": [
|
|
13106
|
+
"sketching.clear-constraints"
|
|
13107
|
+
]
|
|
13108
|
+
},
|
|
13109
|
+
"sketching.clear-constraints:input": {
|
|
13110
|
+
"$ref": "#/definitions/ClearConstraintsArgs"
|
|
13111
|
+
},
|
|
13002
13112
|
"sketching.delete": {
|
|
13003
13113
|
"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.",
|
|
13004
13114
|
"enum": [
|
|
@@ -13020,6 +13130,15 @@
|
|
|
13020
13130
|
"sketching.edit-geometry:output": {
|
|
13021
13131
|
"$ref": "#/definitions/EditGeometryResult"
|
|
13022
13132
|
},
|
|
13133
|
+
"sketching.insert-point": {
|
|
13134
|
+
"description": "Inserts a point into a polygon or polyline at the specified index. If the partIndex is null, then the last part is used. If the pointIndex is null, then the new point is inserted at the end.",
|
|
13135
|
+
"enum": [
|
|
13136
|
+
"sketching.insert-point"
|
|
13137
|
+
]
|
|
13138
|
+
},
|
|
13139
|
+
"sketching.insert-point:input": {
|
|
13140
|
+
"$ref": "#/definitions/InsertPointArgs"
|
|
13141
|
+
},
|
|
13023
13142
|
"sketching.is-streaming": {
|
|
13024
13143
|
"description": "Checks whether streaming is active.",
|
|
13025
13144
|
"enum": [
|
|
@@ -13041,6 +13160,15 @@
|
|
|
13041
13160
|
"sketching.redo:input": {
|
|
13042
13161
|
"$ref": "#/definitions/HasMaps"
|
|
13043
13162
|
},
|
|
13163
|
+
"sketching.set-constraints": {
|
|
13164
|
+
"description": "Sets constraints on the active sketch.",
|
|
13165
|
+
"enum": [
|
|
13166
|
+
"sketching.set-constraints"
|
|
13167
|
+
]
|
|
13168
|
+
},
|
|
13169
|
+
"sketching.set-constraints:input": {
|
|
13170
|
+
"$ref": "#/definitions/SetConstraintsArgs"
|
|
13171
|
+
},
|
|
13044
13172
|
"sketching.set-geometry-mode": {
|
|
13045
13173
|
"description": "Sets the geometry mode of the geometry editor.",
|
|
13046
13174
|
"enum": [
|
|
@@ -14542,6 +14670,22 @@
|
|
|
14542
14670
|
],
|
|
14543
14671
|
"type": "object"
|
|
14544
14672
|
},
|
|
14673
|
+
{
|
|
14674
|
+
"additionalProperties": false,
|
|
14675
|
+
"properties": {
|
|
14676
|
+
"arguments": {
|
|
14677
|
+
"$ref": "#/definitions/sketching.add-point:input"
|
|
14678
|
+
},
|
|
14679
|
+
"name": {
|
|
14680
|
+
"$ref": "#/definitions/sketching.add-point"
|
|
14681
|
+
}
|
|
14682
|
+
},
|
|
14683
|
+
"required": [
|
|
14684
|
+
"name",
|
|
14685
|
+
"arguments"
|
|
14686
|
+
],
|
|
14687
|
+
"type": "object"
|
|
14688
|
+
},
|
|
14545
14689
|
{
|
|
14546
14690
|
"additionalProperties": false,
|
|
14547
14691
|
"properties": {
|
|
@@ -14574,6 +14718,22 @@
|
|
|
14574
14718
|
],
|
|
14575
14719
|
"type": "object"
|
|
14576
14720
|
},
|
|
14721
|
+
{
|
|
14722
|
+
"additionalProperties": false,
|
|
14723
|
+
"properties": {
|
|
14724
|
+
"arguments": {
|
|
14725
|
+
"$ref": "#/definitions/sketching.clear-constraints:input"
|
|
14726
|
+
},
|
|
14727
|
+
"name": {
|
|
14728
|
+
"$ref": "#/definitions/sketching.clear-constraints"
|
|
14729
|
+
}
|
|
14730
|
+
},
|
|
14731
|
+
"required": [
|
|
14732
|
+
"name",
|
|
14733
|
+
"arguments"
|
|
14734
|
+
],
|
|
14735
|
+
"type": "object"
|
|
14736
|
+
},
|
|
14577
14737
|
{
|
|
14578
14738
|
"additionalProperties": false,
|
|
14579
14739
|
"properties": {
|
|
@@ -14590,6 +14750,22 @@
|
|
|
14590
14750
|
],
|
|
14591
14751
|
"type": "object"
|
|
14592
14752
|
},
|
|
14753
|
+
{
|
|
14754
|
+
"additionalProperties": false,
|
|
14755
|
+
"properties": {
|
|
14756
|
+
"arguments": {
|
|
14757
|
+
"$ref": "#/definitions/sketching.insert-point:input"
|
|
14758
|
+
},
|
|
14759
|
+
"name": {
|
|
14760
|
+
"$ref": "#/definitions/sketching.insert-point"
|
|
14761
|
+
}
|
|
14762
|
+
},
|
|
14763
|
+
"required": [
|
|
14764
|
+
"name",
|
|
14765
|
+
"arguments"
|
|
14766
|
+
],
|
|
14767
|
+
"type": "object"
|
|
14768
|
+
},
|
|
14593
14769
|
{
|
|
14594
14770
|
"additionalProperties": false,
|
|
14595
14771
|
"properties": {
|
|
@@ -14606,6 +14782,22 @@
|
|
|
14606
14782
|
],
|
|
14607
14783
|
"type": "object"
|
|
14608
14784
|
},
|
|
14785
|
+
{
|
|
14786
|
+
"additionalProperties": false,
|
|
14787
|
+
"properties": {
|
|
14788
|
+
"arguments": {
|
|
14789
|
+
"$ref": "#/definitions/sketching.set-constraints:input"
|
|
14790
|
+
},
|
|
14791
|
+
"name": {
|
|
14792
|
+
"$ref": "#/definitions/sketching.set-constraints"
|
|
14793
|
+
}
|
|
14794
|
+
},
|
|
14795
|
+
"required": [
|
|
14796
|
+
"name",
|
|
14797
|
+
"arguments"
|
|
14798
|
+
],
|
|
14799
|
+
"type": "object"
|
|
14800
|
+
},
|
|
14609
14801
|
{
|
|
14610
14802
|
"additionalProperties": false,
|
|
14611
14803
|
"properties": {
|
|
@@ -15183,18 +15375,30 @@
|
|
|
15183
15375
|
{
|
|
15184
15376
|
"$ref": "#/definitions/search.set-source"
|
|
15185
15377
|
},
|
|
15378
|
+
{
|
|
15379
|
+
"$ref": "#/definitions/sketching.add-point"
|
|
15380
|
+
},
|
|
15186
15381
|
{
|
|
15187
15382
|
"$ref": "#/definitions/sketching.add-point-at-center"
|
|
15188
15383
|
},
|
|
15189
15384
|
{
|
|
15190
15385
|
"$ref": "#/definitions/sketching.add-point-at-current-location"
|
|
15191
15386
|
},
|
|
15387
|
+
{
|
|
15388
|
+
"$ref": "#/definitions/sketching.clear-constraints"
|
|
15389
|
+
},
|
|
15192
15390
|
{
|
|
15193
15391
|
"$ref": "#/definitions/sketching.delete"
|
|
15194
15392
|
},
|
|
15393
|
+
{
|
|
15394
|
+
"$ref": "#/definitions/sketching.insert-point"
|
|
15395
|
+
},
|
|
15195
15396
|
{
|
|
15196
15397
|
"$ref": "#/definitions/sketching.redo"
|
|
15197
15398
|
},
|
|
15399
|
+
{
|
|
15400
|
+
"$ref": "#/definitions/sketching.set-constraints"
|
|
15401
|
+
},
|
|
15198
15402
|
{
|
|
15199
15403
|
"$ref": "#/definitions/sketching.set-geometry-mode"
|
|
15200
15404
|
},
|
|
@@ -770,6 +770,24 @@
|
|
|
770
770
|
],
|
|
771
771
|
"type": "object"
|
|
772
772
|
},
|
|
773
|
+
"AddPointArgs": {
|
|
774
|
+
"additionalProperties": false,
|
|
775
|
+
"description": "Arguments for the \"sketching.add-point\" command.",
|
|
776
|
+
"properties": {
|
|
777
|
+
"maps": {
|
|
778
|
+
"$ref": "MapsLike",
|
|
779
|
+
"description": "Map(s) to use for the command/operation."
|
|
780
|
+
},
|
|
781
|
+
"newPoint": {
|
|
782
|
+
"$ref": "#/definitions/esri.Point",
|
|
783
|
+
"description": "The new point to be added."
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"required": [
|
|
787
|
+
"newPoint"
|
|
788
|
+
],
|
|
789
|
+
"type": "object"
|
|
790
|
+
},
|
|
773
791
|
"AlertCommandArgs": {
|
|
774
792
|
"additionalProperties": false,
|
|
775
793
|
"description": "Arguments for the 'ui.alert' command.",
|
|
@@ -1019,6 +1037,10 @@
|
|
|
1019
1037
|
"$ref": "MapsLike",
|
|
1020
1038
|
"description": "The maps to activate drawing on. By default it will be all maps."
|
|
1021
1039
|
},
|
|
1040
|
+
"maxSegments": {
|
|
1041
|
+
"description": "The maximum number of segments permitted for a polyline or polygon sketch. Default is no limit. Mobile only.",
|
|
1042
|
+
"type": "number"
|
|
1043
|
+
},
|
|
1022
1044
|
"symbol": {
|
|
1023
1045
|
"anyOf": [
|
|
1024
1046
|
{
|
|
@@ -2840,6 +2862,32 @@
|
|
|
2840
2862
|
],
|
|
2841
2863
|
"type": "object"
|
|
2842
2864
|
},
|
|
2865
|
+
"InsertPointArgs": {
|
|
2866
|
+
"additionalProperties": false,
|
|
2867
|
+
"description": "Arguments for the \"sketching.insert-point\" command.",
|
|
2868
|
+
"properties": {
|
|
2869
|
+
"maps": {
|
|
2870
|
+
"$ref": "MapsLike",
|
|
2871
|
+
"description": "Map(s) to use for the command/operation."
|
|
2872
|
+
},
|
|
2873
|
+
"newPoint": {
|
|
2874
|
+
"$ref": "#/definitions/esri.Point",
|
|
2875
|
+
"description": "The new point to be added."
|
|
2876
|
+
},
|
|
2877
|
+
"partIndex": {
|
|
2878
|
+
"description": "The index of the part to which the point will be added. If null, the last part will be used.",
|
|
2879
|
+
"type": "number"
|
|
2880
|
+
},
|
|
2881
|
+
"pointIndex": {
|
|
2882
|
+
"description": "The index at which the point will be added. If null, the point will be added as the last point.",
|
|
2883
|
+
"type": "number"
|
|
2884
|
+
}
|
|
2885
|
+
},
|
|
2886
|
+
"required": [
|
|
2887
|
+
"newPoint"
|
|
2888
|
+
],
|
|
2889
|
+
"type": "object"
|
|
2890
|
+
},
|
|
2843
2891
|
"ItemConfig": {
|
|
2844
2892
|
"additionalProperties": {
|
|
2845
2893
|
},
|
|
@@ -16659,6 +16707,15 @@
|
|
|
16659
16707
|
"sketching.add-node-to-geometry:output": {
|
|
16660
16708
|
"$ref": "#/definitions/esri.Geometry"
|
|
16661
16709
|
},
|
|
16710
|
+
"sketching.add-point": {
|
|
16711
|
+
"description": "Adds a point to polygon or polyline using the selected index as the point to insert after.",
|
|
16712
|
+
"enum": [
|
|
16713
|
+
"sketching.add-point"
|
|
16714
|
+
]
|
|
16715
|
+
},
|
|
16716
|
+
"sketching.add-point:input": {
|
|
16717
|
+
"$ref": "#/definitions/AddPointArgs"
|
|
16718
|
+
},
|
|
16662
16719
|
"sketching.cancel": {
|
|
16663
16720
|
"description": "Cancels the current geometry edit or capture operation.",
|
|
16664
16721
|
"enum": [
|
|
@@ -16752,6 +16809,15 @@
|
|
|
16752
16809
|
"sketching.get-active-sketch:output": {
|
|
16753
16810
|
"$ref": "#/definitions/GetActiveSketchResult"
|
|
16754
16811
|
},
|
|
16812
|
+
"sketching.insert-point": {
|
|
16813
|
+
"description": "Inserts a point into a polygon or polyline at the specified index. If the partIndex is null, then the last part is used. If the pointIndex is null, then the new point is inserted at the end.",
|
|
16814
|
+
"enum": [
|
|
16815
|
+
"sketching.insert-point"
|
|
16816
|
+
]
|
|
16817
|
+
},
|
|
16818
|
+
"sketching.insert-point:input": {
|
|
16819
|
+
"$ref": "#/definitions/InsertPointArgs"
|
|
16820
|
+
},
|
|
16755
16821
|
"sketching.move-geometry": {
|
|
16756
16822
|
"description": "Allows the user to move an existing geometry by a specified amount. Returns the altered geometry or the supplied feature with altered geometry applied. Will also pass through any map or symbol associated with the command chain, but only the map is required for this operation.",
|
|
16757
16823
|
"enum": [
|
|
@@ -18684,6 +18750,22 @@
|
|
|
18684
18750
|
],
|
|
18685
18751
|
"type": "object"
|
|
18686
18752
|
},
|
|
18753
|
+
{
|
|
18754
|
+
"additionalProperties": false,
|
|
18755
|
+
"properties": {
|
|
18756
|
+
"arguments": {
|
|
18757
|
+
"$ref": "#/definitions/sketching.add-point:input"
|
|
18758
|
+
},
|
|
18759
|
+
"name": {
|
|
18760
|
+
"$ref": "#/definitions/sketching.add-point"
|
|
18761
|
+
}
|
|
18762
|
+
},
|
|
18763
|
+
"required": [
|
|
18764
|
+
"name",
|
|
18765
|
+
"arguments"
|
|
18766
|
+
],
|
|
18767
|
+
"type": "object"
|
|
18768
|
+
},
|
|
18687
18769
|
{
|
|
18688
18770
|
"additionalProperties": false,
|
|
18689
18771
|
"properties": {
|
|
@@ -18700,6 +18782,22 @@
|
|
|
18700
18782
|
],
|
|
18701
18783
|
"type": "object"
|
|
18702
18784
|
},
|
|
18785
|
+
{
|
|
18786
|
+
"additionalProperties": false,
|
|
18787
|
+
"properties": {
|
|
18788
|
+
"arguments": {
|
|
18789
|
+
"$ref": "#/definitions/sketching.insert-point:input"
|
|
18790
|
+
},
|
|
18791
|
+
"name": {
|
|
18792
|
+
"$ref": "#/definitions/sketching.insert-point"
|
|
18793
|
+
}
|
|
18794
|
+
},
|
|
18795
|
+
"required": [
|
|
18796
|
+
"name",
|
|
18797
|
+
"arguments"
|
|
18798
|
+
],
|
|
18799
|
+
"type": "object"
|
|
18800
|
+
},
|
|
18703
18801
|
{
|
|
18704
18802
|
"additionalProperties": false,
|
|
18705
18803
|
"properties": {
|
|
@@ -19314,6 +19412,9 @@
|
|
|
19314
19412
|
{
|
|
19315
19413
|
"$ref": "#/definitions/search.clear"
|
|
19316
19414
|
},
|
|
19415
|
+
{
|
|
19416
|
+
"$ref": "#/definitions/sketching.add-point"
|
|
19417
|
+
},
|
|
19317
19418
|
{
|
|
19318
19419
|
"$ref": "#/definitions/sketching.cancel"
|
|
19319
19420
|
},
|
|
@@ -19332,6 +19433,9 @@
|
|
|
19332
19433
|
{
|
|
19333
19434
|
"$ref": "#/definitions/sketching.enable-precision-mode"
|
|
19334
19435
|
},
|
|
19436
|
+
{
|
|
19437
|
+
"$ref": "#/definitions/sketching.insert-point"
|
|
19438
|
+
},
|
|
19335
19439
|
{
|
|
19336
19440
|
"$ref": "#/definitions/sketching.move-node"
|
|
19337
19441
|
},
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED