door_models 5.4.6 → 5.4.7

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.cjs.js CHANGED
@@ -102,10 +102,7 @@ const ConfiguratorProvider = _ref => {
102
102
  let {
103
103
  children,
104
104
  initialIs2D = false,
105
- initialMaterials = {},
106
- totalWidth: widthProp,
107
- totalHeight: heightProp,
108
- totalDepth: depthProp
105
+ initialMaterials = {}
109
106
  } = _ref;
110
107
  const [materials, setMaterials] = React.useState(initialMaterials);
111
108
  const [is2D, setIs2D] = React.useState(initialIs2D);
@@ -205,21 +202,6 @@ const ConfiguratorProvider = _ref => {
205
202
  type: "",
206
203
  text: ""
207
204
  });
208
- React.useEffect(() => {
209
- if (widthProp !== undefined) {
210
- setTotalWidth(widthProp);
211
- }
212
- }, [widthProp]);
213
- React.useEffect(() => {
214
- if (heightProp !== undefined) {
215
- setTotalHeight(heightProp);
216
- }
217
- }, [heightProp]);
218
- React.useEffect(() => {
219
- if (depthProp !== undefined) {
220
- setTotalDepth(depthProp);
221
- }
222
- }, [depthProp]);
223
205
  React.useEffect(() => {
224
206
  setIs2D(initialIs2D);
225
207
  }, [initialIs2D]);
@@ -2375,14 +2357,14 @@ const DoorConfigurator = _ref => {
2375
2357
  } = _ref;
2376
2358
  return /*#__PURE__*/jsxRuntime.jsx(ConfiguratorProvider, {
2377
2359
  initialIs2D: is2D,
2378
- totalWidth: totalWidth,
2379
- totalHeight: totalHeight,
2380
- totalDepth: totalDepth,
2381
2360
  children: /*#__PURE__*/jsxRuntime.jsx(DoorModels, {
2382
2361
  doorName: doorName,
2383
2362
  materials: materials,
2384
2363
  doorPivot: doorPivot,
2385
- doorOpening: doorOpening
2364
+ doorOpening: doorOpening,
2365
+ totalWidth: totalWidth,
2366
+ totalHeight: totalHeight,
2367
+ totalDepth: totalDepth
2386
2368
  })
2387
2369
  });
2388
2370
  };