seat-editor 3.3.1 → 3.3.2
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.d.ts
CHANGED
|
@@ -620,3 +620,28 @@ export declare const dummyExtra5: {
|
|
|
620
620
|
width: number;
|
|
621
621
|
height: number;
|
|
622
622
|
}[];
|
|
623
|
+
export declare const dummyExtra6: ({
|
|
624
|
+
x: number;
|
|
625
|
+
y: number;
|
|
626
|
+
id: number;
|
|
627
|
+
src: string;
|
|
628
|
+
fill: string;
|
|
629
|
+
image: string;
|
|
630
|
+
width: number;
|
|
631
|
+
height: number;
|
|
632
|
+
labels: {}[];
|
|
633
|
+
seatCount: number;
|
|
634
|
+
shape?: undefined;
|
|
635
|
+
} | {
|
|
636
|
+
x: number;
|
|
637
|
+
y: number;
|
|
638
|
+
id: number;
|
|
639
|
+
src: string;
|
|
640
|
+
image: string;
|
|
641
|
+
shape: string;
|
|
642
|
+
width: number;
|
|
643
|
+
height: number;
|
|
644
|
+
fill?: undefined;
|
|
645
|
+
labels?: undefined;
|
|
646
|
+
seatCount?: undefined;
|
|
647
|
+
})[];
|
package/dist/app/constant.js
CHANGED
|
@@ -5547,13 +5547,49 @@ export const dummyExtra5 = [
|
|
|
5547
5547
|
// "seatCount": 0
|
|
5548
5548
|
// },
|
|
5549
5549
|
{
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
}
|
|
5550
|
+
x: 287,
|
|
5551
|
+
y: 2.1183319091796875,
|
|
5552
|
+
id: 1754137849705,
|
|
5553
|
+
src: "https://cdn.table.link/prod/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1754137849587013665_BOI Reg.png",
|
|
5554
|
+
image: "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1754137849587013665_BOI Reg.png",
|
|
5555
|
+
shape: "background",
|
|
5556
|
+
width: 830.1580429077148,
|
|
5557
|
+
height: 794,
|
|
5558
|
+
},
|
|
5559
|
+
];
|
|
5560
|
+
export const dummyExtra6 = [
|
|
5561
|
+
{
|
|
5562
|
+
x: 100,
|
|
5563
|
+
y: 100,
|
|
5564
|
+
id: 1754137739279,
|
|
5565
|
+
src: "https://cdn.table.link/prod/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1754137739126863915_BOI Reg.png",
|
|
5566
|
+
fill: "red",
|
|
5567
|
+
image: "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1754137739126863915_BOI Reg.png",
|
|
5568
|
+
width: 1100.44444,
|
|
5569
|
+
height: 662,
|
|
5570
|
+
labels: [{}],
|
|
5571
|
+
seatCount: 0,
|
|
5572
|
+
},
|
|
5573
|
+
{
|
|
5574
|
+
x: 100,
|
|
5575
|
+
y: 197,
|
|
5576
|
+
id: 1754137782831,
|
|
5577
|
+
src: "https://cdn.table.link/prod/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1754137782735069264_BOI Reg.png",
|
|
5578
|
+
fill: "red",
|
|
5579
|
+
image: "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1754137782735069264_BOI Reg.png",
|
|
5580
|
+
width: 1,
|
|
5581
|
+
height: 552,
|
|
5582
|
+
labels: [{}],
|
|
5583
|
+
seatCount: 0,
|
|
5584
|
+
},
|
|
5585
|
+
{
|
|
5586
|
+
x: 287,
|
|
5587
|
+
y: 2.1183319091796875,
|
|
5588
|
+
id: 1754137849705,
|
|
5589
|
+
src: "https://cdn.table.link/prod/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1754137849587013665_BOI Reg.png",
|
|
5590
|
+
image: "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1754137849587013665_BOI Reg.png",
|
|
5591
|
+
shape: "background",
|
|
5592
|
+
width: 830.1580429077148,
|
|
5593
|
+
height: 794,
|
|
5594
|
+
},
|
|
5559
5595
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import SeatEditor from "../../features/package";
|
|
4
|
-
import { data5,
|
|
4
|
+
import { data5, dummyExtra6 } from "../constant";
|
|
5
5
|
export default function NewBoard() {
|
|
6
6
|
const [initialValue, setInitialValue] = useState([]);
|
|
7
7
|
const [extraComponents, setExtraComponents] = useState([]);
|
|
@@ -9,7 +9,7 @@ export default function NewBoard() {
|
|
|
9
9
|
const [viewOnly, setViewOnly] = useState(false);
|
|
10
10
|
useEffect(() => {
|
|
11
11
|
setInitialValue(data5);
|
|
12
|
-
setExtraComponents(
|
|
12
|
+
setExtraComponents(dummyExtra6);
|
|
13
13
|
}, []);
|
|
14
14
|
const handleUploadImage = (file) => {
|
|
15
15
|
const test = new Promise((resolve, reject) => {
|
|
@@ -5,7 +5,7 @@ import SideTool from "../side-tool";
|
|
|
5
5
|
import ControlPanels from "../panel";
|
|
6
6
|
import { useAppDispatch, useAppSelector } from "../../hooks/use-redux";
|
|
7
7
|
import { isEqual } from "lodash";
|
|
8
|
-
import LayerView from "../view-only";
|
|
8
|
+
import LayerView from "../view-only-3";
|
|
9
9
|
const TableEditor = (props) => {
|
|
10
10
|
var _a;
|
|
11
11
|
const [initialValue, setInitialValue] = useState(null);
|