@vertigis/viewer-spec 61.21.0 → 61.23.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.
@@ -0,0 +1,14 @@
1
+ import type { ComponentModelProperties } from "./ComponentModelProperties.js";
2
+ /**
3
+ * Controls which layers are included when exporting to DXF.
4
+ */
5
+ export type DxfExportLayerOption = "all" | "visible" | "visible-on-map";
6
+ /**
7
+ * Configuration for a dxf-export component.
8
+ */
9
+ export interface DxfExportModelProperties extends ComponentModelProperties {
10
+ /**
11
+ * Controls which layers are included in the DXF export.
12
+ */
13
+ selectedLayerOption?: DxfExportLayerOption;
14
+ }
@@ -0,0 +1 @@
1
+ export{};
@@ -4,13 +4,17 @@ import type { ModelProperties } from "./ModelProperties.js";
4
4
  */
5
5
  export interface GeoDataModelProperties extends ModelProperties {
6
6
  /**
7
- * The geoDataServiceUrl for the upload service that needs to import the
8
- * LPKX and FGDB files.
7
+ * The URL for the upload service that needs to import the LPKX and FGDB
8
+ * files.
9
9
  */
10
10
  geoDataServiceUrl?: string;
11
11
  /**
12
- * The displayServiceUrl for the upload service that needs to import the
13
- * LPKX and FGDB files.
12
+ * The URL for the upload service that needs to import the LPKX and FGDB
13
+ * files.
14
14
  */
15
15
  displayServiceUrl?: string;
16
+ /**
17
+ * The URL for the upload service that needs to import DXF export files.
18
+ */
19
+ dxfExportServiceUrl?: string;
16
20
  }
@@ -64,10 +64,10 @@
64
64
  </complexType>
65
65
  </element>
66
66
 
67
- <element name="copy-features" substitutionGroup="base:component">
67
+ <element name="dxf-export" substitutionGroup="base:component">
68
68
  <annotation>
69
69
  <documentation xml:lang="en">
70
- A component that copies source features to an editable target layer.
70
+ A component that exports map layers in a selected area to a DXF file.
71
71
  </documentation>
72
72
  </annotation>
73
73
  <complexType>
