@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.
@@ -463,7 +463,7 @@
463
463
  },
464
464
  "AddNodeToGeometryArgs": {
465
465
  "additionalProperties": false,
466
- "description": "Arguments for the \"sketching.add-node-to-geometry\" operation.",
466
+ "description": "Deprecated - Mobile users should rather use \"geometry.add-point\"; Web users should use \"sketching.add-point\" with {@link AddPointArgs} or \"sketching.insert-point\" with {@link InsertPointArgs} instead.",
467
467
  "properties": {
468
468
  "geometry": {
469
469
  "$ref": "#/definitions/esri.Geometry",
@@ -493,6 +493,28 @@
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
+ "geometry": {
501
+ "$ref": "#/definitions/esri.Geometry",
502
+ "description": "The geometry to add the point to, if multiple are present in an active editing session. Not supported by Mobile."
503
+ },
504
+ "maps": {
505
+ "$ref": "MapsLike",
506
+ "description": "Map(s) to use for the command/operation."
507
+ },
508
+ "newPoint": {
509
+ "$ref": "#/definitions/esri.Point",
510
+ "description": "The new point to be added."
511
+ }
512
+ },
513
+ "required": [
514
+ "newPoint"
515
+ ],
516
+ "type": "object"
517
+ },
496
518
  "AlertCommandArgs": {
497
519
  "additionalProperties": false,
498
520
  "description": "Arguments for the 'ui.alert' command.",
@@ -555,6 +577,10 @@
555
577
  "$ref": "MapsLike",
556
578
  "description": "The maps to activate drawing on. By default it will be all maps."
557
579
  },
580
+ "maxSegments": {
581
+ "description": "The maximum number of segments permitted for a polyline or polygon sketch. Default is no limit. Mobile only.",
582
+ "type": "number"
583
+ },
558
584
  "symbol": {
559
585
  "anyOf": [
560
586
  {
@@ -660,12 +686,24 @@
660
686
  "description": "Arguments for the \"sketching.delete\" command.",
661
687
  "properties": {
662
688
  "geometry": {
663
- "$ref": "#/definitions/esri.Point",
664
- "description": "The point to delete from the active sketch. Not supported in Geocortex Mobile."
689
+ "$ref": "#/definitions/esri.Geometry",
690
+ "description": "The geometry to remove a point from. If this property is not specified, any active vertices will be deleted."
665
691
  },
666
692
  "maps": {
667
693
  "$ref": "MapsLike",
668
694
  "description": "Map(s) to use for the command/operation."
695
+ },
696
+ "partIndex": {
697
+ "description": "The index of the part of the geometry that the point should be removed from. Required for polyline and polygon geometry types when the geometry and pointIndex properties are defined.",
698
+ "type": "number"
699
+ },
700
+ "point": {
701
+ "$ref": "#/definitions/esri.Point",
702
+ "description": "The point to remove from the geometry. If this property is defined, the 'pointIndex' and 'partIndex' properties are ignored. If no point nor pointIndex/partIndex are specified, any active points will be deleted. If there are no active points, the entire geometry will be deleted."
703
+ },
704
+ "pointIndex": {
705
+ "description": "The index of the point that should be removed from the geometry. If this property is defined, the geometry property must also be defined.",
706
+ "type": "number"
669
707
  }
670
708
  },
671
709
  "type": "object"
@@ -683,8 +721,8 @@
683
721
  "type": "boolean"
684
722
  },
685
723
  "message": {
686
- "description": "The message to be displayed in the notification.",
687
- "type": "string"
724
+ "$ref": "#/definitions/TranslatableText",
725
+ "description": "The message to be displayed in the notification. Mobile only supports a string for this property."
688
726
  },
689
727
  "notificationGroup": {
690
728
  "description": "Notifications in the same notification group are mutually exclusive, and will supersede one another. Mobile only.",
@@ -793,6 +831,10 @@
793
831
  "description": "Whether to allow scaling of the edited geometry. Defaults to true.",
794
832
  "type": "boolean"
795
833
  },
834
+ "enableVertexEditing": {
835
+ "description": "Whether to allow the user to add, move, and remove vertices from a geometry. Defaults to true.",
836
+ "type": "boolean"
837
+ },
796
838
  "scaleMode": {
797
839
  "description": "Setting \"free\" allows independent scaling on the x and y axis, \"preserve-aspect-ratio\" constrains scaling to the original aspect ratio. Defaults to \"preserve-aspect-ratio\".",
798
840
  "enum": [
@@ -800,6 +842,10 @@
800
842
  "preserve-aspect-ratio"
801
843
  ],
802
844
  "type": "string"
845
+ },
846
+ "validateGeometry": {
847
+ "description": "Whether the resulting geometry is validated before it's returned from the operation. If the geometry is invalid upon completion, an error is thrown. Defaults to true.",
848
+ "type": "boolean"
803
849
  }
804
850
  },
805
851
  "type": "object"
@@ -1220,6 +1266,36 @@
1220
1266
  ],
1221
1267
  "type": "object"
1222
1268
  },
