zakeke-configurator-react 0.1.245 → 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.
|
@@ -54,4 +54,3 @@ export declare const IS_AR_DEVICE_COMPLIANT: boolean;
|
|
|
54
54
|
export declare function uuid(): string;
|
|
55
55
|
export declare function sleep(ms: number): Promise<unknown>;
|
|
56
56
|
export declare function ascComparator(getProp: (item: any) => string): (a: any, b: any) => 1 | -1 | 0;
|
|
57
|
-
export declare function fixedEncodeURIComponent(str: any): string;
|
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();
|
|
@@ -62791,7 +62793,8 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
|
|
|
62791
62793
|
_defineProperty(this, "parseParameters", function (parameters) {
|
|
62792
62794
|
console.info('Parameters', parameters);
|
|
62793
62795
|
var parseSecure = function parseSecure(value) {
|
|
62794
|
-
return decodeURIComponent(
|
|
62796
|
+
//return decodeURIComponent(fixedEncodeURIComponent(value.toString().replace(/\+/g, ' ')));
|
|
62797
|
+
return decodeURIComponent(value.toString().replaceAll('%', '').replace(/\+/g, '%20'));
|
|
62795
62798
|
};
|
|
62796
62799
|
var parseSingleParameter = function parseSingleParameter(key, value) {
|
|
62797
62800
|
var _parseInt;
|
|
@@ -67778,7 +67781,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
67778
67781
|
/* harmony export */ "compare": () => (/* binding */ compare),
|
|
67779
67782
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
67780
67783
|
/* harmony export */ "dataURLtoFile": () => (/* binding */ dataURLtoFile),
|
|
67781
|
-
/* harmony export */ "fixedEncodeURIComponent": () => (/* binding */ fixedEncodeURIComponent),
|
|
67782
67784
|
/* harmony export */ "getPlatformSettings": () => (/* binding */ getPlatformSettings),
|
|
67783
67785
|
/* harmony export */ "hex2rgb": () => (/* binding */ hex2rgb),
|
|
67784
67786
|
/* harmony export */ "hslToRgb": () => (/* binding */ hslToRgb),
|
|
@@ -68232,11 +68234,6 @@ function ascComparator(getProp) {
|
|
|
68232
68234
|
return 0;
|
|
68233
68235
|
};
|
|
68234
68236
|
}
|
|
68235
|
-
function fixedEncodeURIComponent(str) {
|
|
68236
|
-
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
|
|
68237
|
-
return '%' + c.charCodeAt(0).toString(16);
|
|
68238
|
-
});
|
|
68239
|
-
}
|
|
68240
68237
|
|
|
68241
68238
|
/***/ }),
|
|
68242
68239
|
|