@@ -136,6 +136,13 @@ export declare class AuthOperations extends OperationRegistry {
136
136
  * @mobileOnly
137
137
  */
138
138
  get getExistingCredential(): Operation<CredentialRequestInfo, Credential>;
139
+ /**
140
+ * Gets a credential. Returns an existing credential if one exists. Prompts
141
+ * the user for sign in if one cannot be found. Mobile only.
142
+ *
143
+ * @mobileOnly
144
+ */
145
+ get getCredential(): Operation<CredentialRequestInfo, Credential>;
139
146
  /**
140
147
  * Check if sign-in is currently supported by the authentication manager.
141
148
  * Web only.
@@ -1 +1 @@
1
- import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as n}from"../OperationRegistry.js";export class AuthCommands extends e{_prefix="auth";get signIn(){return this._get("sign-in")}get signOut(){return this._get("sign-out")}}export class AuthOperations extends n{_prefix="auth";get getCurrentUser(){return this._get("get-current-user")}get getExistingCredential(){return this._get("get-existing-credential")}get isSignInAvailable(){return this._get("is-sign-in-available")}}export class AuthEvents extends t{_prefix="auth";get signInCancelled(){return this._get("sign-in-cancelled")}get signInCompleted(){return this._get("sign-in-completed")}get portalSignInCompleted(){return this._get("portal-sign-in-completed")}get signInFailed(){return this._get("sign-in-failed")}get signInRequested(){return this._get("sign-in-requested")}get signOutCompleted(){return this._get("sign-out-completed")}get signOutRequested(){return this._get("sign-out-requested")}get tokenRefreshed(){return this._get("token-refreshed")}}
1
+ import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as n}from"../OperationRegistry.js";export class AuthCommands extends e{_prefix="auth";get signIn(){return this._get("sign-in")}get signOut(){return this._get("sign-out")}}export class AuthOperations extends n{_prefix="auth";get getCurrentUser(){return this._get("get-current-user")}get getExistingCredential(){return this._get("get-existing-credential")}get getCredential(){return this._get("get-credential")}get isSignInAvailable(){return this._get("is-sign-in-available")}}export class AuthEvents extends t{_prefix="auth";get signInCancelled(){return this._get("sign-in-cancelled")}get signInCompleted(){return this._get("sign-in-completed")}get portalSignInCompleted(){return this._get("portal-sign-in-completed")}get signInFailed(){return this._get("sign-in-failed")}get signInRequested(){return this._get("sign-in-requested")}get signOutCompleted(){return this._get("sign-out-completed")}get signOutRequested(){return this._get("sign-out-requested")}get tokenRefreshed(){return this._get("token-refreshed")}}
@@ -8,7 +8,7 @@ import type { Event } from "../Event.js";
8
8
  import { EventRegistry } from "../EventRegistry.js";
9
9
  import type { Operation } from "../Operation.js";
10
10
  import { OperationRegistry } from "../OperationRegistry.js";
11
- import type { HasFiles, HasLayers, HasMaps, HasRenderers, HasSymbols, LayersLike } from "../common.js";
11
+ import type { HasFiles, HasLayers, HasMaps, HasRenderers, HasSymbols, HasUITarget, LayersLike } from "../common.js";
12
12
  /**
13
13
  * Arguments for the "layers.visibility-changed" event.
14
14
  */
@@ -120,6 +120,125 @@ export interface FromDxfArgs extends HasFiles {
120
120
  */
121
121
  outputSpatialReference?: SpatialReferenceJson;
122
122
  }
123
+ /**
124
+ * A sublayer included in a DXF export.
125
+ */
126
+ export interface DxfExportSublayer {
127
+ /**
128
+ * The sublayer ID.
129
+ */
130
+ id: string;
131
+ /**
132
+ * The name to use for the sublayer in the exported file.
133
+ */
134
+ name: string;
135
+ /**
136
+ * The source layer ID.
137
+ */
138
+ layerId?: string | number;
139
+ /**
140
+ * The source layer URL.
141
+ */
142
+ layerURL?: string;
143
+ /**
144
+ * The geodatabase version to export.
145
+ */
146
+ gdbVersion?: string;
147
+ /**
148
+ * The layer ID to query.
149
+ */
150
+ queryLayer?: string;
151
+ }
152
+ /**
153
+ * A layer included in a DXF export.
154
+ */
155
+ export interface DxfExportLayer {
156
+ /**
157
+ * The layer ID.
158
+ */
159
+ id: string;
160
+ /**
161
+ * The name to use for the layer in the exported file.
162
+ */
163
+ name: string;
164
+ /**
165
+ * The source layer ID.
166
+ */
167
+ layerId?: string | number;
168
+ /**
169
+ * The source layer URL.
170
+ */
171
+ layerURL?: string;
172
+ /**
173
+ * The geodatabase version to export.
174
+ */
175
+ gdbVersion?: string;
176
+ /**
177
+ * The layer ID to query.
178
+ */
179
+ queryLayer?: string;
180
+ /**
181
+ * Sublayers included in the export.
182
+ */
183
+ sublayers?: DxfExportSublayer[];
184
+ }
185
+ /**
186
+ * Arguments for the layers.to-dxf operation.
187
+ */
188
+ export interface ToDxfConversionArgs {
189
+ /**
190
+ * The DXF export API version.
191
+ */
192
+ apiVersion: "1.0";
193
+ /**
194
+ * The token used to access secured layers.
195
+ */
196
+ authToken?: string;
197
+ /**
198
+ * Whether geometries crossing the export area are clipped or included.
199
+ */
200
+ boundaryBehavior: "clip" | "include";
201
+ /**
202
+ * The polygon ring defining the area to export.
203
+ */
204
+ exportArea: number[][];
205
+ /**
206
+ * The AutoCAD version of the exported file.
207
+ */
208
+ formatOption: "AutoCAD2000" | "AutoCAD2010";
209
+ /**
210
+ * The layers to export.
211
+ */
212
+ layers: DxfExportLayer[];
213
+ /**
214
+ * Whether to create an ASCII or binary DXF file.
215
+ */
216
+ resultType: "DXF" | "Binary DXF";
217
+ /**
218
+ * The spatial reference of the export area.
219
+ */
220
+ spatialReference?: SpatialReferenceJson;
221
+ /**
222
+ * The spatial reference of the exported file.
223
+ */
224
+ targetSpatialReference?: SpatialReferenceJson;
225
+ /**
226
+ * The ID of the user requesting the export.
227
+ */
228
+ userID?: string;
229
+ /**
230
+ * The name of the user requesting the export.
231
+ */
232
+ username?: string;
233
+ /**
234
+ * The version name used by the export service.
235
+ */
236
+ versionName: "DEFAULT";
237
+ /**
238
+ * The URL of the web map data to export.
239
+ */
240
+ webMapUrl?: string;
241
+ }
123
242
  /**
124
243
  * Arguments for the layers.from-url operation.
125
244
  */
@@ -131,6 +250,12 @@ export interface FromUrlArgs {
131
250
  }
132
251
  export declare class LayersCommands extends CommandRegistry {
133
252
  protected readonly _prefix = "layers";
253
+ /**
254
+ * Displays the DXF export log UI. Web only.
255
+ *
256
+ * @webOnly
257
+ */
258
+ get displayDxfLog(): Command<HasUITarget>;
134
259
  /**
135
260
  * Guard command for enabling the layers.set-symbol command. Web only.
136
261
  *
@@ -305,6 +430,12 @@ export declare class LayersOperations extends OperationRegistry {
305
430
  * @webOnly
306
431
  */
307
432
  get fromDxf(): Operation<FromDxfArgs | Blob | Blob[], HasLayers>;
433
+ /**
434
+ * Exports map layers to a DXF file. Web only.
435
+ *
436
+ * @webOnly
437
+ */
438
+ get toDxf(): Operation<ToDxfConversionArgs, Blob>;
308
439
  /**
309
440
  * Attempts to create layer(s) from a url. Web only.
310
441
  *
@@ -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 fromFgdb(){return this._get("from-fgdb")}get fromLpkx(){return this._get("from-lpkx")}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")}}
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 displayDxfLog(){return this._get("display-dxf-log")}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 fromFgdb(){return this._get("from-fgdb")}get fromLpkx(){return this._get("from-lpkx")}get fromDxf(){return this._get("from-dxf")}get toDxf(){return this._get("to-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")}}