1269
+ "InsertPointArgs": {
1270
+ "additionalProperties": false,
1271
+ "description": "Arguments for the \"sketching.insert-point\" command.",
1272
+ "properties": {
1273
+ "geometry": {
1274
+ "$ref": "#/definitions/esri.Geometry",
1275
+ "description": "The geometry to add the point to, if multiple are present in an active editing session. Not supported by Mobile."
1276
+ },
1277
+ "maps": {
1278
+ "$ref": "MapsLike",
1279
+ "description": "Map(s) to use for the command/operation."
1280
+ },
1281
+ "newPoint": {
1282
+ "$ref": "#/definitions/esri.Point",
1283
+ "description": "The new point to be added."
1284
+ },
1285
+ "partIndex": {
1286
+ "description": "The index of the part to which the point will be added. If null, the last part will be used.",
1287
+ "type": "number"
1288
+ },
1289
+ "pointIndex": {
1290
+ "description": "The index at which the point will be added. If null, the point will be added as the last point.",
1291
+ "type": "number"
1292
+ }
1293
+ },
1294
+ "required": [
1295
+ "newPoint"
1296
+ ],
1297
+ "type": "object"
1298
+ },
1223
1299
  "JobParameters": {
1224
1300
  "additionalProperties": false,
1225
1301
  "description": "A set of parameters used to run a job.",
@@ -1760,6 +1836,61 @@
1760
1836
  },
1761
1837
  "type": "object"
1762
1838
  },
1839
+ "TranslatableText": {
1840
+ "anyOf": [
1841
+ {
1842
+ "$ref": "#/definitions/TranslateOptions"
1843
+ },
1844
+ {
1845
+ "type": "string"
1846
+ }
1847
+ ],
1848
+ "description": "A translatable string, either a language string or a language string with arguments to pass into it."
1849
+ },
1850
+ "TranslateOptions": {
1851
+ "additionalProperties": false,
1852
+ "description": "The available options for the Locale Service translate function.",
1853
+ "properties": {
1854
+ "args": {
1855
+ "description": "The values to substitute into the format string if it contains substitution placeholders (see utilities/string/format in Geocortex API).",
1856
+ "items": {
1857
+ },
1858
+ "type": "array"
1859
+ },
1860
+ "currency": {
1861
+ "description": "The default unit of currency to use when formatting currency. See {@link NumberSettings.currency}.",
1862
+ "type": "string"
1863
+ },
1864
+ "dateFormat": {
1865
+ "description": "The default format to use when formatting dates. See {@link DateFormatter.format}.",
1866
+ "type": "string"
1867
+ },
1868
+ "fractionalDigits": {
1869
+ "description": "The default number of digits to show after the decimal point when formatting numbers. See {@link NumberSettings.fractionalDigits}.",
1870
+ "type": "number"
1871
+ },
1872
+ "locale": {
1873
+ "description": "The locale to use for translation. If not specified, the current locale will be used.",
1874
+ "type": "string"
1875
+ },
1876
+ "numberFormat": {
1877
+ "description": "The default format to use when formatting numbers. See {@link NumberFormatter.format}.",
1878
+ "type": "string"
1879
+ },
1880
+ "text": {
1881
+ "description": "The string to translate. If the text is a language resource key, then a localized version of that resource will be used if one exists, otherwise the original text is returned.",
1882
+ "type": "string"
1883
+ },
1884
+ "timeZone": {
1885
+ "description": "The time zone of a date being formatted.",
1886
+ "type": "string"
1887
+ }
1888
+ },
1889
+ "required": [
1890
+ "text"
1891
+ ],
1892
+ "type": "object"
1893
+ },
1763
1894
  "UpdateResultsFeaturesArgs": {
1764
1895
  "additionalProperties": false,
1765
1896
  "description": "Arguments for various commands that affect a result component's features.",
@@ -11124,7 +11255,7 @@
11124
11255
  ]
11125
11256
  },
