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.
@@ -3068,7 +3068,7 @@ export const data4 = [
3068
3068
  status: 0,
3069
3069
  properties: {
3070
3070
  x: 100,
3071
- y: 20,
3071
+ y: 520,
3072
3072
  id: "1761194669729132000",
3073
3073
  stroke: "#347ADB", //warna border
3074
3074
  fill: "#E1F4FF", //warna latar belakang
@@ -1,13 +1,13 @@
1
1
  export const dummyImage = [
2
2
  {
3
3
  "id": 1747388267450,
4
- "x": 0,
5
- "y": 0,
6
- "width": 973.391304347826,
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": "http://192.168.88.99:9106/v1/public/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/1745396181_floor_boi.jpeg",
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.2;
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",