zakeke-configurator-react 0.1.278-prod → 0.1.279-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 CHANGED
@@ -21421,7 +21421,7 @@ var ZakekeViewer = function ZakekeViewer(_ref) {
21421
21421
  var removeBackground = stateRef.current.state.environment.removeBackground;
21422
21422
  var backgroundColor = stateRef.current.state.environment.backgroundColor;
21423
21423
  if (!ignoreRemove && removeBackground) return null; // 1 non cè' il background
21424
- if (backgroundColor) return backgroundColor; // 2 background lato config
21424
+ if (!ignoreRemove && backgroundColor) return backgroundColor; // 2 background lato config
21425
21425
  return bgColor !== null && bgColor !== void 0 ? bgColor : '#f2f2f2'; // 3 background lato tema o default
21426
21426
  };
21427
21427
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
@@ -22454,8 +22454,8 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
22454
22454
  _defineProperty(this, "fonts", []);
22455
22455
  _defineProperty(this, "disableTextColors", false);
22456
22456
  _defineProperty(this, "textColors", []);
22457
- /**
22458
- * Get the current text default color.
22457
+ /**
22458
+ * Get the current text default color.
22459
22459
  */
22460
22460
  _defineProperty(this, "defaultColor", '');
22461
22461
  _defineProperty(this, "quantity", 1);
@@ -23035,8 +23035,8 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
23035
23035
  } catch (e) {}
23036
23036
  return copyrightMessageAccepted;
23037
23037
  });
23038
- /**
23039
- * @private
23038
+ /**
23039
+ * @private
23040
23040
  */
23041
23041
  _defineProperty(this, "boot", /*#__PURE__*/function () {
23042
23042
  var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(parameters) {
@@ -23294,11 +23294,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
23294
23294
  _this.viewer.highlightSize = settings.size;
23295
23295
  }
23296
23296
  });
23297
- /*public renderDesign = _.throttle(async () => {
23298
- if (this.viewer && this.zkCurrentTemplate) {
23299
- await this.viewer.renderDesignAsync(this.zkCurrentTemplate);
23300
- this.fireItemsChange();
23301
- }
23297
+ /*public renderDesign = _.throttle(async () => {
23298
+ if (this.viewer && this.zkCurrentTemplate) {
23299
+ await this.viewer.renderDesignAsync(this.zkCurrentTemplate);
23300
+ this.fireItemsChange();
23301
+ }
23302
23302
  }, 300);*/
23303
23303
  _defineProperty(this, "renderDesign", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
23304
23304
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
@@ -23919,8 +23919,8 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
23919
23919
  }
23920
23920
  }, _callee26);
23921
23921
  })));
23922
- /**
23923
- * Reset the platform attributes selection to the current selection
23922
+ /**
23923
+ * Reset the platform attributes selection to the current selection
23924
23924
  */
23925
23925
  _defineProperty(this, "resetPlatformAttributesSelection", function () {
23926
23926
  _this.selection.get('groups').each(function (group) {
@@ -26011,9 +26011,9 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
26011
26011
  var _this$viewer, _this$viewer$getMeshB;
26012
26012
  return (_this$viewer = _this.viewer) === null || _this$viewer === void 0 ? void 0 : (_this$viewer$getMeshB = _this$viewer.getMeshByName(name)) === null || _this$viewer$getMeshB === void 0 ? void 0 : _this$viewer$getMeshB.id;
26013
26013
  });
26014
- /**
26015
- * Hide a mesh and its children and save the state
26016
- * @param meshId The mesh and childs to hide
26014
+ /**
26015
+ * Hide a mesh and its children and save the state
26016
+ * @param meshId The mesh and childs to hide
26017
26017
  */
26018
26018
  _defineProperty(this, "hideMeshAndSaveState", function (meshId) {
26019
26019
  if (_this.viewer.scene) {
@@ -26039,9 +26039,9 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
26039
26039
  }
26040
26040
  }
26041
26041
  });
26042
- /**
26043
- * Restore a mesh visibility state from a previous saved one (see hideMeshAndSaveState)
26044
- * @param meshId The mesh and childs to show
26042
+ /**
26043
+ * Restore a mesh visibility state from a previous saved one (see hideMeshAndSaveState)
26044
+ * @param meshId The mesh and childs to show
26045
26045
  */
26046
26046
  _defineProperty(this, "restoreMeshVisibility", function (meshId) {
26047
26047
  if (_this.viewer.scene) {
@@ -26067,10 +26067,10 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
26067
26067
  }
26068
26068
  }
26069
26069
  });
26070
- /**
26071
- * Change opacity for a specific mesh
26072
- * @param meshId The mesh to change the opacity
26073
- * @param opacity The opacity to set
26070
+ /**
26071
+ * Change opacity for a specific mesh
26072
+ * @param meshId The mesh to change the opacity
26073
+ * @param opacity The opacity to set
26074
26074
  */
26075
26075
  _defineProperty(this, "setMeshDesignVisibility", function (meshId, visible) {
26076
26076
  if (_this.viewer) {
@@ -26678,12 +26678,12 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
26678
26678
  return _ref83.apply(this, arguments);
26679
26679
  };
26680
26680
  }());
26681
- /**
26682
- * Ottiene le restrizioni sul printing method (che nel caso di un prodotto configuratore 3D c'è sempre ed è 1 solo).
26683
- * @remarks
26684
- * Se non ci sono restrizioni, ritorna quelle di default
26685
- * @returns
26686
- * Le restrizioni sul printing method o quelle di default
26681
+ /**
26682
+ * Ottiene le restrizioni sul printing method (che nel caso di un prodotto configuratore 3D c'è sempre ed è 1 solo).
26683
+ * @remarks
26684
+ * Se non ci sono restrizioni, ritorna quelle di default
26685
+ * @returns
26686
+ * Le restrizioni sul printing method o quelle di default
26687
26687
  */
26688
26688
  _defineProperty(this, "getPrintingMethodsRestrictions", function () {
26689
26689
  var defaultColor = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zakeke-configurator-react",
3
- "version": "0.1.278-prod",
3
+ "version": "0.1.279-prod",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/declarations/composer/Module/src/index.d.ts",