@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.
@@ -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));
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threekit-tools/treble",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "author": "Amaan Saeed",
5
5
  "license": "MIT",
6
6
  "files": [