@vertigis/viewer-spec 59.5.0 → 59.6.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/printing.d.ts +744 -7
- package/messaging/registry/printing.js +1 -1
- package/messaging/schema/common-action.schema.json +25 -25
- package/messaging/schema/mobile-action.schema.json +25 -25
- package/messaging/schema/web-action.schema.json +25 -25
- package/messaging/schema/web-event.schema.json +1201 -7
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type Viewpoint from "@arcgis/core/Viewpoint";
|
|
2
2
|
import type Extent from "@arcgis/core/geometry/Extent";
|
|
3
|
+
import type Point from "@arcgis/core/geometry/Point.js";
|
|
3
4
|
import type SpatialReference from "@arcgis/core/geometry/SpatialReference";
|
|
5
|
+
import type { BasemapJson } from "@vertigis/arcgis-extensions/json/BasemapJson.js";
|
|
6
|
+
import type { OperationalLayerJson } from "@vertigis/arcgis-extensions/json/OperationalLayerJson.js";
|
|
4
7
|
import type { PortalItemLike } from "@vertigis/arcgis-extensions/utilities/portal";
|
|
5
8
|
import type { Command } from "../Command.js";
|
|
6
9
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
@@ -12,12 +15,742 @@ import type { MapsLike } from "../common.js";
|
|
|
12
15
|
*/
|
|
13
16
|
export type JobParameters = Record<string, unknown>;
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
18
|
+
* Available print output formats (printing gen2).
|
|
16
19
|
*/
|
|
17
|
-
export
|
|
20
|
+
export declare const printOutputFormats: readonly ["AIX", "BMP", "EMF", "EPS", "GIF", "JPG", "PDF", "PNG", "PNG32", "SVG", "SVGZ", "TGA", "TIFF"];
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
22
|
+
* Represents the print output format type (printing gen2). Note: Output format
|
|
23
|
+
* is ignored and PDF is used automatically if more than one page is exported.
|
|
24
|
+
*/
|
|
25
|
+
export type PrintOutputFormat = (typeof printOutputFormats)[number];
|
|
26
|
+
/**
|
|
27
|
+
* Represents a print spatial reference.
|
|
28
|
+
*/
|
|
29
|
+
export interface PrintSpatialReference {
|
|
30
|
+
/**
|
|
31
|
+
* WKID.
|
|
32
|
+
*/
|
|
33
|
+
wkid?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Latest WKID.
|
|
36
|
+
*/
|
|
37
|
+
latestWkid?: number;
|
|
38
|
+
/**
|
|
39
|
+
* WKT String.
|
|
40
|
+
*/
|
|
41
|
+
wkt?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Represents the print extent.
|
|
45
|
+
*/
|
|
46
|
+
export interface PrintExtent {
|
|
47
|
+
/**
|
|
48
|
+
* Xmin value.
|
|
49
|
+
*/
|
|
50
|
+
xmin: number;
|
|
51
|
+
/**
|
|
52
|
+
* Ymin value.
|
|
53
|
+
*/
|
|
54
|
+
ymin: number;
|
|
55
|
+
/**
|
|
56
|
+
* Xmax value.
|
|
57
|
+
*/
|
|
58
|
+
xmax: number;
|
|
59
|
+
/**
|
|
60
|
+
* Ymax value.
|
|
61
|
+
*/
|
|
62
|
+
ymax: number;
|
|
63
|
+
/**
|
|
64
|
+
* Center point.
|
|
65
|
+
*/
|
|
66
|
+
center?: Point;
|
|
67
|
+
/**
|
|
68
|
+
* Spatial reference.
|
|
69
|
+
*/
|
|
70
|
+
spatialReference: PrintSpatialReference;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Represents the map options.
|
|
74
|
+
*/
|
|
75
|
+
export interface MapOptions {
|
|
76
|
+
/**
|
|
77
|
+
* Defines the extent of the map to be printed. The spatial reference of the
|
|
78
|
+
* extent object is optional; when it is not provided, it is assumed to be
|
|
79
|
+
* in the map's spatial reference. When the aspect ratio of the map extent
|
|
80
|
+
* is different than the size of the map on the output page or the
|
|
81
|
+
* ExportWebMap:ExportOptions:outputSize, you might notice more features on
|
|
82
|
+
* the output map.
|
|
83
|
+
*/
|
|
84
|
+
extent: PrintExtent;
|
|
85
|
+
/**
|
|
86
|
+
* The map scale at which you want your map to be exported. When scale is
|
|
87
|
+
* used, it takes precedence over the extent, but the output map is drawn at
|
|
88
|
+
* the requested scale centered on the center of the extent.
|
|
89
|
+
*/
|
|
90
|
+
scale?: number;
|
|
91
|
+
/**
|
|
92
|
+
* The spatial reference of the map. The order of preference when
|
|
93
|
+
* spatialReference is missing is as follows:
|
|
94
|
+
*
|
|
95
|
+
* - ExportWebMap:MapOptions.extent.spatialReference
|
|
96
|
+
* - ExportWebMap:BaseMap.baseMapLayers.spatialReference
|
|
97
|
+
* - Map template's spatial reference.
|
|
98
|
+
*/
|
|
99
|
+
spatialReference?: PrintSpatialReference;
|
|
100
|
+
/**
|
|
101
|
+
* This represents the number of degrees by which the map frame will be
|
|
102
|
+
* rotated, measured counterclockwise from the north. To rotate clockwise,
|
|
103
|
+
* use a negative value.
|
|
104
|
+
*/
|
|
105
|
+
rotation?: number;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Represents the export options.
|
|
109
|
+
*/
|
|
110
|
+
export interface ExportOptions {
|
|
111
|
+
/**
|
|
112
|
+
* The resolution in dots per inch. The default is 96 dpi.
|
|
113
|
+
*/
|
|
114
|
+
dpi?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Size of the map in pixels. The size must be defined when an empty string
|
|
117
|
+
* or MAP_ONLY (without quotation marks) is passed in as a value to the
|
|
118
|
+
* layout_template parameter. If layout_template is not specified as
|
|
119
|
+
* MAP_ONLY or an empty string, the map frame with the name WEBMAP_MAP_FRAME
|
|
120
|
+
* of the referenced DEFAULT layout portal item in layout_template print
|
|
121
|
+
* parameter takes precedence over outputSize.
|
|
122
|
+
*/
|
|
123
|
+
outputSize?: number[];
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Represents the legend options.
|
|
127
|
+
*/
|
|
128
|
+
export interface LegendOptions {
|
|
129
|
+
/**
|
|
130
|
+
* Specifies if the legend of all operational layers should be added to the
|
|
131
|
+
* layout. If true, operationalLayers can be undefined. Note: this is no
|
|
132
|
+
* ESRI standard property and only works with VertiGIS Studio Printing
|
|
133
|
+
* Engine.
|
|
134
|
+
*/
|
|
135
|
+
operationalLayersAutoSet?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Specifies the operational layers whose legends will be added to the
|
|
138
|
+
* layout.
|
|
139
|
+
*/
|
|
140
|
+
operationalLayers?: {
|
|
141
|
+
/**
|
|
142
|
+
* String representing the ID of the layer. The ID must be unique and
|
|
143
|
+
* must match the layer's ID in the operationalLayers element where the
|
|
144
|
+
* operational layer is defined.
|
|
145
|
+
*/
|
|
146
|
+
id: string;
|
|
147
|
+
/**
|
|
148
|
+
* An array of sublayers whose element types are string or number and
|
|
149
|
+
* contextual to the operational layer type. For example, for a map
|
|
150
|
+
* service layer, it must be a number; for a WMS layer, it must be a
|
|
151
|
+
* string. It is recommended that you specify subLayerIds values for
|
|
152
|
+
* operational layers that have sublayers. Once omitted, in the case of
|
|
153
|
+
* map service and WMS layers, legends from all sublayers are added to
|
|
154
|
+
* the legend element on the layout. For feature or graphics layers, the
|
|
155
|
+
* sublayers property does not need to be set.
|
|
156
|
+
*/
|
|
157
|
+
subLayerIds?: string[] | number[];
|
|
158
|
+
}[];
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Represents the layout options.
|
|
162
|
+
*/
|
|
163
|
+
export interface LayoutOptions {
|
|
164
|
+
/**
|
|
165
|
+
* Specifies properties of a legend element on the layout.
|
|
166
|
+
*/
|
|
167
|
+
legendOptions?: LegendOptions;
|
|
168
|
+
/**
|
|
169
|
+
* Dynamic text elements as array of name-value pairs. Applies for all
|
|
170
|
+
* layout page types. Sets the values of layout function fields for all
|
|
171
|
+
* layouts containing the specified functions fields. Values must be
|
|
172
|
+
* strings. Function fields of type string and additionally of type image
|
|
173
|
+
* can also be set when using additionalSettings:dynamicElements. Function
|
|
174
|
+
* field values can be applied individually for specific layout page types
|
|
175
|
+
* by using:
|
|
176
|
+
*
|
|
177
|
+
* - AdditionalSettings:page:dynamicElements.
|
|
178
|
+
* - AdditionalSettings:pageCover:dynamicElements.
|
|
179
|
+
* - AdditionalSettings:pageOverview:dynamicElements.
|
|
180
|
+
* - AdditionalSettings:pageLegend:dynamicElements.
|
|
181
|
+
*/
|
|
182
|
+
customTextElements?: unknown;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Represents the export web map as defined by ESRI in
|
|
186
|
+
* https://enterprise.arcgis.com/en/server/latest/publish-services/windows/exportwebmap-specification.htm.
|
|
187
|
+
*/
|
|
188
|
+
export interface ExportWebMap {
|
|
189
|
+
/**
|
|
190
|
+
* The object mapOptions is required and defines map display properties.
|
|
191
|
+
*/
|
|
192
|
+
mapOptions: MapOptions;
|
|
193
|
+
/**
|
|
194
|
+
* This object specifies settings for the output map.
|
|
195
|
+
*/
|
|
196
|
+
exportOptions?: ExportOptions;
|
|
197
|
+
/**
|
|
198
|
+
* This defines settings for different available page layout elements and is
|
|
199
|
+
* only needed when an available layout template is chosen. Page layout
|
|
200
|
+
* elements include well-known VertiGIS Studios function fields and custom
|
|
201
|
+
* text elements.
|
|
202
|
+
*/
|
|
203
|
+
layoutOptions?: LayoutOptions;
|
|
204
|
+
/**
|
|
205
|
+
* The operationalLayers list contains all the operational layers to be
|
|
206
|
+
* displayed in the map. The order of the array defines the order of the
|
|
207
|
+
* layers in the map. The type of each layer is defined by the URL resource
|
|
208
|
+
* response. If the resource cannot be determined from the URL, the type
|
|
209
|
+
* property defines the type. For example, a WMS layer requires that you
|
|
210
|
+
* specify "type": "wms". There are some properties common to all types of
|
|
211
|
+
* operational layers, while others are specific to each type of operational
|
|
212
|
+
* layer.
|
|
213
|
+
*
|
|
214
|
+
* In case of secured layers, specify the token in a layer definition. A
|
|
215
|
+
* user name and password are not supported as part of the URL.
|
|
216
|
+
*/
|
|
217
|
+
operationalLayers?: OperationalLayerJson[];
|
|
218
|
+
/**
|
|
219
|
+
* The map contains one baseMap, which has a title, and a baseMapLayers
|
|
220
|
+
* property that contains an ordered list of baseMapLayers. Each
|
|
221
|
+
* baseMapLayer must be in the same spatial reference and tiling scheme.
|
|
222
|
+
* When there is a baseMap, it defines the map's spatial reference.
|
|
223
|
+
*/
|
|
224
|
+
baseMap?: BasemapJson;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Represents an additional export web map.
|
|
228
|
+
*/
|
|
229
|
+
export interface AdditionalExportWebMap {
|
|
230
|
+
/**
|
|
231
|
+
* Name of the additional map frame in the layout. Well-known additional map
|
|
232
|
+
* frame names are 'OVERVIEW' for the overview map and
|
|
233
|
+
* 'WEBMAP_MAP_FRAME_PAGE_OVERVIEW' for the overview page map. For a custom
|
|
234
|
+
* additional web frame name use the map frame name as defined in the
|
|
235
|
+
* layout. For fetching the available map frames for layouts or layout
|
|
236
|
+
* packages use the 'Get Layout Template Info Task'.
|
|
237
|
+
*/
|
|
238
|
+
name: string;
|
|
239
|
+
/**
|
|
240
|
+
* The export web map properties.
|
|
241
|
+
*/
|
|
242
|
+
Map_As_JSON: ExportWebMap;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Represents the portal authentication settings.
|
|
246
|
+
*/
|
|
247
|
+
export interface PortalAuthentication {
|
|
248
|
+
/**
|
|
249
|
+
* Whether the access to an ArcGIS Online / ArcGIS Enterprise organization
|
|
250
|
+
* is anonymous. If anonymous is true, no token is required.
|
|
251
|
+
*/
|
|
252
|
+
anonymous: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* URL of an ArcGIS Enterprise or ArcGIS Online organization. If not
|
|
255
|
+
* defined, ArcGIS Online access is assumed.
|
|
256
|
+
*/
|
|
257
|
+
portal_url: string;
|
|
258
|
+
/**
|
|
259
|
+
* Access token. Required for non-anonymous access.
|
|
260
|
+
*/
|
|
261
|
+
token?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Access token referer. Required for non-anonymous access if the token was
|
|
264
|
+
* created with the ESRI 'Generate Token Service'.
|
|
265
|
+
*/
|
|
266
|
+
referer?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Represents the layer objects selection Settings.
|
|
270
|
+
*/
|
|
271
|
+
export interface Selection {
|
|
272
|
+
/**
|
|
273
|
+
* Layer object IDs.
|
|
274
|
+
*/
|
|
275
|
+
oidList: number[];
|
|
276
|
+
/**
|
|
277
|
+
* Web map layer ID.
|
|
278
|
+
*/
|
|
279
|
+
layerId: string;
|
|
280
|
+
/**
|
|
281
|
+
* Whether the default object selection graphics should be visible for
|
|
282
|
+
* selected objects. If 'true' or not defined, the ArcGIS default object
|
|
283
|
+
* selection graphics are used. If 'false', object selection graphics are
|
|
284
|
+
* expected in the export web map request parameter (e.g. operational layer
|
|
285
|
+
* with custom renderer for selected objects, or pre-defined selection
|
|
286
|
+
* geometries with custom renderer in feature collections).
|
|
287
|
+
*/
|
|
288
|
+
visible: boolean;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Represents the time interval units.
|
|
292
|
+
*/
|
|
293
|
+
export type IntervalUnits = "MILLISECONDS" | "SECONDS" | "MINUTES" | "HOURS" | "DAYS" | "WEEKS" | "MONTHS" | "YEARS" | "DECADES" | "CENTURIES";
|
|
294
|
+
/**
|
|
295
|
+
* Represents the time series settings.
|
|
296
|
+
*/
|
|
297
|
+
export interface TimeSeries {
|
|
298
|
+
/**
|
|
299
|
+
* Maximum count of time series PDF documents within the returned ZIP
|
|
300
|
+
* archive. If not set, no limit for time series PDF document exports is
|
|
301
|
+
* used. Depending on the client and the execution environment and the
|
|
302
|
+
* template- / map properties, the clients should always define a suitable
|
|
303
|
+
* value.
|
|
304
|
+
*/
|
|
305
|
+
maxCount?: number;
|
|
306
|
+
/**
|
|
307
|
+
* Client time zone information. Default is UTC.
|
|
308
|
+
*/
|
|
309
|
+
timeZone?: {
|
|
310
|
+
/**
|
|
311
|
+
* Offset in hours to UTC without daylight saving time (DST).
|
|
312
|
+
*/
|
|
313
|
+
utcOffset: number;
|
|
314
|
+
/**
|
|
315
|
+
* Timezone name. Used for the time function field.
|
|
316
|
+
*/
|
|
317
|
+
name: string;
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* Human-readable date time pattern in ESRI format:
|
|
321
|
+
* https://pro.arcgis.com/en/pro-app/latest/help/data/tables/format-numeric-and-date-fields.htm.
|
|
322
|
+
* Used for the time function field. Default is 'yyyy-MM-dd hh:mm:ss'.
|
|
323
|
+
*/
|
|
324
|
+
datetimePattern?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Export interval in milliseconds or in other interval units if defined.
|
|
327
|
+
* Requires a single export time in the array with a time range > 0. If
|
|
328
|
+
* defined, an export is triggered for each interval starting at the time
|
|
329
|
+
* range <startTime> and stopping at <endTime>. If no main map with one or
|
|
330
|
+
* more visible time-aware operational layers is available for exporting, or
|
|
331
|
+
* if the defined interval does not fit into the specified time range, this
|
|
332
|
+
* property is ignored.
|
|
333
|
+
*/
|
|
334
|
+
interval?: number;
|
|
335
|
+
/**
|
|
336
|
+
* Export interval units. Requires a defined interval. Default is
|
|
337
|
+
* MILLISECONDS.
|
|
338
|
+
*/
|
|
339
|
+
intervalUnits?: IntervalUnits;
|
|
340
|
+
/**
|
|
341
|
+
* Export Times. Triggers an export for each defined export time. Export
|
|
342
|
+
* time in milliseconds UTC. Requires at least one entry.
|
|
343
|
+
*/
|
|
344
|
+
times: number[][];
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Represents the range settings.
|
|
348
|
+
*/
|
|
349
|
+
export interface Range {
|
|
350
|
+
/**
|
|
351
|
+
* Start value.
|
|
352
|
+
*/
|
|
353
|
+
start: number;
|
|
354
|
+
/**
|
|
355
|
+
* End value.
|
|
356
|
+
*/
|
|
357
|
+
end: number;
|
|
358
|
+
/**
|
|
359
|
+
* Whether the start value is included in the value range.
|
|
360
|
+
*/
|
|
361
|
+
includeStart: boolean;
|
|
362
|
+
/**
|
|
363
|
+
* Whether the end value is included in the value range.
|
|
364
|
+
*/
|
|
365
|
+
includeEnd: boolean;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Represents the range series settings.
|
|
369
|
+
*/
|
|
370
|
+
export interface RangeSeries {
|
|
371
|
+
/**
|
|
372
|
+
* Maximum count of value range series pages per PDF document. If not set,
|
|
373
|
+
* no limit for value range series PDF page exports is used. Depending on
|
|
374
|
+
* the client and the execution environment and the template- / map
|
|
375
|
+
* properties, the clients should always define a suitable value.
|
|
376
|
+
*/
|
|
377
|
+
maxCount?: number;
|
|
378
|
+
/**
|
|
379
|
+
* Export interval in integer or float. Requires a single export value range
|
|
380
|
+
* in the array with a value range extent > 0. If defined, an export is
|
|
381
|
+
* triggered for each interval starting at the value range <start> and
|
|
382
|
+
* stopping at <end>. If no main map with one or more visible z-aware layers
|
|
383
|
+
* is available for exporting, or if the defined interval does not fit into
|
|
384
|
+
* the specified value range span, this property is ignored.
|
|
385
|
+
*/
|
|
386
|
+
interval?: number;
|
|
387
|
+
/**
|
|
388
|
+
* Export value ranges. Triggers an export for each defined export value
|
|
389
|
+
* range. Requires at least one entry.
|
|
390
|
+
*/
|
|
391
|
+
ranges: Range[];
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Represents the table data selection mode.
|
|
395
|
+
*/
|
|
396
|
+
export type DataSelectionMode = "All" | "InExtent" | "SelectedAll" | "SelectedInExtent";
|
|
397
|
+
/**
|
|
398
|
+
* Represents the attribute table settings.
|
|
399
|
+
*/
|
|
400
|
+
export interface AttributeTable {
|
|
401
|
+
/**
|
|
402
|
+
* Name of attribute table.
|
|
403
|
+
*/
|
|
404
|
+
name: string;
|
|
405
|
+
/**
|
|
406
|
+
* ID of the map layer used as data source.
|
|
407
|
+
*/
|
|
408
|
+
layerId: string;
|
|
409
|
+
/**
|
|
410
|
+
* Data selection mode.
|
|
411
|
+
*/
|
|
412
|
+
mode: DataSelectionMode;
|
|
413
|
+
/**
|
|
414
|
+
* List of table fields to show in the table.
|
|
415
|
+
*/
|
|
416
|
+
fields: string[];
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Represents the geo transformation in the settings.
|
|
420
|
+
*/
|
|
421
|
+
export interface GeoTransformation {
|
|
422
|
+
/**
|
|
423
|
+
* WKID.
|
|
424
|
+
*/
|
|
425
|
+
wkid: number;
|
|
426
|
+
/**
|
|
427
|
+
* Name.
|
|
428
|
+
*/
|
|
429
|
+
name: string;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Represents the dynamic element type.
|
|
433
|
+
*/
|
|
434
|
+
export type DynamicElementType = "string" | "image";
|
|
435
|
+
/**
|
|
436
|
+
* Represents a dynamic element. A dynamic element can be a custom text element
|
|
437
|
+
* (type: string) or a custom image element (type: image).
|
|
438
|
+
*/
|
|
439
|
+
export interface DynamicElement {
|
|
440
|
+
/**
|
|
441
|
+
* Type.
|
|
442
|
+
*/
|
|
443
|
+
type: DynamicElementType;
|
|
444
|
+
/**
|
|
445
|
+
* Name.
|
|
446
|
+
*/
|
|
447
|
+
name: string;
|
|
448
|
+
/**
|
|
449
|
+
* Value.
|
|
450
|
+
*/
|
|
451
|
+
value: string;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Represents the default page settings. The properties match the index info
|
|
455
|
+
* page properties as received by the VertiGIS Printing Engine as response of an
|
|
456
|
+
* 'Get Index Info Task'.
|
|
457
|
+
*/
|
|
458
|
+
export interface Page {
|
|
459
|
+
/**
|
|
460
|
+
* Page scale.
|
|
461
|
+
*/
|
|
462
|
+
scale: number;
|
|
463
|
+
/**
|
|
464
|
+
* Page rotation.
|
|
465
|
+
*/
|
|
466
|
+
rotation?: number;
|
|
467
|
+
/**
|
|
468
|
+
* Page centerpoint x-coordinate.
|
|
469
|
+
*/
|
|
470
|
+
centerX?: number;
|
|
471
|
+
/**
|
|
472
|
+
* Page centerpoint y-coordinate.
|
|
473
|
+
*/
|
|
474
|
+
centerY?: number;
|
|
475
|
+
/**
|
|
476
|
+
* Projected page geometry. An array of geometry points according to the
|
|
477
|
+
* ESRI specification.
|
|
478
|
+
*/
|
|
479
|
+
geometry?: number[][];
|
|
480
|
+
/**
|
|
481
|
+
* Spatial reference of the projected page geometry.
|
|
482
|
+
*/
|
|
483
|
+
spatialReference?: PrintSpatialReference;
|
|
484
|
+
/**
|
|
485
|
+
* Output spatial reference of the projected page geometry for export.
|
|
486
|
+
*/
|
|
487
|
+
spatialReferenceOut?: PrintSpatialReference;
|
|
488
|
+
/**
|
|
489
|
+
* Transformation name for projecting the page geometry between the
|
|
490
|
+
* projected page geometry spatial reference and the output spatial
|
|
491
|
+
* reference.
|
|
492
|
+
*/
|
|
493
|
+
transformationName?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Transformation WKT string for projecting the page geometry between the
|
|
496
|
+
* projected page geometry spatial reference and the output spatial
|
|
497
|
+
* reference.
|
|
498
|
+
*/
|
|
499
|
+
transformationString?: string;
|
|
500
|
+
/**
|
|
501
|
+
* Dynamic elements of the default page additionally to the dynamic text
|
|
502
|
+
* elements in exportWebMap:layoutOptions:customTextElement and the dynamic
|
|
503
|
+
* elements in additionalSettings. These elements take precedence over the
|
|
504
|
+
* elements in exportWebMap:layoutOptions:customTextElement and the elements
|
|
505
|
+
* in addtional Settings root, if they have the same type and name.
|
|
506
|
+
*/
|
|
507
|
+
dynamicElements?: DynamicElement[];
|
|
508
|
+
/**
|
|
509
|
+
* Layer objects selections of the default Page additionally to the Layer
|
|
510
|
+
* objects selections in additionalSettings.
|
|
511
|
+
*/
|
|
512
|
+
selection?: Selection;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Represents the seamless page settings.
|
|
516
|
+
*/
|
|
517
|
+
export interface PageSeamless {
|
|
518
|
+
/**
|
|
519
|
+
* Page scale.
|
|
520
|
+
*/
|
|
521
|
+
scale: number;
|
|
522
|
+
/**
|
|
523
|
+
* Index line or polygon geometry. An array of geometry points according to
|
|
524
|
+
* the ESRI array specification. Excepted geometries are a polyline with
|
|
525
|
+
* CENTER LEFT and CENTER RIGHT coordinates or a rectangle with BOTTOM LEFT,
|
|
526
|
+
* TOP LEFT, TOP RIGHT, BOTTOM RIGHT coordinates or a complex polygon with
|
|
527
|
+
* arbitrary vertices. A polyline geometry defines the delta, the current
|
|
528
|
+
* template's mapframe width should be updated with. A rectangle or complex
|
|
529
|
+
* polygon geometry defines an arbitrary extent, for the current template's
|
|
530
|
+
* mapframe. For complex polygons the extent is defined by the polygon's
|
|
531
|
+
* bounding box. For complex polygons geometry rotation can not be
|
|
532
|
+
* considered.
|
|
533
|
+
*/
|
|
534
|
+
geometry?: number[][];
|
|
535
|
+
/**
|
|
536
|
+
* Spatial reference.
|
|
537
|
+
*/
|
|
538
|
+
spatialReference: PrintSpatialReference;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Represents the cover page settings.
|
|
542
|
+
*/
|
|
543
|
+
export interface PageCover {
|
|
544
|
+
/**
|
|
545
|
+
* Whether the cover page is visible.
|
|
546
|
+
*/
|
|
547
|
+
visible?: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Dynamic elements of the cover page additionally to the dynamic text
|
|
550
|
+
* elements in exportWebMap:layoutOptions:customTextElement and the dynamic
|
|
551
|
+
* elements in additionalSettings. These elements take precedence over the
|
|
552
|
+
* elements in exportWebMap:layoutOptions:customTextElement and the elements
|
|
553
|
+
* in addtional settings root, if they have the same type and name.
|
|
554
|
+
*/
|
|
555
|
+
dynamicElements?: DynamicElement[];
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Represents the overview page settings.
|
|
559
|
+
*/
|
|
560
|
+
export interface PageOverview {
|
|
561
|
+
/**
|
|
562
|
+
* Whether the overview page is visible.
|
|
563
|
+
*/
|
|
564
|
+
visible?: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Dynamic elements of the overview page additionally to the dynamic text
|
|
567
|
+
* elements in exportWebMap:layoutOptions:customTextElement and the dynamic
|
|
568
|
+
* elements in additionalSettings. These elements take precedence over the
|
|
569
|
+
* elements in exportWebMap:layoutOptions:customTextElement and the elements
|
|
570
|
+
* in addtional settings root, if they have the same type and name.
|
|
571
|
+
*/
|
|
572
|
+
dynamicElements?: DynamicElement[];
|
|
573
|
+
/**
|
|
574
|
+
* Page graphics settings.
|
|
575
|
+
*/
|
|
576
|
+
pageGraphics?: {
|
|
577
|
+
/**
|
|
578
|
+
* Whether the page graphics are visible.
|
|
579
|
+
*/
|
|
580
|
+
visible?: boolean;
|
|
581
|
+
/**
|
|
582
|
+
* Page stroke RGB color according to the ESRI RGB color specification.
|
|
583
|
+
*/
|
|
584
|
+
colorStroke: number[];
|
|
585
|
+
/**
|
|
586
|
+
* Page fill RGB color according to the ESRI RGB color specification.
|
|
587
|
+
*/
|
|
588
|
+
colorFill: number[];
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* Page overlap graphics settings.
|
|
592
|
+
*/
|
|
593
|
+
pageGraphicsOverlap?: {
|
|
594
|
+
/**
|
|
595
|
+
* Whether the page overlap fill graphics are visible.
|
|
596
|
+
*/
|
|
597
|
+
visibleFill?: boolean;
|
|
598
|
+
/**
|
|
599
|
+
* Page overlap fill RGB Color according to the ESRI RGB color
|
|
600
|
+
* specification.
|
|
601
|
+
*/
|
|
602
|
+
colorFill?: number[];
|
|
603
|
+
};
|
|
604
|
+
/**
|
|
605
|
+
* Page graphics index settings.
|
|
606
|
+
*/
|
|
607
|
+
pageGraphicsIndex?: {
|
|
608
|
+
/**
|
|
609
|
+
* Whether the index line graphics is visible.
|
|
610
|
+
*/
|
|
611
|
+
visibleStroke?: boolean;
|
|
612
|
+
/**
|
|
613
|
+
* Whether the page number annotations are visible.
|
|
614
|
+
*/
|
|
615
|
+
visibleAnnotation?: boolean;
|
|
616
|
+
/**
|
|
617
|
+
* Index line stroke RGB color according to the ESRI RGB color
|
|
618
|
+
* specification.
|
|
619
|
+
*/
|
|
620
|
+
colorStroke?: number[];
|
|
621
|
+
/**
|
|
622
|
+
* Page number annotations RGB color according to the ESRI RGB color
|
|
623
|
+
* specification.
|
|
624
|
+
*/
|
|
625
|
+
colorAnnotation?: number[];
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Represents the legend page settings.
|
|
630
|
+
*/
|
|
631
|
+
export interface PageLegend {
|
|
632
|
+
/**
|
|
633
|
+
* Whether the legend page is visible.
|
|
634
|
+
*/
|
|
635
|
+
visible?: boolean;
|
|
636
|
+
/**
|
|
637
|
+
* Dynamic elements of the legend page additionally to the dynamic text
|
|
638
|
+
* elements in exportWebMap:layoutOptions:customTextElement and the dynamic
|
|
639
|
+
* elements in additionalSettings. These elements take precedence over the
|
|
640
|
+
* elements in exportWebMap:layoutOptions:customTextElement and the elements
|
|
641
|
+
* in addtional settings root, if they have the same type and name.
|
|
642
|
+
*/
|
|
643
|
+
dynamicElements?: DynamicElement[];
|
|
644
|
+
/**
|
|
645
|
+
* Whether the legend items of dynamic layers, organized in composite layers
|
|
646
|
+
* on root level, should be exported in seperate legend pages. Legend items
|
|
647
|
+
* are seperated if this value is set to 'true'. This might result in
|
|
648
|
+
* additional legend page exports.
|
|
649
|
+
*/
|
|
650
|
+
layerCompositeExport?: boolean;
|
|
651
|
+
/**
|
|
652
|
+
* Whether the legend items of visible layers should only be exported if
|
|
653
|
+
* related features are visible in the print extent. If not defined, the
|
|
654
|
+
* value from the layout's default legend item (ArcGIS Pro: 'Only show
|
|
655
|
+
* feature visible in the map extent') is used.
|
|
656
|
+
*/
|
|
657
|
+
itemsAutoVisibility?: boolean;
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Represents the additional settings.
|
|
661
|
+
*/
|
|
662
|
+
export interface AdditionalSettings {
|
|
663
|
+
/**
|
|
664
|
+
* Authentication for layout or layout package portal item access.
|
|
665
|
+
*/
|
|
666
|
+
authentication?: PortalAuthentication;
|
|
667
|
+
/**
|
|
668
|
+
* Security settings.
|
|
669
|
+
*/
|
|
670
|
+
security?: {
|
|
671
|
+
/**
|
|
672
|
+
* AES-128 encrypted password to secure resulting PDF documents. Clients
|
|
673
|
+
* must use shared AES crypto key for password encryption.
|
|
674
|
+
*/
|
|
675
|
+
outputPassword: string;
|
|
676
|
+
};
|
|
677
|
+
/**
|
|
678
|
+
* Default seamless page settings for prints with layout or layout packages.
|
|
679
|
+
* Mandatory for a seamless page print.
|
|
680
|
+
*/
|
|
681
|
+
seamless?: PageSeamless;
|
|
682
|
+
/**
|
|
683
|
+
* Default series pages settings for prints with layout or layout packages.
|
|
684
|
+
* Mandatory for unprojected or projected spatial series pages prints.
|
|
685
|
+
*/
|
|
686
|
+
pages?: Page[];
|
|
687
|
+
/**
|
|
688
|
+
* Cover page settings for prints with layout packages.
|
|
689
|
+
*/
|
|
690
|
+
pageCover?: PageCover;
|
|
691
|
+
/**
|
|
692
|
+
* Overview page settings for prints with layout packages.
|
|
693
|
+
*/
|
|
694
|
+
pageOverview?: PageOverview;
|
|
695
|
+
/**
|
|
696
|
+
* Legend page settings for prints with layout packages.
|
|
697
|
+
*/
|
|
698
|
+
pageLegend?: PageLegend;
|
|
699
|
+
/**
|
|
700
|
+
* Layer objects selections.
|
|
701
|
+
*/
|
|
702
|
+
selection?: Selection;
|
|
703
|
+
/**
|
|
704
|
+
* Series time settings for time-aware layers.
|
|
705
|
+
*/
|
|
706
|
+
timeSeries?: TimeSeries;
|
|
707
|
+
/**
|
|
708
|
+
* Series range settings for range/z-aware layers.
|
|
709
|
+
*/
|
|
710
|
+
rangeSeries?: RangeSeries;
|
|
711
|
+
/**
|
|
712
|
+
* Attribute tables settings.
|
|
713
|
+
*/
|
|
714
|
+
attributeTables?: AttributeTable[];
|
|
715
|
+
/**
|
|
716
|
+
* Geo transformations for prints with layout or layout packages. Geo
|
|
717
|
+
* transformations used for maps to avoid spatial displacement between
|
|
718
|
+
* operational layers and basemap layers if they have incompatible
|
|
719
|
+
* underlying geographic coordinate systems. These geo transformations are
|
|
720
|
+
* added to all maps in the request. They are ignored if no geo
|
|
721
|
+
* transformation is necessary. Also see:
|
|
722
|
+
* https://developers.arcgis.com/rest/services-reference/enterprise/pdf/gtf_pdf_11.1.pdf.
|
|
723
|
+
*/
|
|
724
|
+
geoTransforms?: GeoTransformation[];
|
|
725
|
+
/**
|
|
726
|
+
* Dynamic elements additionally to the dynamic text elements in the
|
|
727
|
+
* ExportWebMap:LayoutOptions:customTextElement. These elements take
|
|
728
|
+
* precedence over the elements in
|
|
729
|
+
* ExportWebMap:LayoutOptions:customTextElement, if they have the same type
|
|
730
|
+
* and name.
|
|
731
|
+
*/
|
|
732
|
+
dynamicElements?: DynamicElement[];
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* Prepared print job arguments (printing gen2).
|
|
736
|
+
*/
|
|
737
|
+
export interface PreparedPrintJobArgs {
|
|
738
|
+
/**
|
|
739
|
+
* Export web map.
|
|
740
|
+
*/
|
|
741
|
+
webMap?: ExportWebMap;
|
|
742
|
+
/**
|
|
743
|
+
* Additional settings.
|
|
744
|
+
*/
|
|
745
|
+
additionalSettings?: AdditionalSettings;
|
|
746
|
+
/**
|
|
747
|
+
* Additional export web maps.
|
|
748
|
+
*/
|
|
749
|
+
additionalWebMaps?: AdditionalExportWebMap[];
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* The arguments required by the printing.run command when printing with
|
|
753
|
+
* VertiGIS Studio ArcGIS Pro layouts or -layout packages (printing gen2).
|
|
21
754
|
*/
|
|
22
755
|
export interface RunLayoutPrintArgs extends RunPrintArgsBase {
|
|
23
756
|
/**
|
|
@@ -25,13 +758,13 @@ export interface RunLayoutPrintArgs extends RunPrintArgsBase {
|
|
|
25
758
|
*/
|
|
26
759
|
layoutId: string;
|
|
27
760
|
/**
|
|
28
|
-
* The
|
|
761
|
+
* The print output format.
|
|
29
762
|
*/
|
|
30
|
-
|
|
763
|
+
outputFormat?: PrintOutputFormat;
|
|
31
764
|
}
|
|
32
765
|
/**
|
|
33
766
|
* The arguments required by the printing.run command when printing with
|
|
34
|
-
* templates.
|
|
767
|
+
* templates (printing gen1).
|
|
35
768
|
*/
|
|
36
769
|
export interface RunPrintArgs extends RunPrintArgsBase {
|
|
37
770
|
/**
|
|
@@ -148,6 +881,10 @@ export interface PrintPreparingEventArgs extends PrintEventArgsBase {
|
|
|
148
881
|
* Arguments for the printing.print-prepared event.
|
|
149
882
|
*/
|
|
150
883
|
export interface PrintPreparedEventArgs extends PrintEventArgsBase {
|
|
884
|
+
/**
|
|
885
|
+
* The print job arguments.
|
|
886
|
+
*/
|
|
887
|
+
printJobArgs?: PreparedPrintJobArgs;
|
|
151
888
|
}
|
|
152
889
|
/**
|
|
153
890
|
* Arguments for the printing.print-started event.
|