@vertigis/viewer-spec 60.2.0 → 60.3.1

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.
@@ -2,6 +2,7 @@
2
2
  import type { TaskSettingsProperties } from "@vertigis/arcgis-extensions/data/TaskSettings.js";
3
3
  import type { LabelingInfoJson } from "@vertigis/arcgis-extensions/json/DrawingInfoJson.js";
4
4
  import type { PopupInfoJson } from "@vertigis/arcgis-extensions/json/PopupInfoJson.js";
5
+ import type { SpatialReferenceJson } from "@vertigis/arcgis-extensions/json/SpatialReferenceJson.js";
5
6
  import type { Command } from "../Command.js";
6
7
  import { CommandRegistry } from "../CommandRegistry.js";
7
8
  import type { Event } from "../Event.js";
@@ -93,6 +94,23 @@ export interface LayerSettingsArgs extends HasLayerSettings, HasLayers, HasSymbo
93
94
  */
94
95
  export interface FromKmlArgs extends HasFiles {
95
96
  }
97
+ /**
98
+ * Arguments for the layers.from-dxf operation. When the spatial references are
99
+ * omitted, Web defaults both input and output to the active map's current
100
+ * spatial reference.
101
+ */
102
+ export interface FromDxfArgs extends HasFiles {
103
+ /**
104
+ * The spatial reference of the source DXF content. If not set, the active
105
+ * map's spatial reference is used for the input.
106
+ */
107
+ inputSpatialReference?: SpatialReferenceJson;
108
+ /**
109
+ * The spatial reference to project the resulting layers to. If not set, the
110
+ * active map's spatial reference is used for the output.
111
+ */
112
+ outputSpatialReference?: SpatialReferenceJson;
113
+ }
96
114
  /**
97
115
  * Arguments for the layers.from-url operation.
98
116
  */
