@shopware-ag/dive 1.6.1 → 1.6.3
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/build/dive.cjs +9 -1
- package/build/dive.cjs.map +1 -1
- package/build/dive.d.cts +35 -26
- package/build/dive.d.ts +35 -26
- package/build/dive.js +9 -1
- package/build/dive.js.map +1 -1
- package/package.json +1 -1
- package/src/com/Communication.ts +10 -1
- package/src/com/__test__/Communication.test.ts +1 -2
- package/src/com/actions/index.ts +2 -0
- package/src/com/actions/toolbox/usetool.ts +6 -0
package/build/dive.cjs
CHANGED
|
@@ -718,7 +718,7 @@ var _DIVECommunication = class _DIVECommunication {
|
|
|
718
718
|
}
|
|
719
719
|
get mediaGenerator() {
|
|
720
720
|
if (!this._mediaGenerator) {
|
|
721
|
-
const DIVEMediaCreator2 = (init_MediaCreator(), __toCommonJS(MediaCreator_exports)).
|
|
721
|
+
const DIVEMediaCreator2 = (init_MediaCreator(), __toCommonJS(MediaCreator_exports)).DIVEMediaCreator;
|
|
722
722
|
this._mediaGenerator = new DIVEMediaCreator2(this.renderer, this.scene, this.controller);
|
|
723
723
|
}
|
|
724
724
|
return this._mediaGenerator;
|
|
@@ -812,6 +812,10 @@ var _DIVECommunication = class _DIVECommunication {
|
|
|
812
812
|
returnValue = this.setGizmoVisibility(payload);
|
|
813
813
|
break;
|
|
814
814
|
}
|
|
815
|
+
case "USE_TOOL": {
|
|
816
|
+
returnValue = this.useTool(payload);
|
|
817
|
+
break;
|
|
818
|
+
}
|
|
815
819
|
case "MODEL_LOADED": {
|
|
816
820
|
returnValue = this.modelLoaded(payload);
|
|
817
821
|
break;
|
|
@@ -996,6 +1000,10 @@ var _DIVECommunication = class _DIVECommunication {
|
|
|
996
1000
|
this.toolbox.SetGizmoVisibility(payload);
|
|
997
1001
|
return payload;
|
|
998
1002
|
}
|
|
1003
|
+
useTool(payload) {
|
|
1004
|
+
this.toolbox.UseTool(payload.tool);
|
|
1005
|
+
return true;
|
|
1006
|
+
}
|
|
999
1007
|
modelLoaded(payload) {
|
|
1000
1008
|
this.registered.get(payload.id).loaded = true;
|
|
1001
1009
|
return true;
|