seat-editor 3.5.24 → 3.5.25
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.
|
@@ -6,6 +6,7 @@ import SeatEditor from "../../features/package";
|
|
|
6
6
|
// import LayerView from "@/features/view-only-2";
|
|
7
7
|
// import SeatEdit from "@/features/package";
|
|
8
8
|
import { data4 } from "../constant";
|
|
9
|
+
import { newData } from "../new-data";
|
|
9
10
|
const background = [
|
|
10
11
|
{
|
|
11
12
|
id: "1776070944676",
|
|
@@ -47,7 +48,7 @@ export default function NewBoard() {
|
|
|
47
48
|
const [viewOnly, setViewOnly] = useState(false);
|
|
48
49
|
useEffect(() => {
|
|
49
50
|
setInitialValue(data4);
|
|
50
|
-
setExtraComponents(
|
|
51
|
+
setExtraComponents(newData);
|
|
51
52
|
}, []);
|
|
52
53
|
const handleUploadImage = (file) => {
|
|
53
54
|
const test = new Promise((resolve, reject) => {
|
|
@@ -5,6 +5,7 @@ import SeatEditor from "../../features/package";
|
|
|
5
5
|
// import LayerView from "@/features/view-only-2";
|
|
6
6
|
// import SeatEdit from "@/features/package";
|
|
7
7
|
import { data4 } from "../constant";
|
|
8
|
+
import { newData } from "../new-data";
|
|
8
9
|
const background = [
|
|
9
10
|
{
|
|
10
11
|
id: "1776070944676",
|
|
@@ -46,7 +47,7 @@ export default function NewBoard() {
|
|
|
46
47
|
const [viewOnly, setViewOnly] = useState(false);
|
|
47
48
|
useEffect(() => {
|
|
48
49
|
setInitialValue(data4);
|
|
49
|
-
setExtraComponents(
|
|
50
|
+
setExtraComponents(newData);
|
|
50
51
|
}, []);
|
|
51
52
|
const handleUploadImage = (file) => {
|
|
52
53
|
const test = new Promise((resolve, reject) => {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const newData: ({
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
id: string;
|
|
5
|
+
fill: string;
|
|
6
|
+
shape: string;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
rotation: number;
|
|
10
|
+
} | {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
id: string;
|
|
14
|
+
shape: string;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
rotation: number;
|
|
18
|
+
fill?: undefined;
|
|
19
|
+
})[];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export const newData = [
|
|
2
|
+
{
|
|
3
|
+
x: 0,
|
|
4
|
+
y: 0,
|
|
5
|
+
id: "1778138567924",
|
|
6
|
+
fill: "#ef0606",
|
|
7
|
+
shape: "polygon",
|
|
8
|
+
width: 0,
|
|
9
|
+
height: 0,
|
|
10
|
+
rotation: 0,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
x: 291,
|
|
14
|
+
y: 544,
|
|
15
|
+
id: "1778138593176",
|
|
16
|
+
shape: "text",
|
|
17
|
+
width: 60,
|
|
18
|
+
height: 90,
|
|
19
|
+
rotation: 0,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
x: 401,
|
|
23
|
+
y: 538,
|
|
24
|
+
id: "1778138606616",
|
|
25
|
+
shape: "text",
|
|
26
|
+
width: 60,
|
|
27
|
+
height: 90,
|
|
28
|
+
rotation: 0,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
x: 460,
|
|
32
|
+
y: 537,
|
|
33
|
+
id: "1778138678605",
|
|
34
|
+
shape: "text",
|
|
35
|
+
width: 60,
|
|
36
|
+
height: 90,
|
|
37
|
+
rotation: 0,
|
|
38
|
+
},
|
|
39
|
+
];
|
|
@@ -86,7 +86,6 @@ const TableEditor = (props) => {
|
|
|
86
86
|
// }
|
|
87
87
|
// );
|
|
88
88
|
// }
|
|
89
|
-
console.log({ hasUndefined, matchInitialValueWithComponents }, !hasUndefined && !viewOnly);
|
|
90
89
|
if (!hasUndefined && !viewOnly) {
|
|
91
90
|
onCurrentStateChange({
|
|
92
91
|
// @ts-ignore
|
|
@@ -132,7 +131,6 @@ const TableEditor = (props) => {
|
|
|
132
131
|
}
|
|
133
132
|
return item;
|
|
134
133
|
});
|
|
135
|
-
console.log({ mappingData });
|
|
136
134
|
setHiddenIdList(hiddenIdList);
|
|
137
135
|
return mappingData;
|
|
138
136
|
};
|
|
@@ -85,7 +85,6 @@ const TableEditor = (props) => {
|
|
|
85
85
|
// }
|
|
86
86
|
// );
|
|
87
87
|
// }
|
|
88
|
-
console.log({ hasUndefined, matchInitialValueWithComponents }, !hasUndefined && !viewOnly);
|
|
89
88
|
if (!hasUndefined && !viewOnly) {
|
|
90
89
|
onCurrentStateChange({
|
|
91
90
|
// @ts-ignore
|
|
@@ -131,7 +130,6 @@ const TableEditor = (props) => {
|
|
|
131
130
|
}
|
|
132
131
|
return item;
|
|
133
132
|
});
|
|
134
|
-
console.log({ mappingData });
|
|
135
133
|
setHiddenIdList(hiddenIdList);
|
|
136
134
|
return mappingData;
|
|
137
135
|
};
|