@seatmap-fyi/map-domain 0.1.0-alpha.2 → 0.1.0-alpha.29
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/catalog.d.ts +10 -3
- package/dist/catalog.js +66 -10
- package/dist/categories.d.ts +26 -0
- package/dist/categories.js +168 -0
- package/dist/editor-state.d.ts +49 -0
- package/dist/editor-state.js +266 -0
- package/dist/floors.d.ts +19 -0
- package/dist/floors.js +68 -0
- package/dist/geometry/boundary.d.ts +1 -1
- package/dist/geometry/boundary.js +10 -12
- package/dist/geometry/curve-warnings.d.ts +1 -1
- package/dist/geometry/curve-warnings.js +3 -5
- package/dist/geometry/decoration-bounds.d.ts +4 -0
- package/dist/geometry/decoration-bounds.js +42 -0
- package/dist/geometry/ellipse.js +4 -12
- package/dist/geometry/geometry.d.ts +12 -3
- package/dist/geometry/geometry.js +35 -26
- package/dist/geometry/polygon-curves.d.ts +12 -0
- package/dist/geometry/polygon-curves.js +132 -0
- package/dist/geometry/primitives.d.ts +1 -1
- package/dist/geometry/primitives.js +2 -3
- package/dist/geometry/seat-shape.d.ts +24 -0
- package/dist/geometry/seat-shape.js +101 -0
- package/dist/geometry/seating-layout.d.ts +14 -3
- package/dist/geometry/seating-layout.js +91 -19
- package/dist/geometry/units.d.ts +1 -0
- package/dist/geometry/units.js +2 -0
- package/dist/geometry/venue-outline.d.ts +2 -2
- package/dist/geometry/venue-outline.js +8 -21
- package/dist/identity.d.ts +4 -1
- package/dist/identity.js +36 -10
- package/dist/issues.d.ts +9 -2
- package/dist/issues.js +8 -6
- package/dist/labels.d.ts +12 -1
- package/dist/labels.js +76 -11
- package/dist/layers.d.ts +26 -0
- package/dist/layers.js +86 -0
- package/dist/media.d.ts +27 -0
- package/dist/media.js +89 -0
- package/dist/physical-document.interface.d.ts +518 -0
- package/dist/{types.js → physical-document.interface.js} +71 -0
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +65 -24
- package/dist/reference.js +1 -1
- package/dist/row-segments.d.ts +30 -0
- package/dist/row-segments.js +112 -0
- package/dist/schema.d.ts +1192 -68
- package/dist/schema.js +372 -96
- package/dist/seat-proximity.d.ts +4 -0
- package/dist/seat-proximity.js +119 -0
- package/dist/sections.d.ts +23 -0
- package/dist/sections.js +149 -0
- package/dist/selling.d.ts +34 -0
- package/dist/selling.js +148 -0
- package/dist/spacing-repairs.d.ts +31 -0
- package/dist/spacing-repairs.js +168 -0
- package/dist/table-layout.d.ts +29 -0
- package/dist/table-layout.js +134 -0
- package/dist/validation.d.ts +3 -1
- package/dist/validation.js +124 -74
- package/package.json +59 -3
- package/dist/types.d.ts +0 -313
package/dist/types.d.ts
DELETED
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
export declare const DocumentLimits: {
|
|
2
|
-
readonly PhysicalSeats: 100000;
|
|
3
|
-
readonly JsonBytes: number;
|
|
4
|
-
};
|
|
5
|
-
export type UUID = string;
|
|
6
|
-
export type PointM = {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
};
|
|
10
|
-
export type SizeM = {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
};
|
|
14
|
-
export type Transform = {
|
|
15
|
-
positionM: PointM;
|
|
16
|
-
rotationDeg: number;
|
|
17
|
-
flipX?: boolean;
|
|
18
|
-
flipY?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type PolygonM = {
|
|
21
|
-
outer: PointM[];
|
|
22
|
-
holes: PointM[][];
|
|
23
|
-
};
|
|
24
|
-
export type Paint = {
|
|
25
|
-
color: string;
|
|
26
|
-
opacity: number;
|
|
27
|
-
};
|
|
28
|
-
export declare enum NumberingScheme {
|
|
29
|
-
Numeric = "numeric",
|
|
30
|
-
Odd = "odd",
|
|
31
|
-
Even = "even",
|
|
32
|
-
Alphabetic = "alphabetic"
|
|
33
|
-
}
|
|
34
|
-
export declare enum LabelDirection {
|
|
35
|
-
Forward = "forward",
|
|
36
|
-
Reverse = "reverse"
|
|
37
|
-
}
|
|
38
|
-
export type LabelSequence = {
|
|
39
|
-
scheme: NumberingScheme;
|
|
40
|
-
startAt: number;
|
|
41
|
-
direction: LabelDirection;
|
|
42
|
-
prefix?: string;
|
|
43
|
-
suffix?: string;
|
|
44
|
-
};
|
|
45
|
-
export type LabelStyle = {
|
|
46
|
-
visible: boolean;
|
|
47
|
-
fontSizeM: number;
|
|
48
|
-
};
|
|
49
|
-
export declare enum RowLabelPosition {
|
|
50
|
-
Left = "left",
|
|
51
|
-
Right = "right",
|
|
52
|
-
Both = "both"
|
|
53
|
-
}
|
|
54
|
-
export type RowLabelStyle = LabelStyle & {
|
|
55
|
-
position: RowLabelPosition;
|
|
56
|
-
};
|
|
57
|
-
export type SeatAttributes = {
|
|
58
|
-
accessible?: boolean;
|
|
59
|
-
restrictedView?: boolean;
|
|
60
|
-
hearingAssistance?: boolean;
|
|
61
|
-
semiAmbulatory?: boolean;
|
|
62
|
-
companionForSeatId?: UUID;
|
|
63
|
-
};
|
|
64
|
-
export type SeatSlot = {
|
|
65
|
-
id: UUID;
|
|
66
|
-
labelOverride?: string;
|
|
67
|
-
attributes?: SeatAttributes;
|
|
68
|
-
override?: {
|
|
69
|
-
offsetM?: PointM;
|
|
70
|
-
rotationDeltaDeg?: number;
|
|
71
|
-
sizeM?: SizeM;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
export type RowSlot = {
|
|
75
|
-
id: UUID;
|
|
76
|
-
labelOverride?: string;
|
|
77
|
-
offsetM?: PointM;
|
|
78
|
-
seatSequenceOverride?: LabelSequence;
|
|
79
|
-
seats: SeatSlot[];
|
|
80
|
-
};
|
|
81
|
-
export type DrawableBase = {
|
|
82
|
-
id: UUID;
|
|
83
|
-
parentId: UUID | null;
|
|
84
|
-
transform: Transform;
|
|
85
|
-
zIndex: number;
|
|
86
|
-
};
|
|
87
|
-
export type GroupBase = DrawableBase & {
|
|
88
|
-
name: string;
|
|
89
|
-
sectionId: UUID | null;
|
|
90
|
-
seatSizeM: SizeM;
|
|
91
|
-
boundary?: PolygonM;
|
|
92
|
-
seatLabelStyle: LabelStyle;
|
|
93
|
-
};
|
|
94
|
-
export type RowsLabels = {
|
|
95
|
-
rows: LabelSequence;
|
|
96
|
-
seats: LabelSequence;
|
|
97
|
-
rowStyle: RowLabelStyle;
|
|
98
|
-
};
|
|
99
|
-
export declare enum RowAlignment {
|
|
100
|
-
Start = "start",
|
|
101
|
-
Center = "center",
|
|
102
|
-
End = "end"
|
|
103
|
-
}
|
|
104
|
-
export declare enum LabelAlignment {
|
|
105
|
-
Left = "left",
|
|
106
|
-
Center = "center",
|
|
107
|
-
Right = "right"
|
|
108
|
-
}
|
|
109
|
-
export type StraightRows = GroupBase & {
|
|
110
|
-
kind: SeatingKind.Straight;
|
|
111
|
-
recipe: {
|
|
112
|
-
seatPitchM: number;
|
|
113
|
-
rowPitchM: number;
|
|
114
|
-
rowAlignment?: RowAlignment;
|
|
115
|
-
};
|
|
116
|
-
labels: RowsLabels;
|
|
117
|
-
rows: RowSlot[];
|
|
118
|
-
};
|
|
119
|
-
export type CurvedRows = GroupBase & {
|
|
120
|
-
kind: SeatingKind.Curved;
|
|
121
|
-
recipe: {
|
|
122
|
-
innerRadiusM: number;
|
|
123
|
-
axisRatio?: number;
|
|
124
|
-
rowPitchM: number;
|
|
125
|
-
placement: {
|
|
126
|
-
kind: CurveMode.Sweep;
|
|
127
|
-
startAngleDeg: number;
|
|
128
|
-
sweepAngleDeg: number;
|
|
129
|
-
} | {
|
|
130
|
-
kind: CurveMode.Pitch;
|
|
131
|
-
centerAngleDeg: number;
|
|
132
|
-
seatPitchM: number;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
labels: RowsLabels;
|
|
136
|
-
rows: RowSlot[];
|
|
137
|
-
};
|
|
138
|
-
export type TableLabels = {
|
|
139
|
-
table: string;
|
|
140
|
-
chairs: LabelSequence;
|
|
141
|
-
tableStyle: LabelStyle;
|
|
142
|
-
};
|
|
143
|
-
export type RectangularTable = GroupBase & {
|
|
144
|
-
kind: SeatingKind.Rectangular;
|
|
145
|
-
recipe: {
|
|
146
|
-
widthM: number;
|
|
147
|
-
depthM: number;
|
|
148
|
-
chairGapM: number;
|
|
149
|
-
chairPitchM?: number;
|
|
150
|
-
};
|
|
151
|
-
labels: TableLabels;
|
|
152
|
-
chairsBySide: {
|
|
153
|
-
top: SeatSlot[];
|
|
154
|
-
right: SeatSlot[];
|
|
155
|
-
bottom: SeatSlot[];
|
|
156
|
-
left: SeatSlot[];
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
export type RoundTable = GroupBase & {
|
|
160
|
-
kind: SeatingKind.Round;
|
|
161
|
-
recipe: {
|
|
162
|
-
diameterM: number;
|
|
163
|
-
chairGapM: number;
|
|
164
|
-
startAngleDeg: number;
|
|
165
|
-
};
|
|
166
|
-
labels: TableLabels;
|
|
167
|
-
chairs: SeatSlot[];
|
|
168
|
-
};
|
|
169
|
-
export type SeatingGroup = StraightRows | CurvedRows | RectangularTable | RoundTable;
|
|
170
|
-
export type GeneralAdmission = DrawableBase & {
|
|
171
|
-
kind: AreaKind.GeneralAdmission;
|
|
172
|
-
sectionId: UUID | null;
|
|
173
|
-
label: string;
|
|
174
|
-
labelStyle: LabelStyle;
|
|
175
|
-
capacity: number;
|
|
176
|
-
shape: {
|
|
177
|
-
kind: ShapeKind.Rectangle;
|
|
178
|
-
widthM: number;
|
|
179
|
-
heightM: number;
|
|
180
|
-
cornerRadiusM: number;
|
|
181
|
-
} | {
|
|
182
|
-
kind: ShapeKind.Polygon;
|
|
183
|
-
boundary: PolygonM;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
export type DecorationStyle = {
|
|
187
|
-
fill?: Paint;
|
|
188
|
-
stroke?: Paint;
|
|
189
|
-
strokeWidthM?: number;
|
|
190
|
-
};
|
|
191
|
-
export type Decoration = DrawableBase & ({
|
|
192
|
-
kind: DecorationKind.Text;
|
|
193
|
-
text: string;
|
|
194
|
-
fontSizeM: number;
|
|
195
|
-
align: LabelAlignment;
|
|
196
|
-
} | {
|
|
197
|
-
kind: DecorationKind.Rectangle;
|
|
198
|
-
sizeM: SizeM;
|
|
199
|
-
cornerRadiusM: number;
|
|
200
|
-
} | {
|
|
201
|
-
kind: DecorationKind.Circle;
|
|
202
|
-
radiusM: number;
|
|
203
|
-
} | {
|
|
204
|
-
kind: DecorationKind.Line;
|
|
205
|
-
pointsM: PointM[];
|
|
206
|
-
} | {
|
|
207
|
-
kind: DecorationKind.Polygon;
|
|
208
|
-
boundary: PolygonM;
|
|
209
|
-
} | {
|
|
210
|
-
kind: DecorationKind.Icon;
|
|
211
|
-
iconId: VenueGlyph;
|
|
212
|
-
sizeM: SizeM;
|
|
213
|
-
} | {
|
|
214
|
-
kind: DecorationKind.Image;
|
|
215
|
-
assetId: UUID;
|
|
216
|
-
sizeM: SizeM;
|
|
217
|
-
opacity: number;
|
|
218
|
-
}) & {
|
|
219
|
-
style?: DecorationStyle;
|
|
220
|
-
};
|
|
221
|
-
export type SectionLabelPlacement = {
|
|
222
|
-
positionM: PointM;
|
|
223
|
-
rotationDeg: number;
|
|
224
|
-
align: LabelAlignment;
|
|
225
|
-
};
|
|
226
|
-
export declare enum SectionOutlineRole {
|
|
227
|
-
Boundary = "boundary",
|
|
228
|
-
Overview = "overview"
|
|
229
|
-
}
|
|
230
|
-
export type Section = {
|
|
231
|
-
id: UUID;
|
|
232
|
-
label: string;
|
|
233
|
-
displayLabel?: string;
|
|
234
|
-
outline?: PolygonM;
|
|
235
|
-
outlineRole?: SectionOutlineRole;
|
|
236
|
-
style?: DecorationStyle;
|
|
237
|
-
labelPlacement?: SectionLabelPlacement;
|
|
238
|
-
labelStyle: LabelStyle;
|
|
239
|
-
};
|
|
240
|
-
export type Collection = DrawableBase & {
|
|
241
|
-
name: string;
|
|
242
|
-
};
|
|
243
|
-
export type AssetRef = {
|
|
244
|
-
id: UUID;
|
|
245
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml";
|
|
246
|
-
};
|
|
247
|
-
export type PhysicalDocumentV1 = {
|
|
248
|
-
schemaVersion: 1;
|
|
249
|
-
mapId: UUID;
|
|
250
|
-
name: string;
|
|
251
|
-
coordinateSystem: {
|
|
252
|
-
unit: "metre";
|
|
253
|
-
xAxis: "right";
|
|
254
|
-
yAxis: "down";
|
|
255
|
-
rotation: "clockwise";
|
|
256
|
-
};
|
|
257
|
-
background: Paint;
|
|
258
|
-
sections: Section[];
|
|
259
|
-
collections: Collection[];
|
|
260
|
-
seatingGroups: SeatingGroup[];
|
|
261
|
-
areas: GeneralAdmission[];
|
|
262
|
-
decorations: Decoration[];
|
|
263
|
-
assets: AssetRef[];
|
|
264
|
-
};
|
|
265
|
-
export declare enum EntityFamily {
|
|
266
|
-
Group = "group",
|
|
267
|
-
Area = "area",
|
|
268
|
-
Decoration = "decoration",
|
|
269
|
-
Collection = "collection",
|
|
270
|
-
Section = "section",
|
|
271
|
-
Asset = "asset",
|
|
272
|
-
Seat = "seat",
|
|
273
|
-
Row = "row"
|
|
274
|
-
}
|
|
275
|
-
export declare enum SeatingKind {
|
|
276
|
-
Straight = "straightRows",
|
|
277
|
-
Curved = "curvedRows",
|
|
278
|
-
Rectangular = "rectangularTable",
|
|
279
|
-
Round = "roundTable"
|
|
280
|
-
}
|
|
281
|
-
export declare enum DecorationKind {
|
|
282
|
-
Polygon = "polygon",
|
|
283
|
-
Text = "text",
|
|
284
|
-
Rectangle = "rectangle",
|
|
285
|
-
Circle = "circle",
|
|
286
|
-
Line = "line",
|
|
287
|
-
Icon = "icon",
|
|
288
|
-
Image = "image"
|
|
289
|
-
}
|
|
290
|
-
export declare enum AreaKind {
|
|
291
|
-
GeneralAdmission = "generalAdmission"
|
|
292
|
-
}
|
|
293
|
-
export declare enum VenueGlyph {
|
|
294
|
-
Stage = "stage",
|
|
295
|
-
Entrance = "entrance",
|
|
296
|
-
Exit = "exit",
|
|
297
|
-
Bar = "bar",
|
|
298
|
-
Restroom = "restroom",
|
|
299
|
-
Accessible = "accessible"
|
|
300
|
-
}
|
|
301
|
-
export declare enum ShapeKind {
|
|
302
|
-
Rectangle = "rectangle",
|
|
303
|
-
Polygon = "polygon"
|
|
304
|
-
}
|
|
305
|
-
export declare enum CurveMode {
|
|
306
|
-
Sweep = "fixedSweep",
|
|
307
|
-
Pitch = "fixedPitch"
|
|
308
|
-
}
|
|
309
|
-
export type Drawable = SeatingGroup | GeneralAdmission | Decoration | Collection;
|
|
310
|
-
export type EntityRef = {
|
|
311
|
-
family: EntityFamily;
|
|
312
|
-
id: UUID;
|
|
313
|
-
};
|