zakeke-configurator-react 0.1.284-prod → 0.1.286-prod
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 +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67364,7 +67364,7 @@ const _d = class on {
|
|
|
67364
67364
|
setUpCameraByOptions(e) {
|
|
67365
67365
|
if (e && this._scene) {
|
|
67366
67366
|
let t = this._scene.cameras.find((s) => s instanceof BABYLON.ArcRotateCamera);
|
|
67367
|
-
e && t instanceof BABYLON.ArcRotateCamera && (t.beta = e.beta
|
|
67367
|
+
e && t instanceof BABYLON.ArcRotateCamera && (t.beta = e.beta ?? t.beta, t.alpha = e.alpha ?? t.alpha, t.fov = e.fov ?? t.fov);
|
|
67368
67368
|
}
|
|
67369
67369
|
}
|
|
67370
67370
|
setupCamera() {
|
|
@@ -99303,14 +99303,14 @@ class gu {
|
|
|
99303
99303
|
const U = (a = (o = this._zkScene.get("config")) == null ? void 0 : o.get("general")) == null ? void 0 : a.get("meshSize"), ce = (c = this._scene) == null ? void 0 : c.meshes.find((ne) => !ne.parent);
|
|
99304
99304
|
ce && U && (U.width || U.height || U.depth) && (ce.metadata ? ce.metadata.sizecm = U : ce.metadata = { sizecm: U });
|
|
99305
99305
|
}
|
|
99306
|
-
if (this._engine && this._scene) {
|
|
99306
|
+
if (this.refreshModel(), this._engine && this._scene) {
|
|
99307
99307
|
this._sceneHelper = new ni(this._scene);
|
|
99308
99308
|
const U = this._zkScene ? this._zkScene.getCameraPositionScale() : void 0, ce = this._zkScene ? this._zkScene.getCameraLimitLowerRadius() : void 0, ne = this._zkScene ? this._zkScene.getCameraZoomEnabled() : void 0, xe = this._zkScene ? this._zkScene.getCameraUseMinZoomPerc() : !1, se = this._zkScene ? this._zkScene.getCameraMinZoomPerc() : 1, _e = this._zkScene ? this._zkScene.getCameraUseMaxZoomPerc() : !1, ae = this._zkScene ? this._zkScene.getCameraMaxZoomPerc() : 1.5, ye = this._zkScene ? this._zkScene.getCameraLowerAlphaLimit() : null, Ee = this._zkScene ? this._zkScene.getCameraUpperAlphaLimit() : null, K = this._zkScene ? this._zkScene.getCameraLowerBetaLimit() : null, j = this._zkScene ? this._zkScene.getCameraUpperBetaLimit() : null, lt = this._zkScene ? (g = this._zkScene.getCameraConfig()) == null ? void 0 : g.get("zoom") : null;
|
|
99309
99309
|
if (U != null && U != null && this._sceneHelper.setCameraPositionScale(U, !1), ce != null && ce != null && this._sceneHelper.setCameraLimitLowerRadius(ce, !1), ne != null && ne != null && this._sceneHelper.setZoomEnabled(ne), this._sceneHelper.setCameraZoom(lt), this._sceneHelper.setupCamera(), this._camera = this._scene.activeCamera, this._mouseWheelInput = ((w = this._camera) == null ? void 0 : w.inputs.attached.mousewheel) ?? null, this._camera && (xe ? this._sceneHelper.setMinZoomPerc(se) : this._sceneHelper.setMinZoomPerc(null), _e ? this._sceneHelper.setMaxZoomPerc(ae) : this._sceneHelper.setMaxZoomPerc(null), this._sceneHelper.setCameraAlphaLimits(ye, Ee), this._sceneHelper.setCameraBetaLimits(K, j)), this._camera && e && (this._camera.onViewMatrixChangedObservable.add(() => {
|
|
99310
99310
|
this.notifyCameraMovement();
|
|
99311
99311
|
}), this._camera.onRestoreStateObservable.add(() => {
|
|
99312
99312
|
this.setupShaderMaterialsCameraPosition(), this.setRenderingNeeded();
|
|
99313
|
-
}), this.refreshCameraPosition()), (C = this._sceneHelper) == null || C.setupAnimations(this._zkScene), this._modelParentNode || (this._modelParentNode = new BABYLON.TransformNode("modelParent")),
|
|
99313
|
+
}), this.refreshCameraPosition()), (C = this._sceneHelper) == null || C.setupAnimations(this._zkScene), this._modelParentNode || (this._modelParentNode = new BABYLON.TransformNode("modelParent")), (V = this._sceneHelper) == null || V.setupShadows(this._zkScene), this.refreshLights(), this.createHighlightLayer(), await this.refreshEnvironment(), await this.fixEnvironmentTexture(), this.setupGlowManager(), this._zkScene && (this._meshLocationsManager = new yx(), this._meshLocationsManager.setModelAndScene(this._zkScene, this._scene), this._meshLocationsManager.addMeshAnimationCompletedListener(() => this.setRenderingNeeded())), await this.setupSceneActionsExecutorAsync(), this.setRenderingOnDelayLoaded(), this.setupAntialiasPostProcesses(), this._scene.onPointerDown = (Ze, gt) => this.onPointerDown(Ze, gt), this._scene.registerBeforeRender(() => {
|
|
99314
99314
|
this.onBeforeRender();
|
|
99315
99315
|
}), this.refreshInfoPoints(), this.refreshModel(), this.refreshPBRMaterials(), this._zkScene) {
|
|
99316
99316
|
const Ze = (ee = (Y = this._zkScene) == null ? void 0 : Y.getGeneralConfig()) == null ? void 0 : ee.get("removeDefaultBackground");
|
|
@@ -100946,6 +100946,12 @@ class gu {
|
|
|
100946
100946
|
setMouseWheelInputEnabled(e) {
|
|
100947
100947
|
this._camera && this._mouseWheelInput && (e ? this._camera.inputs.add(this._mouseWheelInput) : this._camera.inputs.remove(this._mouseWheelInput));
|
|
100948
100948
|
}
|
|
100949
|
+
setCameraPinchingZoom(e) {
|
|
100950
|
+
if (this._camera && this._camera instanceof BABYLON.ArcRotateCamera) {
|
|
100951
|
+
const t = this._camera.inputs.attached.pointers;
|
|
100952
|
+
t.pinchZoom = e, t.multiTouchPanAndZoom = e;
|
|
100953
|
+
}
|
|
100954
|
+
}
|
|
100949
100955
|
switchMode(e) {
|
|
100950
100956
|
var t;
|
|
100951
100957
|
e === "upload" && (this._lastResizableMeshID = ""), (t = this._sceneHelper) == null || t.switchMode(e), setTimeout(() => this.adjustCamera(!1), 100);
|