seat-editor 3.0.5 → 3.0.6
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/app/constant.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export const dummyImage = [
|
|
2
2
|
{
|
|
3
3
|
"id": 1747388267450,
|
|
4
|
-
"x":
|
|
5
|
-
"y":
|
|
6
|
-
"width":
|
|
4
|
+
"x": 368,
|
|
5
|
+
"y": 77.54706573486328,
|
|
6
|
+
"width": 751.9405198530717,
|
|
7
7
|
"height": 812,
|
|
8
8
|
"rotation": 0,
|
|
9
9
|
"shape": "background",
|
|
10
|
-
"src": "
|
|
10
|
+
"src": "https://cdn.table.link/prod/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753965985769725756_BOI Reg.png",
|
|
11
11
|
"fill": "#bca16a",
|
|
12
12
|
"opacity": 1,
|
|
13
13
|
"labels": [
|
|
@@ -156,12 +156,12 @@ const LayerView = (props) => {
|
|
|
156
156
|
minY = minY - minY * 0.5;
|
|
157
157
|
}
|
|
158
158
|
const paddingY = maxY * 0.2 + minY * 0.2;
|
|
159
|
-
const paddingX = maxX * 0.2 + minX * 0.
|
|
159
|
+
const paddingX = maxX * 0.2 + minX * 0.1;
|
|
160
160
|
return {
|
|
161
|
-
minX: minX - paddingX,
|
|
161
|
+
minX: (minX - paddingX) - (minX - paddingX) * 0.5,
|
|
162
162
|
minY: minY - paddingY * 2,
|
|
163
163
|
width: maxX + paddingX * 2,
|
|
164
|
-
height: maxY + paddingY,
|
|
164
|
+
height: maxY + paddingY + (maxY + paddingY) * 0.5,
|
|
165
165
|
};
|
|
166
166
|
}, [componentsEditor, extraComponentsEditor]);
|
|
167
167
|
const renderElements = (elementEditor, mappingKey, tableMatchKey) => {
|