@variantic/player 0.0.16 → 0.0.17

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.
@@ -158,6 +158,10 @@ export type TViewerApi = {
158
158
  * Toggles dimension visibility based on the state and optional dimension IDs or presets.
159
159
  */
160
160
  toggleDimensions(state: boolean, dimensions?: number[] | 'default' | 'defaultNotControlledByEvent'): void;
161
+ /**
162
+ * Loads preset with given ID and reloads the viewer
163
+ */
164
+ loadPreset(id: string | TPreset): Promise<void>;
161
165
  };
162
166
  export type TViewerApiEvents = TWebComponentEvents<{
163
167
  loaded: TTimestampEventPayload;
@@ -440,4 +444,9 @@ export type TPricingData = {
440
444
  finalPrice: number;
441
445
  sections: TPricingSection[];
442
446
  };
447
+ export type TPreset = {
448
+ id: string;
449
+ name: string;
450
+ configuration: any;
451
+ };
443
452
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@variantic/player",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"