zakeke-configurator-react 0.0.183 → 0.0.185
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './components/customizer';
|
|
2
|
-
export * from './components/sceneViewer';
|
|
3
|
-
export * from './environment';
|
|
4
|
-
export * from './hooks/useZakeke';
|
|
5
|
-
export * from './models';
|
|
6
|
-
export * from './state/provider';
|
|
1
|
+
export * from './components/customizer';
|
|
2
|
+
export * from './components/sceneViewer';
|
|
3
|
+
export * from './environment';
|
|
4
|
+
export * from './hooks/useZakeke';
|
|
5
|
+
export * from './models';
|
|
6
|
+
export * from './state/provider';
|
package/dist/index.js
CHANGED
|
@@ -55931,6 +55931,7 @@ var SceneViewer = /*#__PURE__*/function () {
|
|
|
55931
55931
|
_defineProperty(this, "_isHologramSource", false);
|
|
55932
55932
|
_defineProperty(this, "_isHologram", false);
|
|
55933
55933
|
_defineProperty(this, "_lastResizableMeshID", '');
|
|
55934
|
+
_defineProperty(this, "_brandLogoButton", null);
|
|
55934
55935
|
_defineProperty(this, "setCameraLocked", function (isBlocked) {
|
|
55935
55936
|
if (_this2._zkScene && _this2._sceneHelper && _this2._scene) {
|
|
55936
55937
|
_this2._sceneHelper.setupCamera();
|
|
@@ -56485,22 +56486,19 @@ var SceneViewer = /*#__PURE__*/function () {
|
|
|
56485
56486
|
});
|
|
56486
56487
|
}
|
|
56487
56488
|
}, {
|
|
56488
|
-
key: "
|
|
56489
|
-
value: function
|
|
56490
|
-
var
|
|
56491
|
-
var button = BABYLON.GUI.Button.CreateImageOnlyButton("b1", "https://zakeke.blob.core.windows.net/files/images/logo.png");
|
|
56489
|
+
key: "createBrandLogoButton",
|
|
56490
|
+
value: function createBrandLogoButton() {
|
|
56491
|
+
var button = BABYLON.GUI.Button.CreateImageOnlyButton("zakeke-logo", "https://zakeke.blob.core.windows.net/files/images/logo.png");
|
|
56492
56492
|
button.image.stretch = BABYLON.GUI.Image.STRETCH_UNIFORM;
|
|
56493
56493
|
button.width = "65px";
|
|
56494
56494
|
button.height = "25px";
|
|
56495
|
-
button.left = -350;
|
|
56496
|
-
button.top = -300;
|
|
56497
56495
|
button.color = "transparent";
|
|
56498
|
-
button.
|
|
56496
|
+
button.hoverCursor = "pointer";
|
|
56497
|
+
button.onPointerClickObservable.add(function () {
|
|
56499
56498
|
window.open("https://www.zakeke.com/");
|
|
56500
56499
|
});
|
|
56501
|
-
|
|
56502
|
-
|
|
56503
|
-
return this._scene;
|
|
56500
|
+
this._brandLogoButton = button;
|
|
56501
|
+
return this._brandLogoButton;
|
|
56504
56502
|
}
|
|
56505
56503
|
}, {
|
|
56506
56504
|
key: "createEmptySceneAsync",
|
|
@@ -56843,6 +56841,13 @@ var SceneViewer = /*#__PURE__*/function () {
|
|
|
56843
56841
|
if (this._scene) this.adjustCamera(false);
|
|
56844
56842
|
this.setupShaderMaterialsCameraPosition();
|
|
56845
56843
|
}
|
|
56844
|
+
if (this._brandLogoButton) {
|
|
56845
|
+
var _this$_canvas, _this$_canvas2;
|
|
56846
|
+
this._brandLogoButton.left = -((_this$_canvas = this._canvas) === null || _this$_canvas === void 0 ? void 0 : _this$_canvas.width) / 2 + 30 + "px";
|
|
56847
|
+
this._brandLogoButton.top = -((_this$_canvas2 = this._canvas) === null || _this$_canvas2 === void 0 ? void 0 : _this$_canvas2.height) / 2 + 50 + "px";
|
|
56848
|
+
var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");
|
|
56849
|
+
advancedTexture.addControl(this._brandLogoButton);
|
|
56850
|
+
}
|
|
56846
56851
|
this.setRenderingNeeded();
|
|
56847
56852
|
}
|
|
56848
56853
|
|
|
@@ -61477,7 +61482,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
|
|
|
61477
61482
|
_context15.next = 35;
|
|
61478
61483
|
return _this.viewer.loadSceneFromModelAsync(_this.zkProduct, _this.zkScene);
|
|
61479
61484
|
case 35:
|
|
61480
|
-
if (_this.settings.brand) _this.viewer.
|
|
61485
|
+
if (_this.settings.brand) _this.viewer.createBrandLogoButton();
|
|
61481
61486
|
_this.trigger('change');
|
|
61482
61487
|
_context15.next = 39;
|
|
61483
61488
|
return _this.handleSceneLoaded();
|