seat-editor 3.0.2 → 3.0.3
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 +1 -1
- package/dist/app/layout.d.ts +1 -1
- package/dist/app/{layout.jsx → layout.js} +2 -7
- package/dist/app/new-board/page.d.ts +1 -1
- package/dist/app/new-board/page.js +33 -0
- package/dist/app/old-board/page.d.ts +1 -2
- package/dist/app/old-board/{page.jsx → page.js} +82 -215
- package/dist/app/only-view/chair.d.ts +1 -1
- package/dist/app/only-view/chair.js +2 -10
- package/dist/app/only-view/page.d.ts +1 -1
- package/dist/app/only-view/page.js +78 -0
- package/dist/app/only-view/user.d.ts +1 -1
- package/dist/app/only-view/user.js +2 -10
- package/dist/app/page.d.ts +1 -1
- package/dist/app/page.js +8 -0
- package/dist/app/test/page.d.ts +1 -2
- package/dist/app/test/{page.jsx → page.js} +3 -5
- package/dist/app/v2/page.d.ts +1 -1
- package/dist/app/v2/page.js +8 -0
- package/dist/components/button-tools/index.d.ts +1 -1
- package/dist/components/button-tools/index.js +11 -0
- package/dist/components/form-tools/label.d.ts +1 -1
- package/dist/components/form-tools/label.js +7 -0
- package/dist/components/form-tools/shape.d.ts +1 -1
- package/dist/components/form-tools/shape.js +25 -0
- package/dist/components/input/number-indicator.d.ts +1 -1
- package/dist/components/input/{number-indicator.jsx → number-indicator.js} +2 -11
- package/dist/components/joystick/index.d.ts +1 -2
- package/dist/components/joystick/{index.jsx → index.js} +13 -14
- package/dist/components/layer/index.d.ts +1 -1
- package/dist/components/layer/index.js +295 -0
- package/dist/components/layer-v2/index.d.ts +1 -1
- package/dist/components/layer-v2/index.js +282 -0
- package/dist/components/layer-v3/index.d.ts +1 -1
- package/dist/components/layer-v3/{index.jsx → index.js} +102 -242
- package/dist/components/layer-v4/index.d.ts +3 -3
- package/dist/components/layer-v4/{index.jsx → index.js} +81 -158
- package/dist/components/lib/index.d.ts +1 -1
- package/dist/components/lib/{index.jsx → index.js} +2 -7
- package/dist/components/modal-preview/index.d.ts +1 -1
- package/dist/components/modal-preview/index.js +10 -0
- package/dist/features/board/index.d.ts +1 -1
- package/dist/features/board/{index.jsx → index.js} +31 -90
- package/dist/features/board-v2/index.d.ts +1 -2
- package/dist/features/board-v2/{index.jsx → index.js} +39 -101
- package/dist/features/board-v3/index copy.d.ts +1 -2
- package/dist/features/board-v3/{index copy.jsx → index copy.js } +50 -128
- package/dist/features/board-v3/index.d.ts +1 -2
- package/dist/features/board-v3/{index.jsx → index.js} +32 -110
- package/dist/features/navbar/index.d.ts +1 -1
- package/dist/features/navbar/index.js +6 -0
- package/dist/features/package/index.d.ts +1 -1
- package/dist/features/package/{index.jsx → index.js} +6 -16
- package/dist/features/panel/index.d.ts +1 -1
- package/dist/features/panel/{index.jsx → index.js} +7 -25
- package/dist/features/panel/select-tool.d.ts +1 -1
- package/dist/features/panel/{select-tool.jsx → select-tool.js} +10 -23
- package/dist/features/panel/selected-group.d.ts +1 -1
- package/dist/features/panel/selected-group.js +7 -0
- package/dist/features/panel/square-circle-tool.d.ts +1 -1
- package/dist/features/panel/{square-circle-tool.jsx → square-circle-tool.js} +2 -4
- package/dist/features/panel/table-seat-circle.d.ts +1 -1
- package/dist/features/panel/table-seat-circle.js +9 -0
- package/dist/features/panel/table-seat-square.d.ts +1 -1
- package/dist/features/panel/table-seat-square.js +9 -0
- package/dist/features/panel/text-tool.d.ts +1 -1
- package/dist/features/panel/text-tool.js +7 -0
- package/dist/features/panel/upload-tool.d.ts +1 -1
- package/dist/features/panel/{upload-tool.jsx → upload-tool.js} +2 -24
- package/dist/features/side-tool/index.d.ts +1 -1
- package/dist/features/side-tool/{index.jsx → index.js} +98 -120
- package/dist/features/view-only/index.d.ts +1 -1
- package/dist/features/view-only/{index.jsx → index.js} +31 -38
- package/dist/features/view-only-2/index.d.ts +1 -1
- package/dist/features/view-only-2/{index.jsx → index.js} +13 -16
- package/dist/features/view-only-3/index.d.ts +3 -3
- package/dist/features/view-only-3/{index.jsx → index.js} +27 -46
- package/dist/provider/antd-provider.js +43 -0
- package/dist/provider/redux-provider.d.ts +1 -1
- package/dist/provider/{redux-provider.jsx → redux-provider.js} +2 -1
- package/dist/provider/store-provider.d.ts +1 -1
- package/dist/provider/{store-provider.jsx → store-provider.js} +2 -3
- package/package.json +1 -1
- package/dist/app/new-board/page.jsx +0 -55
- package/dist/app/only-view/page.jsx +0 -101
- package/dist/app/page.jsx +0 -13
- package/dist/app/v2/page.jsx +0 -13
- package/dist/components/button-tools/index.jsx +0 -17
- package/dist/components/form-tools/label.jsx +0 -44
- package/dist/components/form-tools/shape.jsx +0 -66
- package/dist/components/layer/index.jsx +0 -383
- package/dist/components/layer-v2/index.jsx +0 -370
- package/dist/components/modal-preview/index.jsx +0 -11
- package/dist/features/navbar/index.jsx +0 -5
- package/dist/features/panel/selected-group.jsx +0 -47
- package/dist/features/panel/table-seat-circle.jsx +0 -31
- package/dist/features/panel/table-seat-square.jsx +0 -46
- package/dist/features/panel/text-tool.jsx +0 -26
- package/dist/provider/antd-provider.jsx +0 -46
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { createElement as _createElement } from "react";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
4
|
import { useRef } from "react";
|
|
3
5
|
import { isArray, isEmpty, omit } from "lodash";
|
|
4
6
|
const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedTable, activeTool, onMouseDown, onMouseUp, onBlur, selectedTableColor, mode = "edit", style, selectionLines, }) => {
|
|
@@ -31,11 +33,11 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
31
33
|
const pointsFormat = !isEmpty(points)
|
|
32
34
|
? points
|
|
33
35
|
: rectToPolygonPoints(x, y, width, height);
|
|
34
|
-
return
|
|
36
|
+
return _jsx("polygon", Object.assign({ points: pointsFormat }, commonProps), id);
|
|
35
37
|
case "circle":
|
|
36
|
-
return (
|
|
38
|
+
return (_jsx("circle", Object.assign({ cx: x + width / 2, cy: y + height / 2, r: Math.min(height, width) / 2 }, commonProps), id));
|
|
37
39
|
case "diamond":
|
|
38
|
-
return (
|
|
40
|
+
return (_jsx("rect", Object.assign({ x: x, y: y, width: width, height: height, transform: `rotate(${rotation}, ${x}, ${y})` }, commonProps), id));
|
|
39
41
|
case "table-seat-circle": {
|
|
40
42
|
const seatCount = item.seatCount;
|
|
41
43
|
const openSpace = (_a = item.openSpace) !== null && _a !== void 0 ? _a : 0.2;
|
|
@@ -56,26 +58,13 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
56
58
|
const cy = centerY + (radius - inset) * Math.sin(angle);
|
|
57
59
|
return { cx, cy };
|
|
58
60
|
});
|
|
59
|
-
return (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return (<text key={`${id}-label-${index}`} x={centerX + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0)} y={centerY + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0)} fill={(_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black"} fontSize={`${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`} fontWeight="bold" textAnchor="middle" dominantBaseline="middle" transform={`rotate(${rotation} ${centerX} ${centerY})`} onClick={(e) => {
|
|
67
|
-
e.stopPropagation();
|
|
68
|
-
onClick && onClick(item);
|
|
69
|
-
}}>
|
|
70
|
-
{_ === null || _ === void 0 ? void 0 : _.label}
|
|
71
|
-
</text>);
|
|
72
|
-
})}
|
|
73
|
-
|
|
74
|
-
{/* Kursi */}
|
|
75
|
-
<g fill="#e6b9c0" stroke="#c49ba3" strokeWidth="1">
|
|
76
|
-
{seatCircles.map(({ cx, cy }, i) => (<circle key={`${id}-seat-${i}`} cx={cx} cy={cy} r={seatRadius} fill={seatFill}/>))}
|
|
77
|
-
</g>
|
|
78
|
-
</g>);
|
|
61
|
+
return (_jsxs("g", { transform: `rotate(${rotation} ${centerX} ${centerY})`, children: [_jsx("circle", Object.assign({ cx: centerX, cy: centerY, r: radius - 15, fill: selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill }, commonProps)), labels === null || labels === void 0 ? void 0 : labels.map((_, index) => {
|
|
62
|
+
var _a, _b, _c, _d;
|
|
63
|
+
return (_jsx("text", { x: centerX + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0), y: centerY + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0), fill: (_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black", fontSize: `${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", transform: `rotate(${rotation} ${centerX} ${centerY})`, onClick: (e) => {
|
|
64
|
+
e.stopPropagation();
|
|
65
|
+
onClick && onClick(item);
|
|
66
|
+
}, children: _ === null || _ === void 0 ? void 0 : _.label }, `${id}-label-${index}`));
|
|
67
|
+
}), _jsx("g", { fill: "#e6b9c0", stroke: "#c49ba3", strokeWidth: "1", children: seatCircles.map(({ cx, cy }, i) => (_jsx("circle", { cx: cx, cy: cy, r: seatRadius, fill: seatFill }, `${id}-seat-${i}`))) })] }, id));
|
|
79
68
|
}
|
|
80
69
|
case "table-seat-square": {
|
|
81
70
|
const seatCount = item.seatCount || 6;
|
|
@@ -95,29 +84,14 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
95
84
|
cx: startX + i * spacing,
|
|
96
85
|
cy: y + height + seatRadius * 1.5,
|
|
97
86
|
}));
|
|
98
|
-
return (
|
|
99
|
-
{/* Seats */}
|
|
100
|
-
<g fill="#e6b9c0" fillOpacity="0.5" stroke="#c49ba3" strokeWidth="1" key={`${id}-seats`}>
|
|
101
|
-
{[...topSeats, ...bottomSeats].map(({ cx, cy }, i) => (<circle key={`${id}-seat-${i}`} cx={cx} cy={cy} r={seatRadius}/>))}
|
|
102
|
-
</g>
|
|
103
|
-
{/* Square Table */}
|
|
104
|
-
<rect x={x} y={y} width={width} height={height} {...commonProps}/>
|
|
105
|
-
</g>);
|
|
87
|
+
return (_jsxs("g", { children: [_jsx("g", { fill: "#e6b9c0", fillOpacity: "0.5", stroke: "#c49ba3", strokeWidth: "1", children: [...topSeats, ...bottomSeats].map(({ cx, cy }, i) => (_jsx("circle", { cx: cx, cy: cy, r: seatRadius }, `${id}-seat-${i}`))) }, `${id}-seats`), _jsx("rect", Object.assign({ x: x, y: y, width: width, height: height }, commonProps))] }, id));
|
|
106
88
|
}
|
|
107
89
|
case "text":
|
|
108
|
-
return (
|
|
90
|
+
return (_jsxs("g", { onClick: () => {
|
|
109
91
|
onClick && onClick(item);
|
|
110
|
-
}}
|
|
111
|
-
<rect x={x} y={y} width={width} height={height} fill="transparent" opacity={opacity}/>
|
|
112
|
-
<text x={x + width / 2} y={y + height / 2} textAnchor="middle" dominantBaseline="middle" fill={fontColor} fontSize={height * 0.6} opacity={opacity}>
|
|
113
|
-
{text}
|
|
114
|
-
</text>
|
|
115
|
-
</g>);
|
|
92
|
+
}, children: [_jsx("rect", { x: x, y: y, width: width, height: height, fill: "transparent", opacity: opacity }), _jsx("text", { x: x + width / 2, y: y + height / 2, textAnchor: "middle", dominantBaseline: "middle", fill: fontColor, fontSize: height * 0.6, opacity: opacity, children: text })] }, id));
|
|
116
93
|
case "ruler":
|
|
117
|
-
return (
|
|
118
|
-
<rect x={x - (window.innerWidth * 3) / 2} y={y} width={window.innerWidth * 3} height={1} fill="black"/>
|
|
119
|
-
<rect x={x} y={y - (window.innerHeight * 3) / 2} width={1} height={window.innerHeight * 3} fill="black"/>
|
|
120
|
-
</g>);
|
|
94
|
+
return (_jsxs("g", { children: [_jsx("rect", { x: x - (window.innerWidth * 3) / 2, y: y, width: window.innerWidth * 3, height: 1, fill: "black" }), _jsx("rect", { x: x, y: y - (window.innerHeight * 3) / 2, width: 1, height: window.innerHeight * 3, fill: "black" })] }, id));
|
|
121
95
|
default:
|
|
122
96
|
return null;
|
|
123
97
|
}
|
|
@@ -176,22 +150,15 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
176
150
|
};
|
|
177
151
|
switch (shape) {
|
|
178
152
|
case "square":
|
|
179
|
-
return (
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
onClick && onClick(item);
|
|
189
|
-
}}>
|
|
190
|
-
{_ === null || _ === void 0 ? void 0 : _.text}
|
|
191
|
-
</text>);
|
|
192
|
-
})}
|
|
193
|
-
</g>
|
|
194
|
-
</g>);
|
|
153
|
+
return (_jsx("g", { "data-id": id,
|
|
154
|
+
// data-table={JSON.stringify(item)}
|
|
155
|
+
transform: `translate(${x}, ${y})`, stroke: "red", children: _jsxs("g", { transform: `rotate(${rotation}, 0, 0)`, children: [_createElement("rect", Object.assign({}, commonProps, { key: id, width: width, height: height })), labels === null || labels === void 0 ? void 0 : labels.map((_, index) => {
|
|
156
|
+
var _a, _b, _c, _d;
|
|
157
|
+
return (_createElement("text", Object.assign({}, omit(commonProps, ["opacity", "stroke", "strokeWidth"]), { key: `${id}-label-${index}`, x: x + width / 2 + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0), y: y + height / 2 + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0), fill: (_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black", fontSize: `${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", transform: `rotate(${rotation} ${x + width / 2} ${y + height / 2})`, onClick: (e) => {
|
|
158
|
+
e.stopPropagation();
|
|
159
|
+
onClick && onClick(item);
|
|
160
|
+
} }), _ === null || _ === void 0 ? void 0 : _.text));
|
|
161
|
+
})] }) }, id));
|
|
195
162
|
case "polygon":
|
|
196
163
|
function isPolygonClosed(points) {
|
|
197
164
|
if (points.length < 3)
|
|
@@ -204,55 +171,31 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
204
171
|
const isClosed = isPolygonClosed(points);
|
|
205
172
|
console.log({ isClosed });
|
|
206
173
|
const showPoints = (selectionLines === null || selectionLines === void 0 ? void 0 : selectionLines.id) == id;
|
|
207
|
-
return (
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
points.map((_, index) => {
|
|
212
|
-
return (<>
|
|
213
|
-
<rect data-point={JSON.stringify(_)} id={`${index}`} key={`${id}-point-${index}`} x={(_ === null || _ === void 0 ? void 0 : _.x) - 5} y={(_ === null || _ === void 0 ? void 0 : _.y) - 5} width={10} height={10} fill="#4a90e2" cursor={"pointer"}/>
|
|
214
|
-
<circle data-point={JSON.stringify(_)} id={`${index}`} key={`${id}-point-${index}`} cx={_ === null || _ === void 0 ? void 0 : _.x} cy={_ === null || _ === void 0 ? void 0 : _.y} r={15} fill="transparent" cursor={"pointer"}/>
|
|
215
|
-
</>);
|
|
216
|
-
})}
|
|
217
|
-
</g>
|
|
218
|
-
</g>);
|
|
174
|
+
return (_jsx("g", { "data-id": id, transform: `translate(${x}, ${y})`, children: _jsxs("g", { transform: `rotate(${rotation}, 0, 0)`, children: [_createElement("polygon", Object.assign({}, commonProps, { key: id, points: finalPoint, x: "0", y: "0" })), (showPoints || !isClosed) &&
|
|
175
|
+
points.map((_, index) => {
|
|
176
|
+
return (_jsxs(_Fragment, { children: [_jsx("rect", { "data-point": JSON.stringify(_), id: `${index}`, x: (_ === null || _ === void 0 ? void 0 : _.x) - 5, y: (_ === null || _ === void 0 ? void 0 : _.y) - 5, width: 10, height: 10, fill: "#4a90e2", cursor: "pointer" }, `${id}-point-${index}`), _jsx("circle", { "data-point": JSON.stringify(_), id: `${index}`, cx: _ === null || _ === void 0 ? void 0 : _.x, cy: _ === null || _ === void 0 ? void 0 : _.y, r: 15, fill: "transparent", cursor: "pointer" }, `${id}-point-${index}`)] }));
|
|
177
|
+
})] }) }, id));
|
|
219
178
|
case "selection-box":
|
|
220
179
|
const pointsFormat = !isEmpty(points)
|
|
221
180
|
? points
|
|
222
181
|
: rectToPolygonPoints(x, y, width, height);
|
|
223
|
-
return (
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
return (<text {...omit(commonProps, ["opacity", "stroke", "strokeWidth"])} key={`${id}-label-${index}`} x={x + width / 2 + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0)} y={y + height / 2 + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0)} fill={(_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black"} fontSize={`${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`} fontWeight="bold" textAnchor="middle" dominantBaseline="middle" transform={`rotate(${rotation} ${x + width / 2} ${y + height / 2})`} onClick={(e) => {
|
|
233
|
-
e.stopPropagation();
|
|
234
|
-
onClick && onClick(item);
|
|
235
|
-
}}>
|
|
236
|
-
{_ === null || _ === void 0 ? void 0 : _.label}
|
|
237
|
-
</text>);
|
|
238
|
-
})}
|
|
239
|
-
</g>
|
|
240
|
-
</g>);
|
|
182
|
+
return (_jsx("g", { "data-table": JSON.stringify(item), "data-id": id, children: _jsxs("g", { transform: `rotate(${rotation} ${x + width / 2} ${y + height / 2})`, children: [_createElement("polygon", Object.assign({}, commonProps, { key: id, points: pointsFormat })), points.map((_, index) => {
|
|
183
|
+
return (_jsx("rect", { x: (_ === null || _ === void 0 ? void 0 : _.x) - 5, y: (_ === null || _ === void 0 ? void 0 : _.y) - 5, width: 10, height: 10, fill: "blue" }, `${id}-point-${index}`));
|
|
184
|
+
}), labels === null || labels === void 0 ? void 0 : labels.map((_, index) => {
|
|
185
|
+
var _a, _b, _c, _d;
|
|
186
|
+
return (_createElement("text", Object.assign({}, omit(commonProps, ["opacity", "stroke", "strokeWidth"]), { key: `${id}-label-${index}`, x: x + width / 2 + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0), y: y + height / 2 + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0), fill: (_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black", fontSize: `${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", transform: `rotate(${rotation} ${x + width / 2} ${y + height / 2})`, onClick: (e) => {
|
|
187
|
+
e.stopPropagation();
|
|
188
|
+
onClick && onClick(item);
|
|
189
|
+
} }), _ === null || _ === void 0 ? void 0 : _.label));
|
|
190
|
+
})] }) }, id));
|
|
241
191
|
case "circle":
|
|
242
|
-
return (
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
onClick && onClick(item);
|
|
250
|
-
}}>
|
|
251
|
-
{_ === null || _ === void 0 ? void 0 : _.label}
|
|
252
|
-
</text>);
|
|
253
|
-
})}
|
|
254
|
-
</g>
|
|
255
|
-
</g>);
|
|
192
|
+
return (_jsx("g", { "data-id": id, transform: `translate(${x}, ${y})`, children: _jsxs("g", { transform: `rotate(${rotation}, 0, 0)`, children: [_jsx("circle", Object.assign({ cx: width / 2, cy: height / 2, r: Math.min(height, width) / 2, style: Object.assign({ cursor: mode === "view" ? "pointer" : "default" }, style), fill: selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill }, omit(commonProps, "opacity")), id), labels === null || labels === void 0 ? void 0 : labels.map((_, index) => {
|
|
193
|
+
var _a, _b, _c, _d;
|
|
194
|
+
return (_jsx("text", { x: width / 2 + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0), y: width / 2 + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0), fill: (_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black", fontSize: `${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", transform: `rotate(${rotation} ${x + width / 2} ${y + height / 2})`, onClick: (e) => {
|
|
195
|
+
e.stopPropagation();
|
|
196
|
+
onClick && onClick(item);
|
|
197
|
+
}, children: _ === null || _ === void 0 ? void 0 : _.label }, `${id}-label-${index}`));
|
|
198
|
+
})] }) }, id));
|
|
256
199
|
// case "elipse":
|
|
257
200
|
// return (
|
|
258
201
|
// <g
|
|
@@ -302,12 +245,7 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
302
245
|
// </g>
|
|
303
246
|
// );
|
|
304
247
|
case "diamond":
|
|
305
|
-
return (
|
|
306
|
-
<rect key={id} x={x} y={y} width={width} height={height} style={Object.assign({ cursor: mode === "view" ? "pointer" : "default" }, style)} transform={`rotate(${rotation}, ${x}, ${y})`} {...commonProps} fill={selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill}/>
|
|
307
|
-
<text x={x + width / 2} y={y + height / 2} fill={fontColor !== null && fontColor !== void 0 ? fontColor : "black"} fontSize={`${fontSize !== null && fontSize !== void 0 ? fontSize : 10}px`} fontWeight="bold" textAnchor="middle" dominantBaseline="middle">
|
|
308
|
-
{label}
|
|
309
|
-
</text>
|
|
310
|
-
</g>);
|
|
248
|
+
return (_jsxs("g", { "data-table": JSON.stringify(item), children: [_jsx("rect", Object.assign({ x: x, y: y, width: width, height: height, style: Object.assign({ cursor: mode === "view" ? "pointer" : "default" }, style), transform: `rotate(${rotation}, ${x}, ${y})` }, commonProps, { fill: selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill }), id), _jsx("text", { x: x + width / 2, y: y + height / 2, fill: fontColor !== null && fontColor !== void 0 ? fontColor : "black", fontSize: `${fontSize !== null && fontSize !== void 0 ? fontSize : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", children: label })] }, id));
|
|
311
249
|
case "table-seat-circle": {
|
|
312
250
|
const seatCount = item.seatCount;
|
|
313
251
|
const openSpace = (_a = item.openSpace) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -328,27 +266,13 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
328
266
|
const cy = centerY + (tableRadius + seatRadius) * Math.sin(angle);
|
|
329
267
|
return { cx, cy };
|
|
330
268
|
});
|
|
331
|
-
return (
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
</g>
|
|
339
|
-
|
|
340
|
-
{/* Label */}
|
|
341
|
-
{labels === null || labels === void 0 ? void 0 : labels.map((_, index) => {
|
|
342
|
-
var _a, _b, _c, _d;
|
|
343
|
-
return (<text key={`${id}-label-${index}`} x={centerX + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0)} y={centerY + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0)} fill={(_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black"} fontSize={`${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`} fontWeight="bold" textAnchor="middle" dominantBaseline="middle" transform={`rotate(${rotation} ${centerX} ${centerY})`} onClick={(e) => {
|
|
344
|
-
e.stopPropagation();
|
|
345
|
-
onClick && onClick(item);
|
|
346
|
-
}}>
|
|
347
|
-
{_ === null || _ === void 0 ? void 0 : _.label}
|
|
348
|
-
</text>);
|
|
349
|
-
})}
|
|
350
|
-
</g>
|
|
351
|
-
</g>);
|
|
269
|
+
return (_jsx("g", { "data-id": id, transform: `translate(${x}, ${y})`, children: _jsxs("g", { transform: `rotate(${rotation}, 0, 0)`, children: [_jsx("circle", Object.assign({ cx: centerX, cy: centerY, r: tableRadius, fill: selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill }, commonProps)), _jsx("g", { "data-seat": `${id}-seats`, children: seatCircles.map(({ cx, cy }, i) => (_jsx("circle", { cx: cx, cy: cy, r: seatRadius, fill: seatFill }, `${id}-seat-${i}`))) }), labels === null || labels === void 0 ? void 0 : labels.map((_, index) => {
|
|
270
|
+
var _a, _b, _c, _d;
|
|
271
|
+
return (_jsx("text", { x: centerX + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0), y: centerY + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0), fill: (_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black", fontSize: `${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", transform: `rotate(${rotation} ${centerX} ${centerY})`, onClick: (e) => {
|
|
272
|
+
e.stopPropagation();
|
|
273
|
+
onClick && onClick(item);
|
|
274
|
+
}, children: _ === null || _ === void 0 ? void 0 : _.label }, `${id}-label-${index}`));
|
|
275
|
+
})] }) }, id));
|
|
352
276
|
}
|
|
353
277
|
case "table-seat-square": {
|
|
354
278
|
const openSpace = item.openSpace || 0; // from 0 to 0.9
|
|
@@ -404,20 +328,7 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
404
328
|
cy,
|
|
405
329
|
id: "right",
|
|
406
330
|
}));
|
|
407
|
-
return (
|
|
408
|
-
<g transform={`rotate(${rotation}, 0, 0)`}>
|
|
409
|
-
{/* Square Table */}
|
|
410
|
-
<rect width={width} height={height} {...commonProps} fill={selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill}/>
|
|
411
|
-
{/* Seats */}
|
|
412
|
-
<g fill="#e6b9c0" stroke="#c49ba3" strokeWidth="1" key={`${id}-seats`} data-seat={`${id}-seats`} transform={`translate(${-x}, ${-y})`}>
|
|
413
|
-
{[...topSeats, ...bottomSeats, ...leftSeats, ...rightSeats].map(({ cx, cy, id }, i) => (<circle key={`${id}-seat-${i}`} id={`seat-${id}`} cx={cx} cy={cy} r={r} fill={seatFill}/>))}
|
|
414
|
-
</g>
|
|
415
|
-
|
|
416
|
-
<text x={x + width / 2} y={y + height / 2} fill={fontColor !== null && fontColor !== void 0 ? fontColor : "black"} fontSize={`${fontSize !== null && fontSize !== void 0 ? fontSize : 10}px`} fontWeight="bold" textAnchor="middle" dominantBaseline="middle">
|
|
417
|
-
{label}
|
|
418
|
-
</text>
|
|
419
|
-
</g>
|
|
420
|
-
</g>);
|
|
331
|
+
return (_jsx("g", { "data-id": id, transform: `translate(${x}, ${y})`, children: _jsxs("g", { transform: `rotate(${rotation}, 0, 0)`, children: [_jsx("rect", Object.assign({ width: width, height: height }, commonProps, { fill: selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill })), _jsx("g", { fill: "#e6b9c0", stroke: "#c49ba3", strokeWidth: "1", "data-seat": `${id}-seats`, transform: `translate(${-x}, ${-y})`, children: [...topSeats, ...bottomSeats, ...leftSeats, ...rightSeats].map(({ cx, cy, id }, i) => (_jsx("circle", { id: `seat-${id}`, cx: cx, cy: cy, r: r, fill: seatFill }, `${id}-seat-${i}`))) }, `${id}-seats`), _jsx("text", { x: x + width / 2, y: y + height / 2, fill: fontColor !== null && fontColor !== void 0 ? fontColor : "black", fontSize: `${fontSize !== null && fontSize !== void 0 ? fontSize : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", children: label })] }) }, id));
|
|
421
332
|
}
|
|
422
333
|
case "table-seat-square-side": {
|
|
423
334
|
const seatRadius = Math.min(width, height) * 0.15;
|
|
@@ -479,49 +390,23 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
479
390
|
// cy: y + height / 2,
|
|
480
391
|
// },
|
|
481
392
|
// ];
|
|
482
|
-
return (
|
|
483
|
-
<g transform={`rotate(${rotation}, 0, 0)`}>
|
|
484
|
-
{/* Seats */}
|
|
485
|
-
{/* Square Table */}
|
|
486
|
-
<rect x={x} y={y} width={width} height={height} rx={10} {...commonProps} fill={selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill}/>
|
|
487
|
-
<g>
|
|
488
|
-
{seats === null || seats === void 0 ? void 0 : seats.map(({ d }, i) => (<path key={`${id}-seat-${i}`} id={`seat-${id}`} d={d} fill="white"/>))}
|
|
489
|
-
</g>
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
{/* Label */}
|
|
494
|
-
<text x={x + width / 2} y={y + height / 2} fill={fontColor !== null && fontColor !== void 0 ? fontColor : "black"} fontSize={`${fontSize !== null && fontSize !== void 0 ? fontSize : 10}px`} fontWeight="bold" textAnchor="middle" dominantBaseline="middle">
|
|
495
|
-
{label}
|
|
496
|
-
</text>
|
|
497
|
-
</g>
|
|
498
|
-
</g>);
|
|
393
|
+
return (_jsx("g", { transform: `translate(${x}, ${y}) )`, "data-id": id, children: _jsxs("g", { transform: `rotate(${rotation}, 0, 0)`, children: [_jsx("rect", Object.assign({ x: x, y: y, width: width, height: height, rx: 10 }, commonProps, { fill: selectedTableColor !== null && selectedTableColor !== void 0 ? selectedTableColor : fill })), _jsx("g", { children: seats === null || seats === void 0 ? void 0 : seats.map(({ d }, i) => (_jsx("path", { id: `seat-${id}`, d: d, fill: "white" }, `${id}-seat-${i}`))) }), _jsx("text", { x: x + width / 2, y: y + height / 2, fill: fontColor !== null && fontColor !== void 0 ? fontColor : "black", fontSize: `${fontSize !== null && fontSize !== void 0 ? fontSize : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", children: label })] }) }, id));
|
|
499
394
|
}
|
|
500
395
|
case "text":
|
|
501
|
-
return (
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
}}/>
|
|
506
|
-
<text x={x + width / 2} y={y + height / 2} textAnchor="middle" dominantBaseline="middle" fill={fontColor} fontSize={fontSize !== null && fontSize !== void 0 ? fontSize : height * 0.6} opacity={opacity} {...omit(commonProps, ["fill", "opacity"])}>
|
|
507
|
-
{text}
|
|
508
|
-
</text>
|
|
509
|
-
</g>);
|
|
396
|
+
return (_jsxs("g", { "data-table": JSON.stringify(item), children: [_jsx("rect", { x: x, y: y, width: width, height: height, fill: "transparent", opacity: opacity, onClick: (e) => {
|
|
397
|
+
e.stopPropagation();
|
|
398
|
+
onClick && onClick(item);
|
|
399
|
+
} }), _jsx("text", Object.assign({ x: x + width / 2, y: y + height / 2, textAnchor: "middle", dominantBaseline: "middle", fill: fontColor, fontSize: fontSize !== null && fontSize !== void 0 ? fontSize : height * 0.6, opacity: opacity }, omit(commonProps, ["fill", "opacity"]), { children: text }))] }, id));
|
|
510
400
|
case "image-table":
|
|
511
401
|
case "background":
|
|
512
|
-
return (
|
|
402
|
+
return (_jsxs("g", { onClick: () => {
|
|
513
403
|
onClick && onClick(item);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
return (<text key={index} x={x + width / 2 + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0)} y={y + height / 2 + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0)} fill={(_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black"} fontSize={`${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`} fontWeight="bold" textAnchor="middle" dominantBaseline="middle" transform={`rotate(${rotation} ${x + width / 2} ${y + height / 2})`}>
|
|
519
|
-
{_ === null || _ === void 0 ? void 0 : _.label}
|
|
520
|
-
</text>);
|
|
521
|
-
})}
|
|
522
|
-
</g>);
|
|
404
|
+
}, "data-table": JSON.stringify(item), children: [_jsx("image", Object.assign({ href: src, x: x, y: y, width: width, height: height, transform: `rotate(${rotation} ${x + width / 2} ${y + height / 2})` }, commonProps)), labels === null || labels === void 0 ? void 0 : labels.map((_, index) => {
|
|
405
|
+
var _a, _b, _c, _d;
|
|
406
|
+
return (_jsx("text", { x: x + width / 2 + ((_a = _ === null || _ === void 0 ? void 0 : _.x) !== null && _a !== void 0 ? _a : 0), y: y + height / 2 + ((_b = _ === null || _ === void 0 ? void 0 : _.y) !== null && _b !== void 0 ? _b : 0), fill: (_c = _ === null || _ === void 0 ? void 0 : _.fontColor) !== null && _c !== void 0 ? _c : "black", fontSize: `${(_d = _ === null || _ === void 0 ? void 0 : _.fontSize) !== null && _d !== void 0 ? _d : 10}px`, fontWeight: "bold", textAnchor: "middle", dominantBaseline: "middle", transform: `rotate(${rotation} ${x + width / 2} ${y + height / 2})`, children: _ === null || _ === void 0 ? void 0 : _.label }, index));
|
|
407
|
+
})] }, id));
|
|
523
408
|
default:
|
|
524
|
-
return
|
|
409
|
+
return _jsx("g", {}, id);
|
|
525
410
|
}
|
|
526
411
|
};
|
|
527
412
|
let date = new Date();
|
|
@@ -532,68 +417,43 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
|
|
|
532
417
|
const polylinePoints = [...nodesRaw, nodesRaw[0]]
|
|
533
418
|
.map((n) => `${n.x},${n.y}`)
|
|
534
419
|
.join(" ");
|
|
535
|
-
return (
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
: "
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
case 1:
|
|
573
|
-
return "top";
|
|
574
|
-
case 2:
|
|
575
|
-
return "top-right";
|
|
576
|
-
case 3:
|
|
577
|
-
return "right";
|
|
578
|
-
case 4:
|
|
579
|
-
return "bottom-right";
|
|
580
|
-
case 5:
|
|
581
|
-
return "bottom";
|
|
582
|
-
case 6:
|
|
583
|
-
return "bottom-left";
|
|
584
|
-
case 7:
|
|
585
|
-
return "left";
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
return (<>
|
|
589
|
-
<circle data-position={corner(index)} key={index} r={5} cx={node.x} cy={node.y} fill="transparent" style={{ cursor: "pointer" }}/>
|
|
590
|
-
<circle data-position={corner(index)} key={index} r={5} cx={node.x} cy={node.y} fill="#4a90e2" id={`circle-corner-${selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id}`} style={{ cursor: "pointer" }}/>
|
|
591
|
-
</>);
|
|
592
|
-
}))}
|
|
593
|
-
</g>
|
|
594
|
-
</g>
|
|
595
|
-
</>)}
|
|
596
|
-
</g>);
|
|
420
|
+
return (_jsxs("g", { id: "selection-layer", children: [components === null || components === void 0 ? void 0 : components.map(renderShape), shadowShape === null || shadowShape === void 0 ? void 0 : shadowShape.map(renderShadowShape), !isEmpty(selectionLines) && activeTool === "select" && (_jsxs(_Fragment, { children: [nodesRaw.map((p1, index) => {
|
|
421
|
+
const p2 = nodesRaw[(index + 2) % nodesRaw.length];
|
|
422
|
+
const side = index === 0
|
|
423
|
+
? "top"
|
|
424
|
+
: index === 1
|
|
425
|
+
? "right"
|
|
426
|
+
: index === 2
|
|
427
|
+
? "bottom"
|
|
428
|
+
: "left";
|
|
429
|
+
const mx = (p1.x + p2.x) / 2;
|
|
430
|
+
const my = (p1.y + p2.y) / 2;
|
|
431
|
+
if (side === "top")
|
|
432
|
+
return (_jsx("g", { id: "help-group-0", "data-selection": `selection-${selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id}`, transform: `translate(${selectionLines === null || selectionLines === void 0 ? void 0 : selectionLines.x},${selectionLines === null || selectionLines === void 0 ? void 0 : selectionLines.y})`, children: _jsx("g", { transform: `rotate(${(selectionLines === null || selectionLines === void 0 ? void 0 : selectionLines.rotation) || 0}, 0,0)`, children: side === "top" && (_jsxs("g", { id: "help-group-1", children: [_jsx("line", { x1: mx, y1: my + selectionLines.height / 2, x2: mx, y2: my - selectionLines.height / 3 - 10, stroke: "#4a90e2", strokeWidth: 2, id: "line-help" }), _jsx("circle", { id: "circle-help", "data-role": "rotate", cx: mx, cy: my - selectionLines.height / 3 - 10, r: 8, fill: "#4a90e2" })] })) }) }, `selection-${date}`));
|
|
433
|
+
}), _jsx("g", { id: "selection-lines", "data-selection": `selection-${(_a = selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id) !== null && _a !== void 0 ? _a : selectionLines === null || selectionLines === void 0 ? void 0 : selectionLines.id}`, transform: `translate(${selectionLines === null || selectionLines === void 0 ? void 0 : selectionLines.x},${selectionLines === null || selectionLines === void 0 ? void 0 : selectionLines.y})`, children: _jsxs("g", { transform: `rotate(${(selectionLines === null || selectionLines === void 0 ? void 0 : selectionLines.rotation) || 0}, 0,0)`, children: [!hasPoints && (_jsx("rect", { width: selectionLines.width, height: selectionLines.height, fill: "none", stroke: "#4a90e2", strokeWidth: 1, id: "rect-box-selection" })), !hasPoints &&
|
|
434
|
+
(nodesRaw === null || nodesRaw === void 0 ? void 0 : nodesRaw.map((node, index) => {
|
|
435
|
+
const corner = (index) => {
|
|
436
|
+
switch (index) {
|
|
437
|
+
case 0:
|
|
438
|
+
return "top-left";
|
|
439
|
+
case 1:
|
|
440
|
+
return "top";
|
|
441
|
+
case 2:
|
|
442
|
+
return "top-right";
|
|
443
|
+
case 3:
|
|
444
|
+
return "right";
|
|
445
|
+
case 4:
|
|
446
|
+
return "bottom-right";
|
|
447
|
+
case 5:
|
|
448
|
+
return "bottom";
|
|
449
|
+
case 6:
|
|
450
|
+
return "bottom-left";
|
|
451
|
+
case 7:
|
|
452
|
+
return "left";
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
return (_jsxs(_Fragment, { children: [_jsx("circle", { "data-position": corner(index), r: 5, cx: node.x, cy: node.y, fill: "transparent", style: { cursor: "pointer" } }, index), _jsx("circle", { "data-position": corner(index), r: 5, cx: node.x, cy: node.y, fill: "#4a90e2", id: `circle-corner-${selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id}`, style: { cursor: "pointer" } }, index)] }));
|
|
456
|
+
}))] }) }, `selection-${date}`)] }))] }, `${date}`));
|
|
597
457
|
};
|
|
598
458
|
export default Layers;
|
|
599
459
|
export function rectToPolygonNodes(x, y, width, height) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventHandleType } from "
|
|
1
|
+
import { EventHandleType } from "../../dto/event-handler";
|
|
2
2
|
import { PropertiesProps } from "@/dto/table";
|
|
3
|
-
import { TableMatchEvent } from "
|
|
3
|
+
import { TableMatchEvent } from "../../features/view-only-3";
|
|
4
4
|
interface LayersProps {
|
|
5
5
|
components?: PropertiesProps[];
|
|
6
6
|
selectedComponent?: PropertiesProps;
|
|
@@ -16,5 +16,5 @@ interface LayersProps {
|
|
|
16
16
|
onForceRestoreGroup?: (group: SVGGElement, eventType: EventHandleType) => void;
|
|
17
17
|
selectedTableColor?: string;
|
|
18
18
|
}
|
|
19
|
-
declare const Layers: ({ components, selectedTable, iconTags, eventMatchTable, onHighlightGroup, onForceRestoreGroup, selectedTableColor, }: LayersProps) => import("react").JSX.Element;
|
|
19
|
+
declare const Layers: ({ components, selectedTable, iconTags, eventMatchTable, onHighlightGroup, onForceRestoreGroup, selectedTableColor, }: LayersProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default Layers;
|