@vertigis/viewer-spec 61.0.0 → 61.1.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 @@ import type Viewpoint from "@arcgis/core/Viewpoint";
2
2
  import type Extent from "@arcgis/core/geometry/Extent";
3
3
  import type Point from "@arcgis/core/geometry/Point.js";
4
4
  import type SpatialReference from "@arcgis/core/geometry/SpatialReference";
5
+ import type { Feature } from "@vertigis/arcgis-extensions/data/Feature.js";
5
6
  import type { BasemapJson } from "@vertigis/arcgis-extensions/json/BasemapJson.js";
6
7
  import type { OperationalLayerJson } from "@vertigis/arcgis-extensions/json/OperationalLayerJson.js";
7
8
  import type { PortalItemLike } from "@vertigis/arcgis-extensions/utilities/portal";
@@ -11,7 +12,7 @@ import type { Event } from "../Event.js";
11
12
  import { EventRegistry } from "../EventRegistry.js";
12
13
  import type { Operation } from "../Operation.js";
13
14
  import { OperationRegistry } from "../OperationRegistry.js";
14
- import type { MapsLike } from "../common.js";
15
+ import type { FeaturesLike, MapsLike } from "../common.js";
15
16
  /**
16
17
  * A set of parameters used to run a job.
17
18
  */
@@ -548,10 +549,10 @@ export interface Page {
548
549
  */
549
550
  dynamicElements?: DynamicElement[];
550
551
  /**
551
- * Layer objects selections of the default Page additionally to the Layer
552
+ * Layer objects selections of the default Page. Overwrites the Layer
552
553
  * objects selections in additionalSettings.
553
554
  */
554
- selection?: Selection;
555
+ selection?: Selection[];
555
556
  }
556
557
  /**
557
558
  * Represents the seamless page settings.
@@ -745,7 +746,7 @@ export interface AdditionalSettings {
745
746
  /**
746
747
  * Layer objects selections.
747
748
  */
748
- selection?: Selection;
749
+ selection?: Selection[];
749
750
  /**
750
751
  * Series time settings for time-aware layers.
751
752
  */
@@ -777,6 +778,15 @@ export interface AdditionalSettings {
777
778
  */
778
779
  dynamicElements?: DynamicElement[];
779
780
  }
781
+ /**
782
+ * Arguments for the printing.print-features command.
783
+ */
784
+ export interface PrintFeaturesArgs {
785
+ /**
786
+ * The feature(s) to print.
787
+ */
788
+ features: FeaturesLike;
789
+ }
780
790
  /**
781
791
  * Print job arguments (printing gen2).
782
792
  */