@@ -249,6 +267,14 @@ export declare class LayersOperations extends OperationRegistry {
249
267
  * @webOnly
250
268
  */
251
269
  get fromKml(): Operation<FromKmlArgs | Blob | Blob[], HasLayers>;
270
+ /**
271
+ * Convert the specified DXF blob to layers. If spatial references are not
272
+ * specified, Web defaults both the input and output to the active map's
273
+ * spatial reference.
274
+ *
275
+ * @webOnly
276
+ */
277
+ get fromDxf(): Operation<FromDxfArgs | Blob | Blob[], HasLayers>;
252
278
  /**
253
279
  * Attempts to create layer(s) from a url. Web only.
254
280
  *
@@ -1 +1 @@
1
- import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as s}from"../OperationRegistry.js";export class LayersCommands extends e{_prefix="layers";get ensureCanSetSymbol(){return this._get("ensure-can-set-symbol")}get resetDefinitionExpression(){return this._get("reset-definition-expression")}get resetSymbol(){return this._get("reset-symbol")}get setDefinitionExpression(){return this._get("set-definition-expression")}get setLabelClasses(){return this._get("set-label-classes")}get setPopupTemplate(){return this._get("set-popup-template")}get setSymbol(){return this._get("set-symbol")}get setTaskSettings(){return this._get("set-task-settings")}get setTitle(){return this._get("set-title")}get setVisibility(){return this._get("set-visibility")}get showLabels(){return this._get("show-labels")}get hideLabels(){return this._get("hide-labels")}}export class LayersOperations extends s{_prefix="layers";get getPopupTemplate(){return this._get("get-popup-template")}get getLabelClasses(){return this._get("get-label-classes")}get getTaskSettings(){return this._get("get-task-settings")}get getTitle(){return this._get("get-title")}get editSettings(){return this._get("edit-settings")}get editLabelSettings(){return this._get("edit-symbol-settings")}get editSymbols(){return this._get("edit-symbols")}get fromKml(){return this._get("from-kml")}get fromUrl(){return this._get("from-url")}}export class LayersEvents extends t{_prefix="layers";get definitionExpressionChanged(){return this._get("definition-expression-changed")}get visibilityChanged(){return this._get("visibility-changed")}}
1
+ import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as s}from"../OperationRegistry.js";export class LayersCommands extends e{_prefix="layers";get ensureCanSetSymbol(){return this._get("ensure-can-set-symbol")}get resetDefinitionExpression(){return this._get("reset-definition-expression")}get resetSymbol(){return this._get("reset-symbol")}get setDefinitionExpression(){return this._get("set-definition-expression")}get setLabelClasses(){return this._get("set-label-classes")}get setPopupTemplate(){return this._get("set-popup-template")}get setSymbol(){return this._get("set-symbol")}get setTaskSettings(){return this._get("set-task-settings")}get setTitle(){return this._get("set-title")}get setVisibility(){return this._get("set-visibility")}get showLabels(){return this._get("show-labels")}get hideLabels(){return this._get("hide-labels")}}export class LayersOperations extends s{_prefix="layers";get getPopupTemplate(){return this._get("get-popup-template")}get getLabelClasses(){return this._get("get-label-classes")}get getTaskSettings(){return this._get("get-task-settings")}get getTitle(){return this._get("get-title")}get editSettings(){return this._get("edit-settings")}get editLabelSettings(){return this._get("edit-symbol-settings")}get editSymbols(){return this._get("edit-symbols")}get fromKml(){return this._get("from-kml")}get fromDxf(){return this._get("from-dxf")}get fromUrl(){return this._get("from-url")}}export class LayersEvents extends t{_prefix="layers";get definitionExpressionChanged(){return this._get("definition-expression-changed")}get visibilityChanged(){return this._get("visibility-changed")}}
@@ -4166,6 +4166,28 @@
4166
4166
  },
4167
4167
  "type": "object"
4168
4168
  },
4169
+ "FromDxfArgs": {
4170
+ "additionalProperties": false,
4171
+ "description": "Arguments for the layers.from-dxf operation. When the spatial references are omitted, Web defaults both input and output to the active map's current spatial reference.",
4172
+ "properties": {
4173
+ "blobs": {
4174
+ "description": "The data files to use for the command/operation.",
4175
+ "items": {
4176
+ "$ref": "FileLike"
4177
+ },
4178
+ "type": "array"
4179
+ },
4180
+ "inputSpatialReference": {
4181
+ "$ref": "#/definitions/esri.rest-api.SpatialReferenceJson.SpatialReferenceJson",
4182
+ "description": "The spatial reference of the source DXF content. If not set, the active map's spatial reference is used for the input."
4183
+ },
4184
+ "outputSpatialReference": {
4185
+ "$ref": "#/definitions/esri.rest-api.SpatialReferenceJson.SpatialReferenceJson",
4186
+ "description": "The spatial reference to project the resulting layers to. If not set, the active map's spatial reference is used for the output."
4187
+ }
4188
+ },
4189
+ "type": "object"
4190
+ },
4169
4191
  "FromGraphicsArgs": {
4170
4192
  "additionalProperties": false,
4171
4193
  "description": "Arguments for the \"results.from-graphics\" operation.",
@@ -22445,6 +22467,31 @@
22445
22467
  "layers.ensure-can-set-symbol:input": {
22446
22468
  "$ref": "#/definitions/SetSymbolArgs"
22447
22469
  },
22470
+ "layers.from-dxf": {
22471
+ "description": "Convert the specified DXF blob to layers. If spatial references are not specified, Web defaults both the input and output to the active map's spatial reference.",
22472
+ "enum": [
22473
+ "layers.from-dxf"
22474
+ ]
22475
+ },
22476
+ "layers.from-dxf:input": {
22477
+ "anyOf": [
22478
+ {
22479
+ "$ref": "#/definitions/FromDxfArgs"
22480
+ },
22481
+ {
22482
+ "$ref": "global.Blob"
22483
+ },
22484
+ {
22485
+ "items": {
22486
+ "$ref": "global.Blob"
22487
+ },
22488
+ "type": "array"
22489
+ }
22490
+ ]
22491
+ },
22492
+ "layers.from-dxf:output": {
22493
+ "$ref": "#/definitions/HasLayers"
22494
+ },
22448
22495
  "layers.from-kml": {
22449
22496
  "description": "Convert the specified KML blob to layers. Web only.",
22450
22497
  "enum": [
@@ -29624,6 +29671,22 @@
29624
29671
  ],
29625
29672
  "type": "object"
29626
29673
  },
29674
+ {
29675
+ "additionalProperties": false,
29676
+ "properties": {
29677
+ "arguments": {
29678
+ "$ref": "#/definitions/layers.from-dxf:input"
29679
+ },
29680
+ "name": {
29681
+ "$ref": "#/definitions/layers.from-dxf"
29682
+ }
29683
+ },
29684
+ "required": [
29685
+ "name",
29686
+ "arguments"
29687
+ ],
29688
+ "type": "object"
29689
+ },
29627
29690
  {
29628
29691
  "additionalProperties": false,
29629
29692
  "properties": {
@@ -30865,6 +30928,9 @@
30865
30928
  {
30866
30929
  "$ref": "#/definitions/layers.edit-symbols"
30867
30930
  },
30931
+ {
30932
+ "$ref": "#/definitions/layers.from-dxf"
30933
+ },
30868
30934
  {
30869
30935
  "$ref": "#/definitions/layers.from-kml"
30870
30936
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "60.2.0",
3
+ "version": "60.3.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export declare const version = "60.2.0";
4
+ export declare const version = "60.3.1";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export const version = "60.2.0";
4
+ export const version = "60.3.1";