@seatsio/seatsio-types 6.23.0 → 6.25.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.d.ts +18 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,14 @@ export interface Seatsio {
|
|
|
15
15
|
EventManager: EventManagerConstructor;
|
|
16
16
|
SeatingChartDesigner: ChartDesignerConstructor;
|
|
17
17
|
}
|
|
18
|
+
export interface Settings3D {
|
|
19
|
+
/**
|
|
20
|
+
* The lighting preset to use for the seating chart.
|
|
21
|
+
* For more information see the {@link https://docs.seats.io/docs/renderer/settings3d/lightpreset/ documentation}.
|
|
22
|
+
* @default 'exteriorDaytime'
|
|
23
|
+
*/
|
|
24
|
+
lightPreset?: 'exteriorDaytime' | 'exteriorSunset' | 'exteriorNight' | 'interior';
|
|
25
|
+
}
|
|
18
26
|
export interface CommonConfigOptions {
|
|
19
27
|
/**
|
|
20
28
|
* The parent {@link https://developer.mozilla.org/en-US/docs/Web/API/Element Element} in which the chart gets rendered.
|
|
@@ -334,6 +342,14 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
|
|
|
334
342
|
* Must be a valid UUID if provided.
|
|
335
343
|
*/
|
|
336
344
|
ticketBuyerId?: string;
|
|
345
|
+
/**
|
|
346
|
+
* Determines which rendering engine is used by default.
|
|
347
|
+
* - `'auto'`: Renders 3D if enabled for the chart, otherwise 2D.
|
|
348
|
+
* - `'2d'`: Renders the seating chart in 2D, regardless of whether it's been made ready for 3D.
|
|
349
|
+
* @default 'auto'
|
|
350
|
+
*/
|
|
351
|
+
defaultRenderingEngine?: 'auto' | '2d';
|
|
352
|
+
settings3d?: Settings3D;
|
|
337
353
|
}
|
|
338
354
|
export type ExtractedEventManagerProps = Pick<ChartRendererConfigOptions, 'colors' | 'colorScheme' | 'extraConfig' | 'fitTo' | 'objectColor' | 'showFullScreenButton' | 'style' | 'stylePreset' | 'popoverInfo' | 'tooltipInfo' | 'themePreset' | 'themeColors'>;
|
|
339
355
|
export interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEventManagerProps, EventManagerCallbacks {
|
|
@@ -1129,6 +1145,7 @@ export interface Table extends AbstractBookableObject {
|
|
|
1129
1145
|
y: number;
|
|
1130
1146
|
};
|
|
1131
1147
|
}
|
|
1148
|
+
export type GeneralAdmissionAreaType = 'generalAdmission' | 'fixedOccupancy' | 'variableOccupancy';
|
|
1132
1149
|
export interface GeneralAdmissionArea extends AbstractBookableObject {
|
|
1133
1150
|
readonly objectType: 'GeneralAdmissionArea';
|
|
1134
1151
|
readonly numBooked: number;
|
|
@@ -1140,6 +1157,7 @@ export interface GeneralAdmissionArea extends AbstractBookableObject {
|
|
|
1140
1157
|
readonly dataPerEvent: Dict<object>;
|
|
1141
1158
|
readonly bookAsAWhole: boolean;
|
|
1142
1159
|
readonly labelShown: boolean;
|
|
1160
|
+
readonly areaType: GeneralAdmissionAreaType;
|
|
1143
1161
|
}
|
|
1144
1162
|
export type BookableObject = Seat | GeneralAdmissionArea | Booth | Table;
|
|
1145
1163
|
export type SelectableObject = BookableObject | InteractiveSection;
|