@zonetrix/viewer 2.10.7 → 2.11.0
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/index.js +1 -1
- package/dist/index.mjs +584 -557
- package/dist/types/index.d.ts +28 -1
- package/package.json +1 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type SeatState = "available" | "reserved" | "selected" | "unavailable" | "hidden";
|
|
2
2
|
export type SeatShape = "circle" | "square" | "rounded-square";
|
|
3
|
+
export type ObjectShape = "rectangle" | "circle" | "triangle" | "arrow";
|
|
3
4
|
export interface SeatData {
|
|
4
5
|
id: string;
|
|
5
6
|
state: SeatState;
|
|
@@ -35,13 +36,38 @@ export interface SerializedSection {
|
|
|
35
36
|
config: any;
|
|
36
37
|
seatIds: string[];
|
|
37
38
|
}
|
|
39
|
+
export interface StageConfig {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
label: string;
|
|
43
|
+
objectType?: string;
|
|
44
|
+
color?: string;
|
|
45
|
+
rotation?: number;
|
|
46
|
+
shape?: ObjectShape;
|
|
47
|
+
showLabel?: boolean;
|
|
48
|
+
}
|
|
38
49
|
export interface SerializedStage {
|
|
39
50
|
id: string;
|
|
40
51
|
position: {
|
|
41
52
|
x: number;
|
|
42
53
|
y: number;
|
|
43
54
|
};
|
|
44
|
-
config:
|
|
55
|
+
config: StageConfig;
|
|
56
|
+
floorId?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface TextConfig {
|
|
59
|
+
text: string;
|
|
60
|
+
fontSize: number;
|
|
61
|
+
color: string;
|
|
62
|
+
rotation?: number;
|
|
63
|
+
}
|
|
64
|
+
export interface SerializedText {
|
|
65
|
+
id: string;
|
|
66
|
+
position: {
|
|
67
|
+
x: number;
|
|
68
|
+
y: number;
|
|
69
|
+
};
|
|
70
|
+
config: TextConfig;
|
|
45
71
|
floorId?: string;
|
|
46
72
|
}
|
|
47
73
|
export interface FloorConfig {
|
|
@@ -80,6 +106,7 @@ export interface SeatMapConfig {
|
|
|
80
106
|
seats: SerializedSeat[];
|
|
81
107
|
sections?: SerializedSection[];
|
|
82
108
|
stages?: SerializedStage[];
|
|
109
|
+
texts?: SerializedText[];
|
|
83
110
|
floors?: FloorConfig[];
|
|
84
111
|
}
|
|
85
112
|
export declare const DEFAULT_COLORS: ColorSettings;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zonetrix/viewer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Lightweight React component for rendering interactive seat maps",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -61,8 +61,5 @@
|
|
|
61
61
|
"typescript": "^5.8.3",
|
|
62
62
|
"vite": "^7.3.0",
|
|
63
63
|
"vite-plugin-dts": "^4.5.4"
|
|
64
|
-
},
|
|
65
|
-
"dependencies": {
|
|
66
|
-
"@zonetrix/viewer": "file:../seat-map-studio/packages/viewer"
|
|
67
64
|
}
|
|
68
65
|
}
|