@threekit-tools/treble 0.0.47 → 0.0.48
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.
- package/dist/store/threekit.js +3 -0
- package/dist/threekit.d.ts +1 -1
- package/package.json +1 -1
package/dist/store/threekit.js
CHANGED
|
@@ -359,6 +359,9 @@ var launch = function (launchConfig) {
|
|
|
359
359
|
_b.threekit = (_c.configurator = _j.sent(),
|
|
360
360
|
_c.treble = new Treble_1.default({ player: player }),
|
|
361
361
|
_c);
|
|
362
|
+
window.threekit.player.on('setConfiguration', function () {
|
|
363
|
+
dispatch(setAttributes(window.threekit.configurator.getDisplayAttributes()));
|
|
364
|
+
});
|
|
362
365
|
if (launchConfig === null || launchConfig === void 0 ? void 0 : launchConfig.locale) {
|
|
363
366
|
dispatch(setLanguage(launchConfig.locale));
|
|
364
367
|
dispatch(setTranslations(translations));
|
package/dist/threekit.d.ts
CHANGED
|
@@ -187,7 +187,7 @@ export interface IThreekitPlayer {
|
|
|
187
187
|
tools: IThreekitTools;
|
|
188
188
|
camera: IThreekitCamera;
|
|
189
189
|
setActiveCamera: () => void;
|
|
190
|
-
on: (phase: SCENE_PHASES) => void;
|
|
190
|
+
on: (phase: SCENE_PHASES | string, callback: (args: any) => void) => void;
|
|
191
191
|
getConfigurator: () => Promise<IThreekitConfigurator>;
|
|
192
192
|
enableApi: (api: PRIVATE_APIS) => any;
|
|
193
193
|
snapshotAsync: (snapshotConfig: ISnapshotConfig) => Promise<string>;
|