zakeke-configurator-react 0.1.246 → 0.1.247
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 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60416,9 +60416,11 @@ var SceneViewer = /*#__PURE__*/function () {
|
|
|
60416
60416
|
_step4;
|
|
60417
60417
|
try {
|
|
60418
60418
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
60419
|
+
var _this$_sceneHelper;
|
|
60419
60420
|
var mesh = _step4.value;
|
|
60420
60421
|
var children = mesh.getChildren();
|
|
60421
|
-
if (
|
|
60422
|
+
if (!((_this$_sceneHelper = this._sceneHelper) !== null && _this$_sceneHelper !== void 0 && _this$_sceneHelper.isTryOnEnabledForMesh(mesh))) continue;
|
|
60423
|
+
if (children.length > 0) {
|
|
60422
60424
|
var element = children.find(function (child) {
|
|
60423
60425
|
var _this21$_sceneHelper;
|
|
60424
60426
|
return (_this21$_sceneHelper = _this21._sceneHelper) === null || _this21$_sceneHelper === void 0 ? void 0 : _this21$_sceneHelper.isTryOnEnabledForMesh(child);
|
|
@@ -61020,18 +61022,18 @@ var SceneViewer = /*#__PURE__*/function () {
|
|
|
61020
61022
|
}, {
|
|
61021
61023
|
key: "clearResizableProduct",
|
|
61022
61024
|
value: function clearResizableProduct() {
|
|
61023
|
-
var _this$
|
|
61024
|
-
(_this$
|
|
61025
|
+
var _this$_sceneHelper2;
|
|
61026
|
+
(_this$_sceneHelper2 = this._sceneHelper) === null || _this$_sceneHelper2 === void 0 ? void 0 : _this$_sceneHelper2.clearResizableMeshes();
|
|
61025
61027
|
}
|
|
61026
61028
|
}, {
|
|
61027
61029
|
key: "switchMode",
|
|
61028
61030
|
value: function switchMode(mode) {
|
|
61029
|
-
var _this$
|
|
61031
|
+
var _this$_sceneHelper3,
|
|
61030
61032
|
_this27 = this;
|
|
61031
61033
|
if (mode === 'upload') {
|
|
61032
61034
|
this._lastResizableMeshID = '';
|
|
61033
61035
|
}
|
|
61034
|
-
(_this$
|
|
61036
|
+
(_this$_sceneHelper3 = this._sceneHelper) === null || _this$_sceneHelper3 === void 0 ? void 0 : _this$_sceneHelper3.switchMode(mode);
|
|
61035
61037
|
setTimeout(function () {
|
|
61036
61038
|
return _this27.adjustCamera(false);
|
|
61037
61039
|
}, 100);
|
|
@@ -61040,7 +61042,7 @@ var SceneViewer = /*#__PURE__*/function () {
|
|
|
61040
61042
|
key: "rotate",
|
|
61041
61043
|
value: function () {
|
|
61042
61044
|
var _rotate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee56(angle, animate) {
|
|
61043
|
-
var _this$
|
|
61045
|
+
var _this$_sceneHelper4, _this$_sceneDesignMan16;
|
|
61044
61046
|
var meshSides, meshSide, meshId, mesh, normal;
|
|
61045
61047
|
return _regeneratorRuntime().wrap(function _callee56$(_context56) {
|
|
61046
61048
|
while (1) switch (_context56.prev = _context56.next) {
|
|
@@ -61074,7 +61076,7 @@ var SceneViewer = /*#__PURE__*/function () {
|
|
|
61074
61076
|
this._currentRotation += angle;
|
|
61075
61077
|
if (this._currentRotation > 360) this._currentRotation -= 360;else if (this._currentRotation < 0) this._currentRotation += 360;
|
|
61076
61078
|
_context56.next = 16;
|
|
61077
|
-
return (_this$
|
|
61079
|
+
return (_this$_sceneHelper4 = this._sceneHelper) === null || _this$_sceneHelper4 === void 0 ? void 0 : _this$_sceneHelper4.rotate(angle, normal, animate);
|
|
61078
61080
|
case 16:
|
|
61079
61081
|
_context56.next = 18;
|
|
61080
61082
|
return (_this$_sceneDesignMan16 = this._sceneDesignManager) === null || _this$_sceneDesignMan16 === void 0 ? void 0 : _this$_sceneDesignMan16.refreshAsync();
|