11126
11257
  "sketching.add-node-to-geometry": {
11127
- "description": "Adds a point to a given polyline or polygon geometry. Returns the resulting geometry. Deprecated in Mobile, use geometry.add-point instead.",
11258
+ "description": "Deprecated - Mobile users should rather use \"geometry.add-point\"; Web users should use \"sketching.add-point\" or \"sketching.insert-point\" instead.",
11128
11259
  "enum": [
11129
11260
  "sketching.add-node-to-geometry"
11130
11261
  ]
@@ -11135,6 +11266,15 @@
11135
11266
  "sketching.add-node-to-geometry:output": {
11136
11267
  "$ref": "#/definitions/esri.Geometry"
11137
11268
  },
11269
+ "sketching.add-point": {
11270
+ "description": "Adds a point to polygon, polyline, or multipoint using the selected index as the point to insert after.",
11271
+ "enum": [
11272
+ "sketching.add-point"
11273
+ ]
11274
+ },
11275
+ "sketching.add-point:input": {
11276
+ "$ref": "#/definitions/AddPointArgs"
11277
+ },
11138
11278
  "sketching.capture-geometry": {
11139
11279
  "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
11280
  "enum": [
@@ -11148,13 +11288,20 @@
11148
11288
  "$ref": "#/definitions/CaptureGeometryResult"
11149
11289
  },
11150
11290
  "sketching.delete": {
11151
- "description": "If a point is supplied while a sketching or editing operation is active, the vertex at that point will be deleted from the current geometry. If no point is supplied and a geometry editing session is active, the entire geometry will be deleted.",
11291
+ "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, any active points in the session will be deleted. If there are no active points in the session, the entire geometry will be deleted.",
11152
11292
  "enum": [
11153
11293
  "sketching.delete"
11154
11294
  ]
11155
11295
  },
11156
11296
  "sketching.delete:input": {
11157
- "$ref": "#/definitions/DeleteGeometryArgs"
11297
+ "anyOf": [
11298
+ {
11299
+ "$ref": "#/definitions/DeleteGeometryArgs"
11300
+ },
11301
+ {
11302
+ "type": "null"
11303
+ }
11304
+ ]
11158
11305
  },
11159
11306
  "sketching.edit-geometry": {
11160
11307
  "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.",
@@ -11168,6 +11315,15 @@
11168
11315
  "sketching.edit-geometry:output": {
11169
11316
  "$ref": "#/definitions/EditGeometryResult"
11170
11317
  },
11318
+ "sketching.insert-point": {
11319
+ "description": "Inserts a point into a polygon, polyline, or multipoint 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.",
11320
+ "enum": [
11321
+ "sketching.insert-point"
11322
+ ]
11323
+ },
11324
+ "sketching.insert-point:input": {
11325
+ "$ref": "#/definitions/InsertPointArgs"
11326
+ },
11171
11327
  "sketching.redo": {
11172
11328
  "description": "Redoes the last undone edit while editing a geometry.",
11173
11329
  "enum": [
@@ -11187,7 +11343,7 @@
11187
11343
  "$ref": "#/definitions/SetGeometryModeArgs"
11188
11344
  },
11189
11345
  "sketching.stop": {
11190
- "description": "Stops geometry capturing or editing on a given map. Returns the current geometry. If validateGeometry parameter is true and geometry is invalid, returns null.",
11346
+ "description": "Stops geometry capturing or editing on a given map. Returns the current geometry. If validateGeometry parameter is true and geometry is invalid, the operation will return null.",
11191
11347
  "enum": [
11192
11348
  "sketching.stop"
11193
11349
  ]
@@ -11830,6 +11986,22 @@
11830
11986
  ],
11831
11987
  "type": "object"
11832
11988
  },
11989
+ {
11990
+ "additionalProperties": false,
11991
+ "properties": {
11992
+ "arguments": {
11993
+ "$ref": "#/definitions/sketching.add-point:input"
11994
+ },
11995
+ "name": {
11996
+ "$ref": "#/definitions/sketching.add-point"
11997
+ }
11998
+ },
11999
+ "required": [
12000
+ "name",
12001
+ "arguments"
12002
+ ],
12003
+ "type": "object"
12004
+ },
11833
12005
  {
11834
12006
  "additionalProperties": false,
11835
12007
  "properties": {
@@ -11846,6 +12018,22 @@
11846
12018
  ],
11847
12019
  "type": "object"
11848
12020
  },
12021
+ {
12022
+ "additionalProperties": false,
12023
+ "properties": {
12024
+ "arguments": {
12025
+ "$ref": "#/definitions/sketching.insert-point:input"
12026
+ },
12027
+ "name": {
12028
+ "$ref": "#/definitions/sketching.insert-point"
12029
+ }
12030
+ },
12031
+ "required": [
12032
+ "name",
12033
+ "arguments"
12034
+ ],
12035
+ "type": "object"
12036
+ },
11849
12037
  {
11850
12038
  "additionalProperties": false,
11851
12039
  "properties": {
@@ -12092,9 +12280,15 @@
12092
12280
  {
12093
12281
  "$ref": "#/definitions/search.clear"
12094
12282
  },
12283
+ {
12284
+ "$ref": "#/definitions/sketching.add-point"
12285
+ },
12095
12286
  {
12096
12287
  "$ref": "#/definitions/sketching.delete"
12097
12288
  },
12289
+ {
12290
+ "$ref": "#/definitions/sketching.insert-point"
12291
+ },
12098
12292
  {
12099
12293
  "$ref": "#/definitions/sketching.redo"
12100
12294
  },