@@ -960,6 +970,15 @@ export interface PrintFinishedEventArgs extends PrintEventArgsBase {
960
970
  */
961
971
  export interface PrintProgressEventArgs extends PrintEventArgsBase {
962
972
  }
973
+ /**
974
+ * Arguments for the printing.print-features-prepared event.
975
+ */
976
+ export interface PrintFeaturesPreparedEventArgs {
977
+ /**
978
+ * Features containing geometries to print. Web only.
979
+ */
980
+ features: Feature[];
981
+ }
963
982
  /**
964
983
  * Arguments for the printing.print-preparing event.
965
984
  */
@@ -1002,6 +1021,13 @@ export declare class PrintCommands extends CommandRegistry {
1002
1021
  * Run a print job with a given map and template/layout.
1003
1022
  */
1004
1023
  get run(): Command<RunPrintArgs | RunLayoutPrintArgs>;
1024
+ /**
1025
+ * Opens the print component with the option to print specified features.
1026
+ * Web only.
1027
+ *
1028
+ * @webOnly
1029
+ */
1030
+ get printFeatures(): Command<PrintFeaturesArgs>;
1005
1031
  }
1006
1032
  export declare class PrintOperations extends OperationRegistry {
1007
1033
  protected readonly _prefix = "printing";
@@ -1015,6 +1041,12 @@ export declare class PrintOperations extends OperationRegistry {
1015
1041
  }
1016
1042
  export declare class PrintEvents extends EventRegistry {
1017
1043
  protected readonly _prefix = "printing";
1044
+ /**
1045
+ * Raised when features are prepared for prints.
1046
+ *
1047
+ * @webOnly
1048
+ */
1049
+ get printFeaturesPrepared(): Event<PrintFeaturesPreparedEventArgs>;
1018
1050
  /**
1019
1051
  * Raised before a print gets prepared.
1020
1052
  *
@@ -1 +1 @@
1
- import{CommandRegistry as r}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as e}from"../OperationRegistry.js";export const printOutputFormats=["AIX","BMP","EMF","EPS","GIF","JPG","PDF","PNG","PNG32","SVG","SVGZ","TGA","TIFF"];export class PrintCommands extends r{_prefix="printing";get run(){return this._get("run")}}export class PrintOperations extends e{_prefix="printing";get updateArgs(){return this._get("update-args")}}export class PrintEvents extends t{_prefix="printing";get printPreparing(){return this._get("print-preparing")}get printPrepared(){return this._get("print-prepared")}get printStarted(){return this._get("print-started")}get printProgress(){return this._get("print-progress")}get printFinished(){return this._get("print-finished")}get printError(){return this._get("print-error")}}
1
+ import{CommandRegistry as r}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as e}from"../OperationRegistry.js";export const printOutputFormats=["AIX","BMP","EMF","EPS","GIF","JPG","PDF","PNG","PNG32","SVG","SVGZ","TGA","TIFF"];export class PrintCommands extends r{_prefix="printing";get run(){return this._get("run")}get printFeatures(){return this._get("print-features")}}export class PrintOperations extends e{_prefix="printing";get updateArgs(){return this._get("update-args")}}export class PrintEvents extends t{_prefix="printing";get printFeaturesPrepared(){return this._get("print-features-prepared")}get printPreparing(){return this._get("print-preparing")}get printPrepared(){return this._get("print-prepared")}get printStarted(){return this._get("print-started")}get printProgress(){return this._get("print-progress")}get printFinished(){return this._get("print-finished")}get printError(){return this._get("print-error")}}
@@ -2511,8 +2511,11 @@
2511
2511
  "description": "Security settings."
2512
2512
  },
2513
2513
  "selection": {
2514
- "$ref": "#/definitions/Selection",
2515
- "description": "Layer objects selections."
2514
+ "description": "Layer objects selections.",
2515
+ "items": {
2516
+ "$ref": "#/definitions/Selection"
2517
+ },
2518
+ "type": "array"
2516
2519
  },
2517
2520
  "timeSeries": {
2518
2521
  "$ref": "TimeSeries",
@@ -8389,6 +8392,20 @@
8389
8392
  ],
8390
8393
  "type": "object"
8391
8394
  },
8395
+ "PrintFeaturesArgs": {
8396
+ "additionalProperties": false,
8397
+ "description": "Arguments for the printing.print-features command.",
8398
+ "properties": {
8399
+ "features": {
8400
+ "$ref": "#/definitions/FeaturesLike",
8401
+ "description": "The feature(s) to print."
8402
+ }
8403
+ },
8404
+ "required": [
8405
+ "features"
8406
+ ],
8407
+ "type": "object"
8408
+ },
8392
8409
  "PrintJobArgs": {
8393
8410
  "additionalProperties": false,
8394
8411
  "description": "Print job arguments (printing gen2).",
@@ -26755,6 +26772,15 @@
26755
26772
  "portal.create-or-update-item:output": {
26756
26773
  "$ref": "#/definitions/@arcgis.core.portal.PortalItem.PortalItem"
26757
26774
  },
26775
+ "printing.print-features": {
26776
+ "description": "Opens the print component with the option to print specified features. Web only.",
26777
+ "enum": [
26778
+ "printing.print-features"
26779
+ ]
26780
+ },
26781
+ "printing.print-features:input": {
26782
+ "$ref": "#/definitions/PrintFeaturesArgs"
26783
+ },
26758
26784
  "printing.run": {
26759
26785
  "description": "Run a print job with a given map and template/layout.",
26760
26786
  "enum": [
@@ -30357,6 +30383,22 @@
30357
30383
  ],
30358
30384
  "type": "object"
30359
30385
  },
30386
+ {
30387
+ "additionalProperties": false,
30388
+ "properties": {
30389
+ "arguments": {
30390
+ "$ref": "#/definitions/printing.print-features:input"
30391
+ },
30392
+ "name": {
30393
+ "$ref": "#/definitions/printing.print-features"
30394
+ }
30395
+ },
30396
+ "required": [
30397
+ "name",
30398
+ "arguments"
30399
+ ],
30400
+ "type": "object"
30401
+ },
30360
30402
  {
30361
30403
  "additionalProperties": false,
30362
30404
  "properties": {
@@ -31633,6 +31675,9 @@
31633
31675
  {
31634
31676
  "$ref": "#/definitions/panel.pop-out"
31635
31677
  },
31678
+ {
31679
+ "$ref": "#/definitions/printing.print-features"
31680
+ },
31636
31681
  {
31637
31682
  "$ref": "#/definitions/printing.run"
31638
31683
  },
@@ -1996,8 +1996,11 @@
1996
1996
  "description": "Security settings."
1997
1997
  },
1998
1998
  "selection": {
1999
- "$ref": "#/definitions/Selection",
2000
- "description": "Layer objects selections."
1999
+ "description": "Layer objects selections.",
2000
+ "items": {
2001
+ "$ref": "#/definitions/Selection"
2002
+ },
2003
+ "type": "array"
2001
2004
  },
2002
2005
  "timeSeries": {
2003
2006
  "$ref": "TimeSeries",
@@ -3702,6 +3705,23 @@
3702
3705
  ],
3703
3706
  "type": "object"
3704
3707
  },
3708
+ "PrintFeaturesPreparedEventArgs": {
3709
+ "additionalProperties": false,
3710
+ "description": "Arguments for the printing.print-features-prepared event.",
3711
+ "properties": {
3712
+ "features": {
3713
+ "description": "Features containing geometries to print. Web only.",
3714
+ "items": {
3715
+ "$ref": "T_13"
3716
+ },
3717
+ "type": "array"
3718
+ }
3719
+ },
3720
+ "required": [
3721
+ "features"
3722
+ ],
3723
+ "type": "object"
3724
+ },
3705
3725
  "PrintFinishedEventArgs": {
3706
3726
  "additionalProperties": false,
3707
3727
  "description": "Arguments for the printing.print-finished event.",
@@ -16070,6 +16090,15 @@
16070
16090
  "printing.print-error:input": {
16071
16091
  "$ref": "#/definitions/PrintErrorEventArgs"
16072
16092
  },
16093
+ "printing.print-features-prepared": {
16094
+ "description": "Raised when features are prepared for prints.",
16095
+ "enum": [
16096
+ "printing.print-features-prepared"
16097
+ ]
16098
+ },
16099
+ "printing.print-features-prepared:input": {
16100
+ "$ref": "#/definitions/PrintFeaturesPreparedEventArgs"
16101
+ },
16073
16102
  "printing.print-finished": {
16074
16103
  "description": "Raised when a print has finished running. Event arguments include the print download URL.",
16075
16104
  "enum": [
@@ -16429,6 +16458,9 @@
16429
16458
  {
16430
16459
  "$ref": "#/definitions/printing.print-error"
16431
16460
  },
16461
+ {
16462
+ "$ref": "#/definitions/printing.print-features-prepared"
16463
+ },
16432
16464
  {
16433
16465
  "$ref": "#/definitions/printing.print-finished"
16434
16466
  },
@@ -1,3 +1,19 @@
1
+ # command: printing.print-features
2
+ Description: Opens the print component with the option to print specified features. Web only.
3
+
4
+ Inputs: `PrintFeaturesArgs`
5
+
6
+ PrintFeaturesArgs properties:
7
+ ```json
8
+ {
9
+ "features": {
10
+ "description": "The feature(s) to print.",
11
+ "isRequired": "true"
12
+ }
13
+ }
14
+ ```
15
+
16
+ ---
1
17
  # command: printing.run
2
18
  Description: Run a print job with a given map and template/layout.
3
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "61.0.0",
3
+ "version": "61.1.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 = "61.0.0";
4
+ export declare const version = "61.1.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 = "61.0.0";
4
+ export const version = "61.1.1";