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