@vertigis/viewer-spec 60.5.1 → 60.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.
@@ -7,12 +7,30 @@ export declare class SettingsEvents extends EventRegistry {
7
7
  *
8
8
  * @mobileOnly
9
9
  */
10
- get updated(): Event;
10
+ get updated(): Event<SettingsInfo>;
11
+ /**
12
+ * Raised when application settings have been loaded, e.g. on app launch.
13
+ * Mobile only.
14
+ *
15
+ * @mobileOnly
16
+ */
17
+ get loaded(): Event<SettingsInfo>;
18
+ /**
19
+ * Raised when application settings have been unloaded, e.g. when returning
20
+ * to the app selector in Go.
21
+ *
22
+ * @mobileOnly
23
+ */
24
+ get unloaded(): Event;
11
25
  }
12
26
  /**
13
27
  * The current settings.
14
28
  */
15
29
  export interface SettingsInfo {
30
+ /**
31
+ * The configured measurement system to use within the app.
32
+ */
33
+ configuredMeasurementSystem: ConfiguredMeasurementSystem;
16
34
  /**
17
35
  * Indicates if layer visibilities are remembered and restored upon app
18
36
  * startup.
@@ -36,3 +54,8 @@ export interface SettingsInfo {
36
54
  * The approximate size / resolution that photos should be resized to.
37
55
  */
38
56
  export type PhotoResizeOption = "Original" | "Large" | "Medium" | "Small";
57
+ /**
58
+ * The measurement system units configured for an app. Default uses the device's
59
+ * default units.
60
+ */
61
+ export type ConfiguredMeasurementSystem = "Default" | "Metric" | "USCustomary";
@@ -1 +1 @@
1
- import{EventRegistry as t}from"../EventRegistry.js";export class SettingsEvents extends t{_prefix="settings";get updated(){return this._get("updated")}}
1
+ import{EventRegistry as e}from"../EventRegistry.js";export class SettingsEvents extends e{_prefix="settings";get updated(){return this._get("updated")}get loaded(){return this._get("loaded")}get unloaded(){return this._get("unloaded")}}
@@ -716,6 +716,15 @@
716
716
  ],
717
717
  "type": "object"
718
718
  },
719
+ "ConfiguredMeasurementSystem": {
720
+ "description": "The measurement system units configured for an app. Default uses the device's default units.",
721
+ "enum": [
722
+ "Default",
723
+ "Metric",
724
+ "USCustomary"
725
+ ],
726
+ "type": "string"
727
+ },
719
728
  "DataSourceJson": {
720
729
  "anyOf": [
721
730
  {
@@ -1644,6 +1653,16 @@
1644
1653
  ],
1645
1654
  "description": "An operational layer in a web map/scene."
1646
1655
  },
1656
+ "PhotoResizeOption": {
1657
+ "description": "The approximate size / resolution that photos should be resized to.",
1658
+ "enum": [
1659
+ "Large",
1660
+ "Medium",
1661
+ "Original",
1662
+ "Small"
1663
+ ],
1664
+ "type": "string"
1665
+ },
1647
1666
  "PointCloudFilterJson": {
1648
1667
  "anyOf": [
1649
1668
  {
@@ -1946,6 +1965,40 @@
1946
1965
  ],
1947
1966
  "type": "object"
1948
1967
  },
1968
+ "SettingsInfo": {
1969
+ "additionalProperties": false,
1970
+ "description": "The current settings.",
1971
+ "properties": {
1972
+ "activeTheme": {
1973
+ "description": "The user selected theme id.",
1974
+ "type": "string"
1975
+ },
1976
+ "configuredMeasurementSystem": {
1977
+ "$ref": "#/definitions/ConfiguredMeasurementSystem",
1978
+ "description": "The configured measurement system to use within the app."
1979
+ },
1980
+ "photoResize": {
1981
+ "$ref": "#/definitions/PhotoResizeOption",
1982
+ "description": "The size that photos will be resized to when adding as a feature attachment."
1983
+ },
1984
+ "rememberLayerVisibilities": {
1985
+ "description": "Indicates if layer visibilities are remembered and restored upon app startup.",
1986
+ "type": "boolean"
1987
+ },
1988
+ "rememberMapExtent": {
1989
+ "description": "Indicates if the map extent is remembered and restored upon app startup.",
1990
+ "type": "boolean"
1991
+ }
1992
+ },
1993
+ "required": [
1994
+ "activeTheme",
1995
+ "configuredMeasurementSystem",
1996
+ "photoResize",
1997
+ "rememberLayerVisibilities",
1998
+ "rememberMapExtent"
1999
+ ],
2000
+ "type": "object"
2001
+ },
1949
2002
  "ShortcutArgs": {
1950
2003
  "additionalProperties": false,
1951
2004
  "description": "The arguments for keyboard shortcut events.",
@@ -12644,12 +12697,30 @@
12644
12697
  "search.started:input": {
12645
12698
  "$ref": "#/definitions/SearchArgs"
12646
12699
  },
12700
+ "settings.loaded": {
12701
+ "description": "Raised when application settings have been loaded, e.g. on app launch. Mobile only.",
12702
+ "enum": [
12703
+ "settings.loaded"
12704
+ ]
12705
+ },
12706
+ "settings.loaded:input": {
12707
+ "$ref": "#/definitions/SettingsInfo"
12708
+ },
12709
+ "settings.unloaded": {
12710
+ "description": "Raised when application settings have been unloaded, e.g. when returning to the app selector in Go.",
12711
+ "enum": [
12712
+ "settings.unloaded"
12713
+ ]
12714
+ },
12647
12715
  "settings.updated": {
12648
12716
  "description": "Raised when application settings have been updated. Mobile only.",
12649
12717
  "enum": [
12650
12718
  "settings.updated"
12651
12719
  ]
12652
12720
  },
12721
+ "settings.updated:input": {
12722
+ "$ref": "#/definitions/SettingsInfo"
12723
+ },
12653
12724
  "shortcuts.shortcut-added": {
12654
12725
  "description": "Raised when a shortcut was added. Mobile only.",
12655
12726
  "enum": [
@@ -13036,6 +13107,12 @@
13036
13107
  {
13037
13108
  "$ref": "#/definitions/search.started"
13038
13109
  },
13110
+ {
13111
+ "$ref": "#/definitions/settings.loaded"
13112
+ },
13113
+ {
13114
+ "$ref": "#/definitions/settings.unloaded"
13115
+ },
13039
13116
  {
13040
13117
  "$ref": "#/definitions/settings.updated"
13041
13118
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "60.5.1",
3
+ "version": "60.6.0",
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.5.1";
4
+ export declare const version = "60.6.0";
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.5.1";
4
+ export const version = "60.6.0";