@seatlayer/core 0.50.2 → 0.52.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/{chunk-GD267BFB.js → chunk-UID7KN44.js} +75 -2
- package/dist/chunk-UID7KN44.js.map +1 -0
- package/dist/core/seatConfidence.d.cts +1 -1
- package/dist/core/seatConfidence.d.ts +1 -1
- package/dist/de-YGODYJ3E.js +292 -0
- package/dist/de-YGODYJ3E.js.map +1 -0
- package/dist/es-VMBTGVFQ.js +292 -0
- package/dist/es-VMBTGVFQ.js.map +1 -0
- package/dist/fr-SLBE2ULB.js +292 -0
- package/dist/fr-SLBE2ULB.js.map +1 -0
- package/dist/index.cjs +1606 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +138 -17
- package/dist/index.d.ts +138 -17
- package/dist/index.js +829 -65
- package/dist/index.js.map +1 -1
- package/dist/picker/minimapGeometry.cjs +80 -0
- package/dist/picker/minimapGeometry.cjs.map +1 -0
- package/dist/picker/minimapGeometry.d.cts +37 -0
- package/dist/picker/minimapGeometry.d.ts +37 -0
- package/dist/picker/minimapGeometry.js +52 -0
- package/dist/picker/minimapGeometry.js.map +1 -0
- package/dist/{types-DR54nqKL.d.cts → types-tLOunI-B.d.cts} +131 -1
- package/dist/{types-DR54nqKL.d.ts → types-tLOunI-B.d.ts} +131 -1
- package/dist/view3d/crossfade/panorama.d.cts +1 -1
- package/dist/view3d/crossfade/panorama.d.ts +1 -1
- package/dist/view3d/index.cjs +1158 -123
- package/dist/view3d/index.cjs.map +1 -1
- package/dist/view3d/index.d.cts +20 -12
- package/dist/view3d/index.d.ts +20 -12
- package/dist/view3d/index.js +1158 -122
- package/dist/view3d/index.js.map +1 -1
- package/package.json +14 -1
- package/dist/chunk-GD267BFB.js.map +0 -1
- package/dist/de-ST4H423D.js +0 -56
- package/dist/de-ST4H423D.js.map +0 -1
- package/dist/es-WEC5NHRT.js +0 -56
- package/dist/es-WEC5NHRT.js.map +0 -1
- package/dist/fr-SGBFNAQV.js +0 -56
- package/dist/fr-SGBFNAQV.js.map +0 -1
package/dist/view3d/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ChartDoc, E as ExpandedSeat } from '../types-
|
|
1
|
+
import { C as ChartDoc, E as ExpandedSeat } from '../types-tLOunI-B.cjs';
|
|
2
2
|
import { SeatView } from './crossfade/panorama.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -119,7 +119,7 @@ interface Theme3D {
|
|
|
119
119
|
* unreadable confetti.
|
|
120
120
|
*/
|
|
121
121
|
|
|
122
|
-
type LabelKind = 'zone' | 'section' | 'ga' | 'annotation' | 'booth' | 'row' | 'seat';
|
|
122
|
+
type LabelKind = 'floor' | 'zone' | 'section' | 'ga' | 'annotation' | 'booth' | 'row' | 'seat';
|
|
123
123
|
interface SceneLabel {
|
|
124
124
|
id: string;
|
|
125
125
|
kind: LabelKind;
|
|
@@ -130,6 +130,8 @@ interface SceneLabel {
|
|
|
130
130
|
color?: string;
|
|
131
131
|
/** Authored rotation in degrees, for annotations that specify one. */
|
|
132
132
|
rotation?: number;
|
|
133
|
+
/** Owning physical level, so a focused floor never keeps another level's text. */
|
|
134
|
+
floorIndex?: number;
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
/**
|
|
@@ -287,6 +289,7 @@ interface SceneZone {
|
|
|
287
289
|
*/
|
|
288
290
|
interface SceneSection {
|
|
289
291
|
id: string;
|
|
292
|
+
floorIndex: number;
|
|
290
293
|
/** Buyer-facing name, matching the section label. */
|
|
291
294
|
label: string;
|
|
292
295
|
seatCount: number;
|
|
@@ -314,6 +317,13 @@ interface SceneFloor {
|
|
|
314
317
|
seatCount: number;
|
|
315
318
|
center: [number, number, number];
|
|
316
319
|
radius: number;
|
|
320
|
+
/** Complete active-level fit, including its inferred physical relief. */
|
|
321
|
+
box: {
|
|
322
|
+
min: [number, number, number];
|
|
323
|
+
max: [number, number, number];
|
|
324
|
+
};
|
|
325
|
+
/** Presentation-adjusted focal point used by section and seat views. */
|
|
326
|
+
focalWorld: [number, number, number];
|
|
317
327
|
}
|
|
318
328
|
interface SceneModel {
|
|
319
329
|
/** Every non-seat surface merged into one triangle soup (1 draw call). */
|
|
@@ -368,10 +378,9 @@ interface SceneModel {
|
|
|
368
378
|
/**
|
|
369
379
|
* The venue's floors, in authored order. A single-floor chart reports one.
|
|
370
380
|
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
* opera house at once and the balcony sits over the parterre.
|
|
381
|
+
* Multi-floor scenes retain the authored x/z registration and the
|
|
382
|
+
* authored/inferred baseHeightM relief. Selecting a floor isolates it without
|
|
383
|
+
* changing the canonical chart.
|
|
375
384
|
*/
|
|
376
385
|
floors: SceneFloor[];
|
|
377
386
|
/**
|
|
@@ -507,7 +516,7 @@ interface Venue3DHandle {
|
|
|
507
516
|
* view-from-seat panorama. Resolves at flight end; a drag cancels it, a second
|
|
508
517
|
* call retargets, dispose resolves early. Reduced-motion → a short fade. */
|
|
509
518
|
flyToSeat(seatId: string): Promise<void>;
|
|
510
|
-
/** Cancel a seat flight/panorama and
|
|
519
|
+
/** Cancel a seat flight/panorama and fit the active floor or complete venue. */
|
|
511
520
|
focusOverview(): void;
|
|
512
521
|
resize(): void;
|
|
513
522
|
stats(): Venue3DStats;
|
|
@@ -549,11 +558,10 @@ interface Venue3DHandle {
|
|
|
549
558
|
/**
|
|
550
559
|
* Isolate one floor, or pass null to show the whole venue.
|
|
551
560
|
*
|
|
552
|
-
*
|
|
553
|
-
*
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
* level they are booking. Returns false for an unknown index.
|
|
561
|
+
* The complete venue uses a rigid, non-overlapping level composition derived
|
|
562
|
+
* from the same native 2D geometry. Entering a level hides the other levels so
|
|
563
|
+
* opaque decks cannot cover the seats being inspected. Returns false for an
|
|
564
|
+
* unknown index.
|
|
557
565
|
*/
|
|
558
566
|
focusFloor(index: number | null): boolean;
|
|
559
567
|
}
|
package/dist/view3d/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ChartDoc, E as ExpandedSeat } from '../types-
|
|
1
|
+
import { C as ChartDoc, E as ExpandedSeat } from '../types-tLOunI-B.js';
|
|
2
2
|
import { SeatView } from './crossfade/panorama.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -119,7 +119,7 @@ interface Theme3D {
|
|
|
119
119
|
* unreadable confetti.
|
|
120
120
|
*/
|
|
121
121
|
|
|
122
|
-
type LabelKind = 'zone' | 'section' | 'ga' | 'annotation' | 'booth' | 'row' | 'seat';
|
|
122
|
+
type LabelKind = 'floor' | 'zone' | 'section' | 'ga' | 'annotation' | 'booth' | 'row' | 'seat';
|
|
123
123
|
interface SceneLabel {
|
|
124
124
|
id: string;
|
|
125
125
|
kind: LabelKind;
|
|
@@ -130,6 +130,8 @@ interface SceneLabel {
|
|
|
130
130
|
color?: string;
|
|
131
131
|
/** Authored rotation in degrees, for annotations that specify one. */
|
|
132
132
|
rotation?: number;
|
|
133
|
+
/** Owning physical level, so a focused floor never keeps another level's text. */
|
|
134
|
+
floorIndex?: number;
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
/**
|
|
@@ -287,6 +289,7 @@ interface SceneZone {
|
|
|
287
289
|
*/
|
|
288
290
|
interface SceneSection {
|
|
289
291
|
id: string;
|
|
292
|
+
floorIndex: number;
|
|
290
293
|
/** Buyer-facing name, matching the section label. */
|
|
291
294
|
label: string;
|
|
292
295
|
seatCount: number;
|
|
@@ -314,6 +317,13 @@ interface SceneFloor {
|
|
|
314
317
|
seatCount: number;
|
|
315
318
|
center: [number, number, number];
|
|
316
319
|
radius: number;
|
|
320
|
+
/** Complete active-level fit, including its inferred physical relief. */
|
|
321
|
+
box: {
|
|
322
|
+
min: [number, number, number];
|
|
323
|
+
max: [number, number, number];
|
|
324
|
+
};
|
|
325
|
+
/** Presentation-adjusted focal point used by section and seat views. */
|
|
326
|
+
focalWorld: [number, number, number];
|
|
317
327
|
}
|
|
318
328
|
interface SceneModel {
|
|
319
329
|
/** Every non-seat surface merged into one triangle soup (1 draw call). */
|
|
@@ -368,10 +378,9 @@ interface SceneModel {
|
|
|
368
378
|
/**
|
|
369
379
|
* The venue's floors, in authored order. A single-floor chart reports one.
|
|
370
380
|
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
* opera house at once and the balcony sits over the parterre.
|
|
381
|
+
* Multi-floor scenes retain the authored x/z registration and the
|
|
382
|
+
* authored/inferred baseHeightM relief. Selecting a floor isolates it without
|
|
383
|
+
* changing the canonical chart.
|
|
375
384
|
*/
|
|
376
385
|
floors: SceneFloor[];
|
|
377
386
|
/**
|
|
@@ -507,7 +516,7 @@ interface Venue3DHandle {
|
|
|
507
516
|
* view-from-seat panorama. Resolves at flight end; a drag cancels it, a second
|
|
508
517
|
* call retargets, dispose resolves early. Reduced-motion → a short fade. */
|
|
509
518
|
flyToSeat(seatId: string): Promise<void>;
|
|
510
|
-
/** Cancel a seat flight/panorama and
|
|
519
|
+
/** Cancel a seat flight/panorama and fit the active floor or complete venue. */
|
|
511
520
|
focusOverview(): void;
|
|
512
521
|
resize(): void;
|
|
513
522
|
stats(): Venue3DStats;
|
|
@@ -549,11 +558,10 @@ interface Venue3DHandle {
|
|
|
549
558
|
/**
|
|
550
559
|
* Isolate one floor, or pass null to show the whole venue.
|
|
551
560
|
*
|
|
552
|
-
*
|
|
553
|
-
*
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
* level they are booking. Returns false for an unknown index.
|
|
561
|
+
* The complete venue uses a rigid, non-overlapping level composition derived
|
|
562
|
+
* from the same native 2D geometry. Entering a level hides the other levels so
|
|
563
|
+
* opaque decks cannot cover the seats being inspected. Returns false for an
|
|
564
|
+
* unknown index.
|
|
557
565
|
*/
|
|
558
566
|
focusFloor(index: number | null): boolean;
|
|
559
567
|
}
|