@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 {};
|