zakeke-configurator-react 0.0.85 → 0.0.86
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/index.js +30 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29866,6 +29866,24 @@ class SceneViewer {
|
|
|
29866
29866
|
this._infoPointsManagerStyle = null;
|
|
29867
29867
|
this._canShowInfoPoints = true;
|
|
29868
29868
|
this._canShowInfoPointsContent = true;
|
|
29869
|
+
this.setCameraLocked = (isBlocked) => {
|
|
29870
|
+
if (this._zkScene && this._sceneHelper && this._scene) {
|
|
29871
|
+
this._sceneHelper.setupCamera();
|
|
29872
|
+
this._camera = this._scene.activeCamera;
|
|
29873
|
+
if (this._camera) {
|
|
29874
|
+
if (isBlocked) {
|
|
29875
|
+
this._sceneHelper.setCameraLimitLowerRadius(true);
|
|
29876
|
+
this._sceneHelper.setMinZoomPerc(1);
|
|
29877
|
+
this._sceneHelper.setMaxZoomPerc(1);
|
|
29878
|
+
}
|
|
29879
|
+
else {
|
|
29880
|
+
this._sceneHelper.setCameraLimitLowerRadius(false);
|
|
29881
|
+
this._sceneHelper.setMinZoomPerc(1);
|
|
29882
|
+
this._sceneHelper.setMaxZoomPerc(1.5);
|
|
29883
|
+
}
|
|
29884
|
+
}
|
|
29885
|
+
}
|
|
29886
|
+
};
|
|
29869
29887
|
if (options != undefined) {
|
|
29870
29888
|
if (typeof options == "boolean")
|
|
29871
29889
|
this._configPreview = options;
|
|
@@ -49746,6 +49764,16 @@ class ZakekeEnvironment {
|
|
|
49746
49764
|
if (this.viewer)
|
|
49747
49765
|
this.viewer.clearListeners();
|
|
49748
49766
|
};
|
|
49767
|
+
this.setCameraLocked = (isBlocked) => {
|
|
49768
|
+
return this.viewer.setCameraLocked(isBlocked);
|
|
49769
|
+
};
|
|
49770
|
+
this.isSceneTryOnEnabled = () => {
|
|
49771
|
+
var _a;
|
|
49772
|
+
if (this.viewer)
|
|
49773
|
+
if (this.zkScene)
|
|
49774
|
+
return (_a = this.zkScene.getTryOnEnabled()) !== null && _a !== void 0 ? _a : false;
|
|
49775
|
+
return false;
|
|
49776
|
+
};
|
|
49749
49777
|
this.getTryOnUrl = () => {
|
|
49750
49778
|
return new Promise(resolve => {
|
|
49751
49779
|
if (this.zkScene && this.viewer) {
|
|
@@ -49772,13 +49800,6 @@ class ZakekeEnvironment {
|
|
|
49772
49800
|
}
|
|
49773
49801
|
});
|
|
49774
49802
|
};
|
|
49775
|
-
this.isSceneTryOnEnabled = () => {
|
|
49776
|
-
var _a;
|
|
49777
|
-
if (this.viewer)
|
|
49778
|
-
if (this.zkScene)
|
|
49779
|
-
return (_a = this.zkScene.getTryOnEnabled()) !== null && _a !== void 0 ? _a : false;
|
|
49780
|
-
return false;
|
|
49781
|
-
};
|
|
49782
49803
|
}
|
|
49783
49804
|
get internalProduct() {
|
|
49784
49805
|
return this.zkProduct;
|
|
@@ -51305,7 +51326,8 @@ const createProviderValue = (state, dispatch) => {
|
|
|
51305
51326
|
setBackgroundColor: state.environment.setBackgroundColor.bind(state.environment),
|
|
51306
51327
|
// TRY ON
|
|
51307
51328
|
getTryOnUrl: state.environment.getTryOnUrl.bind(state.environment),
|
|
51308
|
-
isSceneTryOnEnabled: state.environment.isSceneTryOnEnabled.bind(state.environment)
|
|
51329
|
+
isSceneTryOnEnabled: state.environment.isSceneTryOnEnabled.bind(state.environment),
|
|
51330
|
+
setCameraLocked: state.environment.setCameraLocked.bind(state.environment)
|
|
51309
51331
|
};
|
|
51310
51332
|
};
|
|
51311
51333
|
|