@vertigis/viewer-spec 49.4.0 → 49.5.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.
@@ -1,6 +1,8 @@
1
1
  import type { LayerPreset } from "@vertigis/arcgis-extensions/layer-preset/LayerPreset";
2
2
  import type { Command } from "../Command.js";
3
3
  import { CommandRegistry } from "../CommandRegistry.js";
4
+ import type { Event } from "../Event.js";
5
+ import { EventRegistry } from "../EventRegistry.js";
4
6
  import type { MapsLike } from "../common.js";
5
7
  /**
6
8
  * Arguments for the 'layer-presets.apply' command.
@@ -15,6 +17,15 @@ export interface LayerPresetsArgs {
15
17
  */
16
18
  preset: LayerPreset;
17
19
  }
20
+ /**
21
+ * Arguments for the 'layer-presets.applied' event.
22
+ */
23
+ export interface LayerPresetsEventsArgs {
24
+ /**
25
+ * The applied layer preset.
26
+ */
27
+ preset: LayerPreset;
28
+ }
18
29
  export declare class LayerPresetsCommands extends CommandRegistry {
19
30
  /**
20
31
  * Applies a layer-preset to a map. Applying a layer-preset means that the
@@ -26,3 +37,11 @@ export declare class LayerPresetsCommands extends CommandRegistry {
26
37
  */
27
38
  get apply(): Command<LayerPresetsArgs>;
28
39
  }
40
+ export declare class LayerPresetsEvents extends EventRegistry {
41
+ /**
42
+ * Raised when a layer preset is applied.
43
+ *
44
+ * @mobileOnly
45
+ */
46
+ get applied(): Event<LayerPresetsEventsArgs>;
47
+ }
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";export class LayerPresetsCommands extends CommandRegistry{get apply(){return this._messages.command("layer-presets.apply")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export class LayerPresetsCommands extends CommandRegistry{get apply(){return this._messages.command("layer-presets.apply")}}export class LayerPresetsEvents extends EventRegistry{get applied(){return this._messages.event("layer-presets.applied")}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "49.4.0",
3
+ "version": "49.5.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 Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "49.4.0";
4
+ export declare const version = "49.5.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export const version = "49.4.0";
4
+ export const version = "49.5.0";