@variantic/player 0.0.18 → 0.0.20

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.
@@ -21,6 +21,7 @@ export type TConfigurationApiEvents = TWebComponentEvents<{
21
21
  export type TConfigurationUrl = {
22
22
  id: string;
23
23
  url: string;
24
+ dataUrl: string;
24
25
  configuration: TConfigurationContent;
25
26
  };
26
27
  export type TConfigurationContent = Record<string, unknown>;
@@ -18,6 +18,7 @@ export type TPlayerApi = {
18
18
  * Returns the current site identifier as a string.
19
19
  */
20
20
  getSiteId: () => string;
21
+ isDevelopmentMode: () => boolean;
21
22
  /**
22
23
  * Returns the current library version as a string.
23
24
  */
@@ -70,6 +70,10 @@ export type TViewerApi = {
70
70
  * Assigns the specified material ID to the given group ID.
71
71
  */
72
72
  assignMaterial(groupId: number, materialId: number): Promise<void>;
73
+ /**
74
+ * Assigns the specified material ID to the given group ID.
75
+ */
76
+ assignMaterials(materials: Record<string, number>): Promise<void>;
73
77
  /**
74
78
  * Changes the camera projection type to either orthographic or perspective.
75
79
  */
@@ -130,7 +134,11 @@ export type TViewerApi = {
130
134
  /**
131
135
  * Updates the parameter identified by the code with the specified value.
132
136
  */
133
- changeParameter(code: string, value: string | number): void;
137
+ changeParameter(code: string, value: string | number): Promise<void>;
138
+ /**
139
+ * Updates multiple parameters in a single call.
140
+ */
141
+ changeParameters(parameters: Record<string, string | number>): Promise<void>;
134
142
  /**
135
143
  * Normalizes the given value for a parameter, returning the value and its corresponding label.
136
144
  */
@@ -448,5 +456,6 @@ export type TPreset = {
448
456
  id: string;
449
457
  name: string;
450
458
  configuration: any;
459
+ ignore?: string[];
451
460
  };
452
461
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@variantic/player",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"