seat-editor 3.4.5 → 3.4.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.d.ts +5 -0
- package/dist/app/constant.js +3 -0
- package/dist/components/layer-v4/index.js +3 -2
- package/dist/components/layer-v4/index.jsx +3 -2
- package/dist/features/panel/selected-group.js +1 -1
- package/dist/features/panel/selected-group.jsx +1 -1
- package/package.json +1 -1
package/dist/app/constant.d.ts
CHANGED
|
@@ -277,6 +277,7 @@ export declare const test4: ({
|
|
|
277
277
|
seatCount: number;
|
|
278
278
|
uuid_table: string;
|
|
279
279
|
gapTags: number;
|
|
280
|
+
fontSize: number;
|
|
280
281
|
stroke?: undefined;
|
|
281
282
|
strokeWidth?: undefined;
|
|
282
283
|
text?: undefined;
|
|
@@ -296,6 +297,7 @@ export declare const test4: ({
|
|
|
296
297
|
width: number;
|
|
297
298
|
height: number;
|
|
298
299
|
gapTags: number;
|
|
300
|
+
fontSize: number;
|
|
299
301
|
labels: {
|
|
300
302
|
x: number;
|
|
301
303
|
y: number;
|
|
@@ -421,6 +423,7 @@ export declare const data4: ({
|
|
|
421
423
|
rotation: number;
|
|
422
424
|
openSpace: number;
|
|
423
425
|
seatFill: string;
|
|
426
|
+
fontSize: number;
|
|
424
427
|
radius?: undefined;
|
|
425
428
|
seatCount?: undefined;
|
|
426
429
|
};
|
|
@@ -518,6 +521,7 @@ export declare const data4: ({
|
|
|
518
521
|
fontSize: number;
|
|
519
522
|
rotation: number;
|
|
520
523
|
}[];
|
|
524
|
+
fontSize?: undefined;
|
|
521
525
|
seatCount?: undefined;
|
|
522
526
|
};
|
|
523
527
|
uuid_table?: undefined;
|
|
@@ -576,6 +580,7 @@ export declare const data4: ({
|
|
|
576
580
|
seatCount: number;
|
|
577
581
|
openSpace?: undefined;
|
|
578
582
|
seatFill?: undefined;
|
|
583
|
+
fontSize?: undefined;
|
|
579
584
|
radius?: undefined;
|
|
580
585
|
};
|
|
581
586
|
uuid_table?: undefined;
|
package/dist/app/constant.js
CHANGED
|
@@ -3437,6 +3437,7 @@ export const test4 = [
|
|
|
3437
3437
|
seatCount: 0,
|
|
3438
3438
|
uuid_table: "d088bba0-e990-410e-aea9-08548175a0b9",
|
|
3439
3439
|
gapTags: 20,
|
|
3440
|
+
fontSize: 30,
|
|
3440
3441
|
},
|
|
3441
3442
|
},
|
|
3442
3443
|
{
|
|
@@ -3455,6 +3456,7 @@ export const test4 = [
|
|
|
3455
3456
|
height: 100,
|
|
3456
3457
|
gapTags: 20, //gap antara tags secara vertical,
|
|
3457
3458
|
// status: "hold",
|
|
3459
|
+
fontSize: 20,
|
|
3458
3460
|
labels: [
|
|
3459
3461
|
{
|
|
3460
3462
|
x: 0,
|
|
@@ -3617,6 +3619,7 @@ export const data4 = [
|
|
|
3617
3619
|
// seatCount: 10,
|
|
3618
3620
|
openSpace: 0.3,
|
|
3619
3621
|
seatFill: "#ed8989",
|
|
3622
|
+
fontSize: 50,
|
|
3620
3623
|
// seatPositions: {
|
|
3621
3624
|
// top: 3,
|
|
3622
3625
|
// bottom: 3,
|
|
@@ -139,10 +139,11 @@ const Layers = ({ components, selectedTable, iconTags, eventMatchTable, onHighli
|
|
|
139
139
|
const iconTag = icons === null || icons === void 0 ? void 0 : icons.find((icon) => icon.key === item.value);
|
|
140
140
|
if (!iconTag)
|
|
141
141
|
return null;
|
|
142
|
-
|
|
142
|
+
const scale = defaultFontSize / 12;
|
|
143
|
+
return (_createElement("g", Object.assign({}, item, { key: `icon-${tagIndex}-${i}`, transform: `translate(${posX - defaultFontSize}, ${posY - defaultFontSize / 2}) scale(${scale})` }), iconTag.icon));
|
|
143
144
|
}
|
|
144
145
|
if (item.type === "text") {
|
|
145
|
-
return (_createElement("text", Object.assign({}, item, { key: `text-${tagIndex}-${i}`, x: posX, y: posY, textAnchor: "middle", dominantBaseline: "middle", fontSize:
|
|
146
|
+
return (_createElement("text", Object.assign({}, item, { key: `text-${tagIndex}-${i}`, x: posX, y: posY, textAnchor: "middle", dominantBaseline: "middle", fontSize: defaultFontSize }),
|
|
146
147
|
item.value,
|
|
147
148
|
" ",
|
|
148
149
|
renderSymbol(item === null || item === void 0 ? void 0 : item.symbol)));
|
|
@@ -139,12 +139,13 @@ const Layers = ({ components, selectedTable, iconTags, eventMatchTable, onHighli
|
|
|
139
139
|
const iconTag = icons === null || icons === void 0 ? void 0 : icons.find((icon) => icon.key === item.value);
|
|
140
140
|
if (!iconTag)
|
|
141
141
|
return null;
|
|
142
|
-
|
|
142
|
+
const scale = defaultFontSize / 12;
|
|
143
|
+
return (<g {...item} key={`icon-${tagIndex}-${i}`} transform={`translate(${posX - defaultFontSize}, ${posY - defaultFontSize / 2}) scale(${scale})`}>
|
|
143
144
|
{iconTag.icon}
|
|
144
145
|
</g>);
|
|
145
146
|
}
|
|
146
147
|
if (item.type === "text") {
|
|
147
|
-
return (<text {...item} key={`text-${tagIndex}-${i}`} x={posX} y={posY} textAnchor="middle" dominantBaseline="middle" fontSize={
|
|
148
|
+
return (<text {...item} key={`text-${tagIndex}-${i}`} x={posX} y={posY} textAnchor="middle" dominantBaseline="middle" fontSize={defaultFontSize}>
|
|
148
149
|
{item.value} {renderSymbol(item === null || item === void 0 ? void 0 : item.symbol)}
|
|
149
150
|
</text>);
|
|
150
151
|
}
|
|
@@ -5,7 +5,7 @@ import { ColorPicker, Flex, Form, InputNumber, Select } from "antd";
|
|
|
5
5
|
import SeatCircle from "./table-seat-circle";
|
|
6
6
|
import SeatSquare from "./table-seat-square";
|
|
7
7
|
import { useAppSelector } from "../../hooks/use-redux";
|
|
8
|
-
import SectionLabel from "
|
|
8
|
+
import SectionLabel from "../../components/form-tools/label";
|
|
9
9
|
const { Option } = Select;
|
|
10
10
|
const SelectedGroup = () => {
|
|
11
11
|
var _a;
|
|
@@ -4,7 +4,7 @@ import { ColorPicker, Flex, Form, InputNumber, Select } from "antd";
|
|
|
4
4
|
import SeatCircle from "./table-seat-circle";
|
|
5
5
|
import SeatSquare from "./table-seat-square";
|
|
6
6
|
import { useAppSelector } from "../../hooks/use-redux";
|
|
7
|
-
import SectionLabel from "
|
|
7
|
+
import SectionLabel from "../../components/form-tools/label";
|
|
8
8
|
const { Option } = Select;
|
|
9
9
|
const SelectedGroup = () => {
|
|
10
10
|
var _a;
|