@preference-sl/pref-viewer 2.16.0-beta.1 → 2.16.0-beta.11

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,7 +2,7 @@
2
2
  * PrefViewerTask - Represents a single task or operation to be processed by the PrefViewer.
3
3
  *
4
4
  * Responsibilities:
5
- * - Encapsulates the payload and type of a viewer task (e.g., loading a model, updating materials).
5
+ * - Encapsulates the payload and type of a viewer task (e.g., loading a model, updating materials, applying styles).
6
6
  * - Validates the task type against a predefined set of allowed types.
7
7
  * - Provides an immutable instance to ensure task integrity.
8
8
  *
@@ -12,13 +12,17 @@
12
12
  * - Access the payload via the `value` property and the normalized type via the `type` property.
13
13
  *
14
14
  * Static Properties:
15
- * - Types: An object containing all allowed task types as string constants.
15
+ * - Types: An object containing all allowed task types as string constants, including `Styles` for queued runtime style overrides.
16
16
  *
17
17
  * Constructor:
18
18
  * - Validates the type (case-insensitive) and throws a TypeError if invalid.
19
19
  * - Freezes the instance to prevent further modification.
20
20
  */
21
21
  export default class PrefViewerTask {
22
+ /**
23
+ * Allowed task type constants used by the PrefViewer queue.
24
+ * @type {Readonly<{Config: string, Culture: string, Drawing: string, Environment: string, Materials: string, Model: string, Options: string, Styles: string, Visibility: string}>}
25
+ */
22
26
  static Types = Object.freeze({
23
27
  Config: "config",
24
28
  Culture: "culture",
@@ -27,6 +31,7 @@ export default class PrefViewerTask {
27
31
  Materials: "materials",
28
32
  Model: "model",
29
33
  Options: "options",
34
+ Styles: "styles",
30
35
  Visibility: "visibility",
31
36
  });
32
37