@vertigis/viewer-spec 43.4.1 → 45.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.
- package/layout/schema/layout-web.xsd +43 -0
- package/messaging/Operation.d.ts +22 -0
- package/messaging/registry/Operations.d.ts +2 -0
- package/messaging/registry/Operations.js +1 -1
- package/messaging/registry/arcade.d.ts +100 -0
- package/messaging/registry/arcade.js +1 -0
- package/messaging/registry/geometry.d.ts +174 -7
- package/messaging/registry/geometry.js +1 -1
- package/messaging/registry/measurement.d.ts +7 -7
- package/messaging/registry/measurement.js +1 -1
- package/messaging/registry/sketching.d.ts +48 -4
- package/messaging/registry/sketching.js +1 -1
- package/messaging/schema/common-action.schema.json +10 -3
- package/messaging/schema/mobile-action.schema.json +336 -3
- package/messaging/schema/web-action.schema.json +211 -23
- package/package.json +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -3480,6 +3480,31 @@
|
|
|
3480
3480
|
],
|
|
3481
3481
|
"type": "object"
|
|
3482
3482
|
},
|
|
3483
|
+
"RunArcadeArgs": {
|
|
3484
|
+
"additionalProperties": false,
|
|
3485
|
+
"description": "The arguments for the arcade.run operation.",
|
|
3486
|
+
"properties": {
|
|
3487
|
+
"arguments": {
|
|
3488
|
+
"description": "An arguments object that provides named variables and associated values, which can be referenced from within the executeScript and canExecuteScript. NOTE: All variable keys must consist of only lowercase letters; camel-cased context variables will break the script when they are referenced at runtime."
|
|
3489
|
+
},
|
|
3490
|
+
"canExecuteScript": {
|
|
3491
|
+
"description": "The stringified Arcade script used to determine whether or not the executeScript can/should be run. If no executeScript is provided and the canExecuteScript returns a truthy value, the operation will return its input arguments; otherwise, if the canEecuteScript returns a falsey value, it will throw a {@link Cancellation}.",
|
|
3492
|
+
"type": "string"
|
|
3493
|
+
},
|
|
3494
|
+
"executeScript": {
|
|
3495
|
+
"description": "The stringified Arcade script to run. If this property is included, the operation will return the result of the script.",
|
|
3496
|
+
"type": "string"
|
|
3497
|
+
},
|
|
3498
|
+
"watchHandles": {
|
|
3499
|
+
"description": "Properties used to set a series of watch handles and/or event listeners on an item that will trigger the canExecuteChanged event for the 'arcade.run' operation.",
|
|
3500
|
+
"items": {
|
|
3501
|
+
"$ref": "#/definitions/WatchEventHandleProperties"
|
|
3502
|
+
},
|
|
3503
|
+
"type": "array"
|
|
3504
|
+
}
|
|
3505
|
+
},
|
|
3506
|
+
"type": "object"
|
|
3507
|
+
},
|
|
3483
3508
|
"RunPrintArgs": {
|
|
3484
3509
|
"additionalProperties": false,
|
|
3485
3510
|
"description": "The arguments required by the printing.run command.",
|
|
@@ -4770,6 +4795,70 @@
|
|
|
4770
4795
|
"description": "A component's visual state. The values will vary based on the component type.",
|
|
4771
4796
|
"type": "string"
|
|
4772
4797
|
},
|
|
4798
|
+
"WatchEventHandleProperties": {
|
|
4799
|
+
"additionalProperties": false,
|
|
4800
|
+
"description": "Properties used to set a series of watch handles and/or event listeners on an item.",
|
|
4801
|
+
"properties": {
|
|
4802
|
+
"item": {
|
|
4803
|
+
"anyOf": [
|
|
4804
|
+
{
|
|
4805
|
+
"$ref": "#/definitions/Model"
|
|
4806
|
+
},
|
|
4807
|
+
{
|
|
4808
|
+
"type": "string"
|
|
4809
|
+
}
|
|
4810
|
+
],
|
|
4811
|
+
"description": "The item whose properties will be watched for changes and/or events."
|
|
4812
|
+
},
|
|
4813
|
+
"watch": {
|
|
4814
|
+
"anyOf": [
|
|
4815
|
+
{
|
|
4816
|
+
"$ref": "#/definitions/WatchEventProperty"
|
|
4817
|
+
},
|
|
4818
|
+
{
|
|
4819
|
+
"items": {
|
|
4820
|
+
"anyOf": [
|
|
4821
|
+
{
|
|
4822
|
+
"$ref": "#/definitions/WatchEventProperty"
|
|
4823
|
+
},
|
|
4824
|
+
{
|
|
4825
|
+
"type": "string"
|
|
4826
|
+
}
|
|
4827
|
+
]
|
|
4828
|
+
},
|
|
4829
|
+
"type": "array"
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
"type": "string"
|
|
4833
|
+
}
|
|
4834
|
+
],
|
|
4835
|
+
"description": "One or more properties on the item that will be watched for changes and/or events. Any strings will be used as propertyPaths that will be watched for changes; for this to work, the item and all properties referenced within the path (except for the last) must implement {@link Observable}."
|
|
4836
|
+
}
|
|
4837
|
+
},
|
|
4838
|
+
"required": [
|
|
4839
|
+
"item",
|
|
4840
|
+
"watch"
|
|
4841
|
+
],
|
|
4842
|
+
"type": "object"
|
|
4843
|
+
},
|
|
4844
|
+
"WatchEventProperty": {
|
|
4845
|
+
"additionalProperties": false,
|
|
4846
|
+
"description": "Properties on an item to watch, with an optional event name to listen for.",
|
|
4847
|
+
"properties": {
|
|
4848
|
+
"eventName": {
|
|
4849
|
+
"description": "The name of the event to listen for. If no propertyPath is included, the listener will go directly on the watched item.",
|
|
4850
|
+
"type": "string"
|
|
4851
|
+
},
|
|
4852
|
+
"propertyPath": {
|
|
4853
|
+
"description": "The path used to target a property on an item that will be watched for events. The watched property must implement {@link Evented}; this will effectively do `item[propertyPath].on(eventName)`.",
|
|
4854
|
+
"type": "string"
|
|
4855
|
+
}
|
|
4856
|
+
},
|
|
4857
|
+
"required": [
|
|
4858
|
+
"eventName"
|
|
4859
|
+
],
|
|
4860
|
+
"type": "object"
|
|
4861
|
+
},
|
|
4773
4862
|
"ZoomToLayerArgs": {
|
|
4774
4863
|
"additionalProperties": false,
|
|
4775
4864
|
"description": "Arguments for the map.zoom-to-layer-extent and map.zoom-to-layer-visible-scale commands.",
|
|
@@ -4880,6 +4969,22 @@
|
|
|
4880
4969
|
}
|
|
4881
4970
|
]
|
|
4882
4971
|
},
|
|
4972
|
+
"arcade.run": {
|
|
4973
|
+
"description": "Runs a stringified Arcade script. If only a string is passed in as an argument, it is interpreted as an executeScript. If an executeSript is provided, the operation will return its result. If only a canExecute script is provided and it returns a truthy result, the operation will return its input arguments. If a canExecuteScript returns a falsey value, the operation will throw a {@link Cancellation}.",
|
|
4974
|
+
"enum": [
|
|
4975
|
+
"arcade.run"
|
|
4976
|
+
]
|
|
4977
|
+
},
|
|
4978
|
+
"arcade.run:input": {
|
|
4979
|
+
"anyOf": [
|
|
4980
|
+
{
|
|
4981
|
+
"$ref": "#/definitions/RunArcadeArgs"
|
|
4982
|
+
},
|
|
4983
|
+
{
|
|
4984
|
+
"type": "string"
|
|
4985
|
+
}
|
|
4986
|
+
]
|
|
4987
|
+
},
|
|
4883
4988
|
"auth.get-current-user": {
|
|
4884
4989
|
"description": "Gets the user that is currently signed into the application.",
|
|
4885
4990
|
"enum": [
|
|
@@ -15698,6 +15803,15 @@
|
|
|
15698
15803
|
"measurement.create-graphics:output": {
|
|
15699
15804
|
"$ref": "#/definitions/CreateMeasurementGraphicsResult"
|
|
15700
15805
|
},
|
|
15806
|
+
"measurement.display-settings": {
|
|
15807
|
+
"description": "Display the measurements settings dialog. This allows you to configure measurements system, area and length units.",
|
|
15808
|
+
"enum": [
|
|
15809
|
+
"measurement.display-settings"
|
|
15810
|
+
]
|
|
15811
|
+
},
|
|
15812
|
+
"measurement.display-settings:input": {
|
|
15813
|
+
"$ref": "#/definitions/HasUITarget"
|
|
15814
|
+
},
|
|
15701
15815
|
"measurement.get-area-units": {
|
|
15702
15816
|
"description": "Gets the area units used for measurements. If undefined the units will be selected intelligently based on dimensions.",
|
|
15703
15817
|
"enum": [
|
|
@@ -15903,15 +16017,6 @@
|
|
|
15903
16017
|
}
|
|
15904
16018
|
]
|
|
15905
16019
|
},
|
|
15906
|
-
"measurement.show-settings": {
|
|
15907
|
-
"description": "Show the measurements settings dialog. This allows you to configure measurements system, area and length units.",
|
|
15908
|
-
"enum": [
|
|
15909
|
-
"measurement.show-settings"
|
|
15910
|
-
]
|
|
15911
|
-
},
|
|
15912
|
-
"measurement.show-settings:input": {
|
|
15913
|
-
"$ref": "#/definitions/HasUITarget"
|
|
15914
|
-
},
|
|
15915
16020
|
"messaging.mix-in-args": {
|
|
15916
16021
|
"description": "Attempts to merge an array of values into a single value that can be used as an argument for a command or operation. For example: ``` [features, { chart: \"average-household-income\" }] ``` This would mix `features` obtained from some other source into arguments intended for the \"charts.display\" command. If the values cannot be merged, then the leftmost value is returned. Note that argument merging already occurs automatically in command chains; this explicit operation exists for advanced scenarios like Geocortex Workflow or custom code written using the SDK.",
|
|
15917
16022
|
"enum": [
|
|
@@ -16543,7 +16648,7 @@
|
|
|
16543
16648
|
]
|
|
16544
16649
|
},
|
|
16545
16650
|
"sketching.add-node-to-geometry": {
|
|
16546
|
-
"description": "Adds a point to a given polyline or polygon geometry. Returns the resulting geometry.",
|
|
16651
|
+
"description": "Adds a point to a given polyline or polygon geometry. Returns the resulting geometry. Deprecated in Mobile, use geometry.add-point instead.",
|
|
16547
16652
|
"enum": [
|
|
16548
16653
|
"sketching.add-node-to-geometry"
|
|
16549
16654
|
]
|
|
@@ -16554,6 +16659,12 @@
|
|
|
16554
16659
|
"sketching.add-node-to-geometry:output": {
|
|
16555
16660
|
"$ref": "#/definitions/esri.Geometry"
|
|
16556
16661
|
},
|
|
16662
|
+
"sketching.cancel": {
|
|
16663
|
+
"description": "Cancels the current geometry edit or capture operation.",
|
|
16664
|
+
"enum": [
|
|
16665
|
+
"sketching.cancel"
|
|
16666
|
+
]
|
|
16667
|
+
},
|
|
16557
16668
|
"sketching.capture-geometry": {
|
|
16558
16669
|
"description": "Allows the user to create geometry by sketching on a map. Returns the geometry that was drawn, along with the map that it was drawn on.",
|
|
16559
16670
|
"enum": [
|
|
@@ -16567,7 +16678,7 @@
|
|
|
16567
16678
|
"$ref": "#/definitions/CaptureGeometryResult"
|
|
16568
16679
|
},
|
|
16569
16680
|
"sketching.delete": {
|
|
16570
|
-
"description": "
|
|
16681
|
+
"description": "If a point is supplied while a sketching or editing operation is active, the vertex at that point will be deleted from the current geometry. If no point is supplied and a geometry editing session is active, the entire geometry will be deleted.",
|
|
16571
16682
|
"enum": [
|
|
16572
16683
|
"sketching.delete"
|
|
16573
16684
|
]
|
|
@@ -16575,6 +16686,27 @@
|
|
|
16575
16686
|
"sketching.delete:input": {
|
|
16576
16687
|
"$ref": "#/definitions/DeleteGeometryArgs"
|
|
16577
16688
|
},
|
|
16689
|
+
"sketching.disable-free-scale-mode": {
|
|
16690
|
+
"description": "Disables free scaling while editing geometries.",
|
|
16691
|
+
"enum": [
|
|
16692
|
+
"sketching.disable-free-scale-mode"
|
|
16693
|
+
]
|
|
16694
|
+
},
|
|
16695
|
+
"sketching.disable-precision-mode": {
|
|
16696
|
+
"description": "Disables more precise inputs while editing geometries.",
|
|
16697
|
+
"enum": [
|
|
16698
|
+
"sketching.disable-precision-mode"
|
|
16699
|
+
]
|
|
16700
|
+
},
|
|
16701
|
+
"sketching.edit-active-symbol": {
|
|
16702
|
+
"description": "Allows the user to edit the symbology used by the graphics actively being edited.",
|
|
16703
|
+
"enum": [
|
|
16704
|
+
"sketching.edit-active-symbol"
|
|
16705
|
+
]
|
|
16706
|
+
},
|
|
16707
|
+
"sketching.edit-active-symbol:output": {
|
|
16708
|
+
"$ref": "#/definitions/EditSymbolResult"
|
|
16709
|
+
},
|
|
16578
16710
|
"sketching.edit-geometry": {
|
|
16579
16711
|
"description": "Allows the user to edit an existing geometry by drawing on a map. Returns the geometry that was edited, or the supplied feature with the altered geometry applied, along with the map that it was drawn on.",
|
|
16580
16712
|
"enum": [
|
|
@@ -16587,6 +16719,18 @@
|
|
|
16587
16719
|
"sketching.edit-geometry:output": {
|
|
16588
16720
|
"$ref": "#/definitions/EditGeometryResult"
|
|
16589
16721
|
},
|
|
16722
|
+
"sketching.enable-free-scale-mode": {
|
|
16723
|
+
"description": "Enables free scaling while editing geometries.",
|
|
16724
|
+
"enum": [
|
|
16725
|
+
"sketching.enable-free-scale-mode"
|
|
16726
|
+
]
|
|
16727
|
+
},
|
|
16728
|
+
"sketching.enable-precision-mode": {
|
|
16729
|
+
"description": "Enables more precise inputs while editing geometries.",
|
|
16730
|
+
"enum": [
|
|
16731
|
+
"sketching.enable-precision-mode"
|
|
16732
|
+
]
|
|
16733
|
+
},
|
|
16590
16734
|
"sketching.get-active-node": {
|
|
16591
16735
|
"description": "Returns the active point graphic of the active sketch on a map.",
|
|
16592
16736
|
"enum": [
|
|
@@ -16678,7 +16822,14 @@
|
|
|
16678
16822
|
]
|
|
16679
16823
|
},
|
|
16680
16824
|
"sketching.stop:input": {
|
|
16681
|
-
"
|
|
16825
|
+
"anyOf": [
|
|
16826
|
+
{
|
|
16827
|
+
"$ref": "#/definitions/StopGeometryEditArgs"
|
|
16828
|
+
},
|
|
16829
|
+
{
|
|
16830
|
+
"type": "null"
|
|
16831
|
+
}
|
|
16832
|
+
]
|
|
16682
16833
|
},
|
|
16683
16834
|
"sketching.stop:output": {
|
|
16684
16835
|
"$ref": "#/definitions/CaptureGeometryResult"
|
|
@@ -17029,6 +17180,22 @@
|
|
|
17029
17180
|
],
|
|
17030
17181
|
"type": "object"
|
|
17031
17182
|
},
|
|
17183
|
+
{
|
|
17184
|
+
"additionalProperties": false,
|
|
17185
|
+
"properties": {
|
|
17186
|
+
"arguments": {
|
|
17187
|
+
"$ref": "#/definitions/arcade.run:input"
|
|
17188
|
+
},
|
|
17189
|
+
"name": {
|
|
17190
|
+
"$ref": "#/definitions/arcade.run"
|
|
17191
|
+
}
|
|
17192
|
+
},
|
|
17193
|
+
"required": [
|
|
17194
|
+
"name",
|
|
17195
|
+
"arguments"
|
|
17196
|
+
],
|
|
17197
|
+
"type": "object"
|
|
17198
|
+
},
|
|
17032
17199
|
{
|
|
17033
17200
|
"additionalProperties": false,
|
|
17034
17201
|
"properties": {
|
|
@@ -18217,10 +18384,10 @@
|
|
|
18217
18384
|
"additionalProperties": false,
|
|
18218
18385
|
"properties": {
|
|
18219
18386
|
"arguments": {
|
|
18220
|
-
"$ref": "#/definitions/measurement.
|
|
18387
|
+
"$ref": "#/definitions/measurement.display-settings:input"
|
|
18221
18388
|
},
|
|
18222
18389
|
"name": {
|
|
18223
|
-
"$ref": "#/definitions/measurement.
|
|
18390
|
+
"$ref": "#/definitions/measurement.display-settings"
|
|
18224
18391
|
}
|
|
18225
18392
|
},
|
|
18226
18393
|
"required": [
|
|
@@ -18233,10 +18400,10 @@
|
|
|
18233
18400
|
"additionalProperties": false,
|
|
18234
18401
|
"properties": {
|
|
18235
18402
|
"arguments": {
|
|
18236
|
-
"$ref": "#/definitions/measurement.set-
|
|
18403
|
+
"$ref": "#/definitions/measurement.set-area-units:input"
|
|
18237
18404
|
},
|
|
18238
18405
|
"name": {
|
|
18239
|
-
"$ref": "#/definitions/measurement.set-
|
|
18406
|
+
"$ref": "#/definitions/measurement.set-area-units"
|
|
18240
18407
|
}
|
|
18241
18408
|
},
|
|
18242
18409
|
"required": [
|
|
@@ -18249,10 +18416,10 @@
|
|
|
18249
18416
|
"additionalProperties": false,
|
|
18250
18417
|
"properties": {
|
|
18251
18418
|
"arguments": {
|
|
18252
|
-
"$ref": "#/definitions/measurement.set-
|
|
18419
|
+
"$ref": "#/definitions/measurement.set-default-symbol:input"
|
|
18253
18420
|
},
|
|
18254
18421
|
"name": {
|
|
18255
|
-
"$ref": "#/definitions/measurement.set-
|
|
18422
|
+
"$ref": "#/definitions/measurement.set-default-symbol"
|
|
18256
18423
|
}
|
|
18257
18424
|
},
|
|
18258
18425
|
"required": [
|
|
@@ -18265,10 +18432,10 @@
|
|
|
18265
18432
|
"additionalProperties": false,
|
|
18266
18433
|
"properties": {
|
|
18267
18434
|
"arguments": {
|
|
18268
|
-
"$ref": "#/definitions/measurement.
|
|
18435
|
+
"$ref": "#/definitions/measurement.set-length-units:input"
|
|
18269
18436
|
},
|
|
18270
18437
|
"name": {
|
|
18271
|
-
"$ref": "#/definitions/measurement.
|
|
18438
|
+
"$ref": "#/definitions/measurement.set-length-units"
|
|
18272
18439
|
}
|
|
18273
18440
|
},
|
|
18274
18441
|
"required": [
|
|
@@ -18856,6 +19023,9 @@
|
|
|
18856
19023
|
{
|
|
18857
19024
|
"$ref": "#/definitions/app.load-project"
|
|
18858
19025
|
},
|
|
19026
|
+
{
|
|
19027
|
+
"$ref": "#/definitions/arcade.run"
|
|
19028
|
+
},
|
|
18859
19029
|
{
|
|
18860
19030
|
"$ref": "#/definitions/auth.sign-in"
|
|
18861
19031
|
},
|
|
@@ -19084,6 +19254,9 @@
|
|
|
19084
19254
|
{
|
|
19085
19255
|
"$ref": "#/definitions/map.zoom-to-viewpoint"
|
|
19086
19256
|
},
|
|
19257
|
+
{
|
|
19258
|
+
"$ref": "#/definitions/measurement.display-settings"
|
|
19259
|
+
},
|
|
19087
19260
|
{
|
|
19088
19261
|
"$ref": "#/definitions/measurement.set-area-units"
|
|
19089
19262
|
},
|
|
@@ -19093,9 +19266,6 @@
|
|
|
19093
19266
|
{
|
|
19094
19267
|
"$ref": "#/definitions/measurement.set-length-units"
|
|
19095
19268
|
},
|
|
19096
|
-
{
|
|
19097
|
-
"$ref": "#/definitions/measurement.show-settings"
|
|
19098
|
-
},
|
|
19099
19269
|
{
|
|
19100
19270
|
"$ref": "#/definitions/messaging.mix-in-args"
|
|
19101
19271
|
},
|
|
@@ -19144,9 +19314,24 @@
|
|
|
19144
19314
|
{
|
|
19145
19315
|
"$ref": "#/definitions/search.clear"
|
|
19146
19316
|
},
|
|
19317
|
+
{
|
|
19318
|
+
"$ref": "#/definitions/sketching.cancel"
|
|
19319
|
+
},
|
|
19147
19320
|
{
|
|
19148
19321
|
"$ref": "#/definitions/sketching.delete"
|
|
19149
19322
|
},
|
|
19323
|
+
{
|
|
19324
|
+
"$ref": "#/definitions/sketching.disable-free-scale-mode"
|
|
19325
|
+
},
|
|
19326
|
+
{
|
|
19327
|
+
"$ref": "#/definitions/sketching.disable-precision-mode"
|
|
19328
|
+
},
|
|
19329
|
+
{
|
|
19330
|
+
"$ref": "#/definitions/sketching.enable-free-scale-mode"
|
|
19331
|
+
},
|
|
19332
|
+
{
|
|
19333
|
+
"$ref": "#/definitions/sketching.enable-precision-mode"
|
|
19334
|
+
},
|
|
19150
19335
|
{
|
|
19151
19336
|
"$ref": "#/definitions/sketching.move-node"
|
|
19152
19337
|
},
|
|
@@ -20206,6 +20391,9 @@
|
|
|
20206
20391
|
{
|
|
20207
20392
|
"$ref": "#/definitions/sketching.capture-geometry"
|
|
20208
20393
|
},
|
|
20394
|
+
{
|
|
20395
|
+
"$ref": "#/definitions/sketching.edit-active-symbol"
|
|
20396
|
+
},
|
|
20209
20397
|
{
|
|
20210
20398
|
"$ref": "#/definitions/sketching.edit-geometry"
|
|
20211
20399
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertigis/viewer-spec",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "45.0.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "VertiGIS Viewer Specification",
|
|
6
6
|
"type": "module",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"author": "VertiGIS Ltd.",
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@vertigis/arcgis-extensions": ">=
|
|
37
|
+
"@vertigis/arcgis-extensions": ">= 34.1.0 < 35.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@arcgis/core": "4.21.2",
|
|
41
|
-
"@vertigis/arcgis-extensions": "
|
|
41
|
+
"@vertigis/arcgis-extensions": "34.1.0 ",
|
|
42
42
|
"@types/glob": "7.1.4",
|
|
43
43
|
"@types/json-stable-stringify": "1.0.33",
|
|
44
44
|
"@types/node": "14.14.41",
|
package/version.d.ts
CHANGED
package/version.js
CHANGED