seat-editor 3.3.34 → 3.3.35

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.
@@ -80,7 +80,7 @@ const LayerView = (props) => {
80
80
  // if(boundingBoxProps) {
81
81
  dispatch({
82
82
  type: "board/setBoundingBox",
83
- payload: boundingBoxProps,
83
+ payload: defaultBoundingBox,
84
84
  });
85
85
  // }
86
86
  setTimeout(() => {
@@ -92,6 +92,7 @@ const LayerView = (props) => {
92
92
  defaultBackground,
93
93
  loadingRender === null || loadingRender === void 0 ? void 0 : loadingRender.state,
94
94
  props === null || props === void 0 ? void 0 : props.viewOnly,
95
+ defaultBoundingBox
95
96
  ]);
96
97
  useEffect(() => {
97
98
  setTooltip(Object.assign(Object.assign({}, tooltip), { visible: false }));
@@ -104,7 +105,7 @@ const LayerView = (props) => {
104
105
  background: backgroundColor,
105
106
  boundingBox: boundingBoxProps,
106
107
  });
107
- }, [componentsEditor, extraComponentsEditor]);
108
+ }, [componentsEditor, extraComponentsEditor, boundingBoxProps]);
108
109
  const originalData = ({ id, type, dataParams, }) => {
109
110
  let data;
110
111
  if (type === "find") {
@@ -214,7 +215,7 @@ const LayerView = (props) => {
214
215
  width: maxX + (((_j = props === null || props === void 0 ? void 0 : props.viewStyles) === null || _j === void 0 ? void 0 : _j.paddingRight) || 0),
215
216
  height: maxY + (((_k = props === null || props === void 0 ? void 0 : props.viewStyles) === null || _k === void 0 ? void 0 : _k.paddingBottom) || 0),
216
217
  };
217
- }, [componentsEditor, extraComponentsEditor]);
218
+ }, [componentsEditor, extraComponentsEditor, boundingBoxProps]);
218
219
  const renderElements = (elementEditor, mappingKey, tableMatchKey) => {
219
220
  return elementEditor.map((editorItem) => {
220
221
  const isUsingMapping = mappingKey &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.3.34",
3
+ "version": "3.3.35",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",