@seatlayer/core 0.109.2 → 0.110.1
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/ar-C5PA2DVE.js +1 -0
- package/dist/be-TMKSMYPN.js +1 -0
- package/dist/bg-V6HTEDUB.js +1 -0
- package/dist/ca-CTZMHWW4.js +1 -0
- package/dist/{categoryInventory-WNOXm5Il.d.cts → categoryInventory-BE1AThTx.d.cts} +1 -1
- package/dist/{categoryInventory-nNbloQGE.d.ts → categoryInventory-DxciZQK_.d.ts} +1 -1
- package/dist/chunk-2VYFNNYC.js +1 -0
- package/dist/{chunk-YE4NP3XB.js → chunk-3V32MDJI.js} +1 -1
- package/dist/{chunk-GPZFVQXV.js → chunk-4522UUXG.js} +1 -1
- package/dist/chunk-4AGC7B64.js +1 -0
- package/dist/{chunk-ZYQXT5JP.js → chunk-5IADCFUU.js} +1 -1
- package/dist/{chunk-2JFCDE27.js → chunk-6CBJBESS.js} +1 -1
- package/dist/{chunk-LFV56MPT.js → chunk-DLHW3UDD.js} +1 -1
- package/dist/{chunk-JRZHC75P.js → chunk-EE2CVYFJ.js} +1 -1
- package/dist/{chunk-33SRM2CP.js → chunk-GUNNA5LB.js} +1 -1
- package/dist/{chunk-UUIZHJYL.js → chunk-GVVZR3YS.js} +1 -1
- package/dist/{chunk-MRLWH6RC.js → chunk-GWGWNBGU.js} +1 -1
- package/dist/chunk-JQBJZMLG.js +1 -0
- package/dist/chunk-NVAF2E7Q.js +1 -0
- package/dist/{chunk-WKWXU5QM.js → chunk-PBXGWYB4.js} +1 -1
- package/dist/{chunk-UEDS3HJ3.js → chunk-URW7MSCJ.js} +1 -1
- package/dist/{chunk-FBXZWNND.js → chunk-YRDOE3N7.js} +1 -1
- package/dist/{chunk-UNSAUDO2.js → chunk-ZY6WTPTI.js} +1 -1
- package/dist/core/chart-ops/index.cjs +1 -1
- package/dist/core/chart-ops/index.d.cts +36 -6
- package/dist/core/chart-ops/index.d.ts +36 -6
- package/dist/core/chart-ops/index.js +1 -1
- package/dist/core/inventory/index.cjs +1 -1
- package/dist/core/inventory/index.d.cts +4 -4
- package/dist/core/inventory/index.d.ts +4 -4
- package/dist/core/inventory/index.js +1 -1
- package/dist/core/layout/index.d.cts +5 -5
- package/dist/core/layout/index.d.ts +5 -5
- package/dist/core/layout/index.js +1 -1
- package/dist/core/quality/index.cjs +1 -1
- package/dist/core/quality/index.d.cts +3 -3
- package/dist/core/quality/index.d.ts +3 -3
- package/dist/core/quality/index.js +1 -1
- package/dist/core/render-assets/index.cjs +1 -1
- package/dist/core/render-assets/index.d.cts +2 -2
- package/dist/core/render-assets/index.d.ts +2 -2
- package/dist/core/render-assets/index.js +1 -1
- package/dist/core/seatConfidence.d.cts +1 -1
- package/dist/core/seatConfidence.d.ts +1 -1
- package/dist/core/sections/index.d.cts +5 -5
- package/dist/core/sections/index.d.ts +5 -5
- package/dist/core/sections/index.js +1 -1
- package/dist/cs-FUDGOUFL.js +1 -0
- package/dist/cy-5RRARIAP.js +1 -0
- package/dist/da-PONPPWKY.js +1 -0
- package/dist/de-PKG7AAB5.js +1 -0
- package/dist/el-H7OFU4QQ.js +1 -0
- package/dist/es-QSW5IZ6U.js +1 -0
- package/dist/et-GTMPSS72.js +1 -0
- package/dist/{eventConfigurations-QwuBqi8E.d.ts → eventConfigurations-Cdt-e0uD.d.ts} +1 -1
- package/dist/{eventConfigurations-Dp0gQBxf.d.cts → eventConfigurations-D0us5j0K.d.cts} +1 -1
- package/dist/fa-SGLTFGJF.js +1 -0
- package/dist/fi-7YTEAVDM.js +1 -0
- package/dist/fr-ECCQ24MZ.js +1 -0
- package/dist/he-YHMMDOX7.js +1 -0
- package/dist/hi-GRAQX2E6.js +1 -0
- package/dist/hr-MN33LRIJ.js +1 -0
- package/dist/hu-NW3SMQVM.js +1 -0
- package/dist/id-3OPRAUF7.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +31 -13
- package/dist/index.d.ts +31 -13
- package/dist/index.js +1 -1
- package/dist/it-RYM74YWO.js +1 -0
- package/dist/ja-4NI6DG5D.js +1 -0
- package/dist/ko-C4F6UEMK.js +1 -0
- package/dist/ku-DMSBMWTC.js +1 -0
- package/dist/{labeling-CLrYgex2.d.ts → labeling-DXgkxMoi.d.ts} +1 -1
- package/dist/{labeling-Bzfv743A.d.cts → labeling-eYKVPLMb.d.cts} +1 -1
- package/dist/localeLoaders-G3GCGLPW.js +1 -0
- package/dist/lt-3EXKKZFG.js +1 -0
- package/dist/lv-4EWNRDCG.js +1 -0
- package/dist/ms-7LJBSAEJ.js +1 -0
- package/dist/nl-GWTIWXRW.js +1 -0
- package/dist/no-T3FW2WLX.js +1 -0
- package/dist/pl-OG5OBRHR.js +1 -0
- package/dist/pt-YQ6VES5R.js +1 -0
- package/dist/{renderedQuality-DL_Bwohi.d.ts → renderedQuality-Dzo2_8f4.d.ts} +1 -1
- package/dist/{renderedQuality-D7adZpeD.d.cts → renderedQuality-Frgw6jdx.d.cts} +1 -1
- package/dist/{renderer-BaX5XS07.d.cts → renderer-DM2sv1un.d.cts} +19 -2
- package/dist/{renderer-GIwwPupP.d.ts → renderer-DuieD7jP.d.ts} +19 -2
- package/dist/ro-VK5MASYF.js +1 -0
- package/dist/ru-YU5CYR6T.js +1 -0
- package/dist/{seatTypeIcons-BbHRuAXE.d.ts → seatTypeIcons-Bz0OJtEi.d.ts} +1 -1
- package/dist/{seatTypeIcons-CnIsRKIM.d.cts → seatTypeIcons-Cm8tjLYl.d.cts} +1 -1
- package/dist/{sections-BOaTNaYG.d.ts → sections-Bf_DV0oG.d.ts} +1 -1
- package/dist/{sections-DRiD7LLT.d.cts → sections-PbQiqN0i.d.cts} +1 -1
- package/dist/{segmentedRowModel-CDm8wEMA.d.ts → segmentedRowModel-CO7DD803.d.ts} +1 -1
- package/dist/{segmentedRowModel-C0MT2W3h.d.cts → segmentedRowModel-Co9LqS4i.d.cts} +1 -1
- package/dist/sk-CE7PXAYL.js +1 -0
- package/dist/sl-EYUPV4BG.js +1 -0
- package/dist/sr-PPXCN4IK.js +1 -0
- package/dist/sv-WR2BJBCJ.js +1 -0
- package/dist/{tableSizing-CjeVoew4.d.ts → tableSizing-BDePQyPD.d.ts} +3 -3
- package/dist/{tableSizing-BvWmV_II.d.cts → tableSizing-C6EjKNnk.d.cts} +3 -3
- package/dist/th-JUB2DODR.js +1 -0
- package/dist/{ticketRestrictions-Cp_Wkjy9.d.cts → ticketRestrictions-CgYwHQOf.d.cts} +2 -2
- package/dist/{ticketRestrictions-P3RuwcmT.d.ts → ticketRestrictions-D5wgOq4P.d.ts} +2 -2
- package/dist/tr-GFHA7FT6.js +1 -0
- package/dist/{types-fSWyPu3f.d.ts → types-CGOr0BpE.d.cts} +41 -16
- package/dist/{types-fSWyPu3f.d.cts → types-CGOr0BpE.d.ts} +41 -16
- package/dist/uk-3FTS2SRK.js +1 -0
- package/dist/vi-7OTXPOQV.js +1 -0
- package/dist/view3d/crossfade/panorama.d.cts +1 -1
- package/dist/view3d/crossfade/panorama.d.ts +1 -1
- package/dist/view3d/index.cjs +410 -169
- package/dist/view3d/index.d.cts +100 -4
- package/dist/view3d/index.d.ts +100 -4
- package/dist/view3d/index.js +408 -167
- package/dist/view3d/scene/scene.worker.cjs +1 -1
- package/dist/view3d/scene/scene.worker.js +1 -1
- package/dist/zh-Hans-FD4XNYUA.js +1 -0
- package/dist/zh-Hant-7TXVJKJQ.js +1 -0
- package/package.json +1 -1
- package/dist/ar-TPTLODBK.js +0 -1
- package/dist/be-SX5AJ2EF.js +0 -1
- package/dist/bg-T7FBXPVU.js +0 -1
- package/dist/ca-TTI23CKH.js +0 -1
- package/dist/chunk-4N5CHKHD.js +0 -1
- package/dist/chunk-GUXENCHS.js +0 -1
- package/dist/chunk-HSEX7LUB.js +0 -1
- package/dist/chunk-T2QG47QQ.js +0 -1
- package/dist/cs-KEMKTFP3.js +0 -1
- package/dist/cy-EGUWNAAE.js +0 -1
- package/dist/da-AHX4SSIT.js +0 -1
- package/dist/de-U3ISXVMR.js +0 -1
- package/dist/el-NBMJFLGN.js +0 -1
- package/dist/es-IYOV3DZF.js +0 -1
- package/dist/et-QHFQ3BIM.js +0 -1
- package/dist/fa-FEFRLXP7.js +0 -1
- package/dist/fi-HB6NGCIV.js +0 -1
- package/dist/fr-5EX7Z5Z5.js +0 -1
- package/dist/he-MEW7GMCW.js +0 -1
- package/dist/hi-V2CICZDC.js +0 -1
- package/dist/hr-SUZYZ3DL.js +0 -1
- package/dist/hu-RJFHJPXB.js +0 -1
- package/dist/id-LEP73A6A.js +0 -1
- package/dist/it-V65UNUVY.js +0 -1
- package/dist/ja-3HISSPHC.js +0 -1
- package/dist/ko-5DFMEYUO.js +0 -1
- package/dist/ku-H3EOMAJX.js +0 -1
- package/dist/localeLoaders-M2TUVL75.js +0 -1
- package/dist/lt-XHIM3BWS.js +0 -1
- package/dist/lv-P5EQD4YY.js +0 -1
- package/dist/ms-XC3SU4I2.js +0 -1
- package/dist/nl-K2N44NUV.js +0 -1
- package/dist/no-C4MFGLSN.js +0 -1
- package/dist/pl-ADABFEA3.js +0 -1
- package/dist/pt-4AQPHHDG.js +0 -1
- package/dist/ro-PZLP7BEU.js +0 -1
- package/dist/ru-33R4HJF2.js +0 -1
- package/dist/sk-XCXFOU73.js +0 -1
- package/dist/sl-23PMG7BB.js +0 -1
- package/dist/sr-SOPFKPZ5.js +0 -1
- package/dist/sv-PKDMDUS5.js +0 -1
- package/dist/th-NU4K5DFF.js +0 -1
- package/dist/tr-HEDRXONB.js +0 -1
- package/dist/uk-T7JNLCSZ.js +0 -1
- package/dist/vi-EWDKGL2Y.js +0 -1
- package/dist/zh-Hans-ED7CX2SQ.js +0 -1
- package/dist/zh-Hant-UKJQ2KBS.js +0 -1
package/dist/view3d/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as Point, C as ChartDoc } from '../types-
|
|
2
|
-
import { E as EventConfigurationProductionElementKind, a as EventConfigurationOcclusion, b as EventConfigurationVersion } from '../eventConfigurations-
|
|
3
|
-
import { E as ExpandedSeat } from '../renderer-
|
|
1
|
+
import { P as Point, C as ChartDoc } from '../types-CGOr0BpE.cjs';
|
|
2
|
+
import { E as EventConfigurationProductionElementKind, a as EventConfigurationOcclusion, b as EventConfigurationVersion } from '../eventConfigurations-D0us5j0K.cjs';
|
|
3
|
+
import { E as ExpandedSeat } from '../renderer-DM2sv1un.cjs';
|
|
4
4
|
import { S as StageKind } from '../stage-CKb7aNoH.cjs';
|
|
5
5
|
import { SeatView } from './crossfade/panorama.cjs';
|
|
6
6
|
|
|
@@ -77,7 +77,8 @@ interface MeshData {
|
|
|
77
77
|
/**
|
|
78
78
|
* Small renderer material class per vertex:
|
|
79
79
|
* 0 = ordinary structure, 1 = authored powered display,
|
|
80
|
-
* 2 = row riser, 3 = row tread, 4 = football turf, 5 = generated concrete
|
|
80
|
+
* 2 = row riser, 3 = row tread, 4 = football turf, 5 = generated concrete,
|
|
81
|
+
* 6 = a walled room's wall, 7 = an aisle step's nosing strip.
|
|
81
82
|
*/
|
|
82
83
|
material: Float32Array;
|
|
83
84
|
/** Vertex count (position.length / 3). */
|
|
@@ -97,6 +98,41 @@ interface SharedAisleCandidate {
|
|
|
97
98
|
outline: Point[];
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Venue looks: named presentations for the 3D view.
|
|
103
|
+
*
|
|
104
|
+
* A look is what a lighting designer would call the state of the house: what
|
|
105
|
+
* colour the light is, how dark the room around the venue is, and which way the
|
|
106
|
+
* bare surfaces lean. It is NOT a second theme system. A look only supplies
|
|
107
|
+
* what a chart leaves unset, field by field, and everything it supplies still
|
|
108
|
+
* passes through `resolveTheme3D`: structure is pinned to the day or night
|
|
109
|
+
* lightness targets (`VENUE_LIGHTNESS`) and keeps only a hint of hue
|
|
110
|
+
* (`STRUCTURE_CHROMA_CAP`), seats stay in their band, and the colours that
|
|
111
|
+
* carry meaning (available, held, sold, selected) are never a look's to change.
|
|
112
|
+
*
|
|
113
|
+
* What a look adds that a theme could not express is the LIGHT. Until now the
|
|
114
|
+
* rig was white whatever the venue: a theatre under house lights and a stadium
|
|
115
|
+
* at noon were lit identically and differed only in paint. `light.key` tints
|
|
116
|
+
* the one directional light and `light.ambient` the sky-and-bounce term, as
|
|
117
|
+
* multipliers around 1, so a look changes the mood of a venue without moving a
|
|
118
|
+
* single surface off its lightness target.
|
|
119
|
+
*
|
|
120
|
+
* WHERE A LOOK COMES FROM. A chart may name one (`theme.venue3d.look`), which
|
|
121
|
+
* also gives it the look's background if it has none of its own. A chart that
|
|
122
|
+
* names none gets one chosen from the kind of venue it draws
|
|
123
|
+
* (`automaticVenueLook`): the light and the unset surfaces, but NOT the
|
|
124
|
+
* background, so the 3D view keeps the same backdrop as the 2D map it is
|
|
125
|
+
* switched from. `'plain'` switches looks off: white light, as before looks
|
|
126
|
+
* existed.
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
interface VenueLookLight {
|
|
130
|
+
/** Tint of the directional key light, a multiplier per channel. */
|
|
131
|
+
key: RGB;
|
|
132
|
+
/** Tint of the ambient (sky and bounce) and fill light, a multiplier per channel. */
|
|
133
|
+
ambient: RGB;
|
|
134
|
+
}
|
|
135
|
+
|
|
100
136
|
/**
|
|
101
137
|
* Resolve a chart's authored theme into the 3D scene's colours.
|
|
102
138
|
*
|
|
@@ -146,6 +182,25 @@ interface Theme3D {
|
|
|
146
182
|
shell: RGB | null;
|
|
147
183
|
roughness: number;
|
|
148
184
|
};
|
|
185
|
+
/**
|
|
186
|
+
* Tint of the rig, from the chart's look (see looks.ts): multipliers on the
|
|
187
|
+
* key light and on the ambient and fill. White for a chart with no look.
|
|
188
|
+
*/
|
|
189
|
+
light: VenueLookLight;
|
|
190
|
+
/**
|
|
191
|
+
* The room an indoor venue shows above and behind its stands from a seat
|
|
192
|
+
* (scene/model/house.ts): its ceiling, its wall and its house lights.
|
|
193
|
+
* `indoor` is whether the venue stands under a roof: the chosen look's own
|
|
194
|
+
* answer, or, for a chart that chose none, what it draws (`drawnIndoors`).
|
|
195
|
+
* A venue whose drawn walls make it a room is closed whatever this says.
|
|
196
|
+
* Null for a chart with no look.
|
|
197
|
+
*/
|
|
198
|
+
house: {
|
|
199
|
+
indoor: boolean;
|
|
200
|
+
ceiling: RGB;
|
|
201
|
+
wall: RGB;
|
|
202
|
+
lamp: RGB;
|
|
203
|
+
} | null;
|
|
149
204
|
}
|
|
150
205
|
|
|
151
206
|
/**
|
|
@@ -213,6 +268,36 @@ interface SceneLabel {
|
|
|
213
268
|
wheelchairSeats?: number[];
|
|
214
269
|
}
|
|
215
270
|
|
|
271
|
+
/**
|
|
272
|
+
* The house: the room an indoor venue is seen in from inside.
|
|
273
|
+
*
|
|
274
|
+
* From a seat in an arena or a theatre the stands used to end in the chart's
|
|
275
|
+
* flat backdrop: no ceiling, no wall above the top row, a black void where the
|
|
276
|
+
* room should be (reference walk, 2026-11-11, gap C1). An open-air venue
|
|
277
|
+
* already shows a sky there (`SceneModel.outdoor`); this is the indoor
|
|
278
|
+
* counterpart.
|
|
279
|
+
*
|
|
280
|
+
* It is a BACKDROP, not a building. Nothing here adds a triangle: the
|
|
281
|
+
* background pass works out, for each pixel, where that line of sight meets a
|
|
282
|
+
* ceiling plane or an elliptical wall and paints it (materials.ts BG_FRAG).
|
|
283
|
+
* So it is always behind everything drawn, cannot stand between a seat and the
|
|
284
|
+
* stage, casts no shadow, takes no tap and does not move the camera's framing.
|
|
285
|
+
* That is the line the September audit drew ("no invented roof, balcony,
|
|
286
|
+
* support columns or skyline in an asserted seat view"): the room is closed,
|
|
287
|
+
* and nothing is invented that a buyer could mistake for an obstruction.
|
|
288
|
+
*
|
|
289
|
+
* It shows only while the camera is inside it and under its ceiling. Every
|
|
290
|
+
* overview stands outside or above, and is unchanged.
|
|
291
|
+
*/
|
|
292
|
+
interface HouseBounds {
|
|
293
|
+
/** Centre of the room, world metres (x, z). */
|
|
294
|
+
centre: [number, number];
|
|
295
|
+
/** Half-widths of the elliptical wall, world metres (x, z). */
|
|
296
|
+
radii: [number, number];
|
|
297
|
+
floorY: number;
|
|
298
|
+
ceilingY: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
216
301
|
/**
|
|
217
302
|
* Pure builder for the instanced seat cloud. Produces the per-instance arrays a
|
|
218
303
|
* single OGL InstancedMesh consumes (one draw call for every seat), plus the
|
|
@@ -292,6 +377,11 @@ interface SeatInstanceData {
|
|
|
292
377
|
iGlyph: Float32Array;
|
|
293
378
|
/** 1 = physical chair; 0 = sellable empty wheelchair bay. */
|
|
294
379
|
iPhysicalSeat: Float32Array;
|
|
380
|
+
/** vec4 per instance: where this seat's armrests stand, as two world offsets
|
|
381
|
+
* (x, z) in metres from the seat: xy = the one it shares with the next seat
|
|
382
|
+
* in its row, zw = the one on its other side, carried only where no seat
|
|
383
|
+
* before it carries it. (0, 0) = no armrest there. See `fixedRowSeating`. */
|
|
384
|
+
iArmrests: Float32Array;
|
|
295
385
|
/** seatId → instance index (drives targeted availability updates). */
|
|
296
386
|
idToIndex: Map<string, number>;
|
|
297
387
|
}
|
|
@@ -303,6 +393,8 @@ interface StageBounds {
|
|
|
303
393
|
y: number;
|
|
304
394
|
halfX: number;
|
|
305
395
|
halfZ: number;
|
|
396
|
+
/** The deck's own top colour, as built: what light laid on it fades out to. */
|
|
397
|
+
top?: [number, number, number];
|
|
306
398
|
}
|
|
307
399
|
/** Event-specific semantics resolved onto base-chart geometry in world metres. */
|
|
308
400
|
interface SceneProductionElement {
|
|
@@ -452,6 +544,8 @@ interface SceneModel {
|
|
|
452
544
|
room?: {
|
|
453
545
|
centre: [number, number];
|
|
454
546
|
};
|
|
547
|
+
/** An indoor venue's room, seen from inside it: a ceiling and a wall (see house.ts). */
|
|
548
|
+
house?: HouseBounds;
|
|
455
549
|
/** Exact enclosing sphere for rendered solids plus near-field seat detail. */
|
|
456
550
|
renderBounds: {
|
|
457
551
|
center: [number, number, number];
|
|
@@ -730,9 +824,11 @@ interface Venue3DQualityEvidence {
|
|
|
730
824
|
webgl2: boolean;
|
|
731
825
|
lost: boolean;
|
|
732
826
|
};
|
|
827
|
+
/** `smoothed`: the frame on screen was drawn with edge smoothing (gl/frameSmoothing.ts). */
|
|
733
828
|
frame: {
|
|
734
829
|
rendered: number;
|
|
735
830
|
idle: boolean;
|
|
831
|
+
smoothed?: boolean;
|
|
736
832
|
};
|
|
737
833
|
camera: {
|
|
738
834
|
position: [number, number, number];
|
package/dist/view3d/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as Point, C as ChartDoc } from '../types-
|
|
2
|
-
import { E as EventConfigurationProductionElementKind, a as EventConfigurationOcclusion, b as EventConfigurationVersion } from '../eventConfigurations-
|
|
3
|
-
import { E as ExpandedSeat } from '../renderer-
|
|
1
|
+
import { P as Point, C as ChartDoc } from '../types-CGOr0BpE.js';
|
|
2
|
+
import { E as EventConfigurationProductionElementKind, a as EventConfigurationOcclusion, b as EventConfigurationVersion } from '../eventConfigurations-Cdt-e0uD.js';
|
|
3
|
+
import { E as ExpandedSeat } from '../renderer-DuieD7jP.js';
|
|
4
4
|
import { S as StageKind } from '../stage-CKb7aNoH.js';
|
|
5
5
|
import { SeatView } from './crossfade/panorama.js';
|
|
6
6
|
|
|
@@ -77,7 +77,8 @@ interface MeshData {
|
|
|
77
77
|
/**
|
|
78
78
|
* Small renderer material class per vertex:
|
|
79
79
|
* 0 = ordinary structure, 1 = authored powered display,
|
|
80
|
-
* 2 = row riser, 3 = row tread, 4 = football turf, 5 = generated concrete
|
|
80
|
+
* 2 = row riser, 3 = row tread, 4 = football turf, 5 = generated concrete,
|
|
81
|
+
* 6 = a walled room's wall, 7 = an aisle step's nosing strip.
|
|
81
82
|
*/
|
|
82
83
|
material: Float32Array;
|
|
83
84
|
/** Vertex count (position.length / 3). */
|
|
@@ -97,6 +98,41 @@ interface SharedAisleCandidate {
|
|
|
97
98
|
outline: Point[];
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Venue looks: named presentations for the 3D view.
|
|
103
|
+
*
|
|
104
|
+
* A look is what a lighting designer would call the state of the house: what
|
|
105
|
+
* colour the light is, how dark the room around the venue is, and which way the
|
|
106
|
+
* bare surfaces lean. It is NOT a second theme system. A look only supplies
|
|
107
|
+
* what a chart leaves unset, field by field, and everything it supplies still
|
|
108
|
+
* passes through `resolveTheme3D`: structure is pinned to the day or night
|
|
109
|
+
* lightness targets (`VENUE_LIGHTNESS`) and keeps only a hint of hue
|
|
110
|
+
* (`STRUCTURE_CHROMA_CAP`), seats stay in their band, and the colours that
|
|
111
|
+
* carry meaning (available, held, sold, selected) are never a look's to change.
|
|
112
|
+
*
|
|
113
|
+
* What a look adds that a theme could not express is the LIGHT. Until now the
|
|
114
|
+
* rig was white whatever the venue: a theatre under house lights and a stadium
|
|
115
|
+
* at noon were lit identically and differed only in paint. `light.key` tints
|
|
116
|
+
* the one directional light and `light.ambient` the sky-and-bounce term, as
|
|
117
|
+
* multipliers around 1, so a look changes the mood of a venue without moving a
|
|
118
|
+
* single surface off its lightness target.
|
|
119
|
+
*
|
|
120
|
+
* WHERE A LOOK COMES FROM. A chart may name one (`theme.venue3d.look`), which
|
|
121
|
+
* also gives it the look's background if it has none of its own. A chart that
|
|
122
|
+
* names none gets one chosen from the kind of venue it draws
|
|
123
|
+
* (`automaticVenueLook`): the light and the unset surfaces, but NOT the
|
|
124
|
+
* background, so the 3D view keeps the same backdrop as the 2D map it is
|
|
125
|
+
* switched from. `'plain'` switches looks off: white light, as before looks
|
|
126
|
+
* existed.
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
interface VenueLookLight {
|
|
130
|
+
/** Tint of the directional key light, a multiplier per channel. */
|
|
131
|
+
key: RGB;
|
|
132
|
+
/** Tint of the ambient (sky and bounce) and fill light, a multiplier per channel. */
|
|
133
|
+
ambient: RGB;
|
|
134
|
+
}
|
|
135
|
+
|
|
100
136
|
/**
|
|
101
137
|
* Resolve a chart's authored theme into the 3D scene's colours.
|
|
102
138
|
*
|
|
@@ -146,6 +182,25 @@ interface Theme3D {
|
|
|
146
182
|
shell: RGB | null;
|
|
147
183
|
roughness: number;
|
|
148
184
|
};
|
|
185
|
+
/**
|
|
186
|
+
* Tint of the rig, from the chart's look (see looks.ts): multipliers on the
|
|
187
|
+
* key light and on the ambient and fill. White for a chart with no look.
|
|
188
|
+
*/
|
|
189
|
+
light: VenueLookLight;
|
|
190
|
+
/**
|
|
191
|
+
* The room an indoor venue shows above and behind its stands from a seat
|
|
192
|
+
* (scene/model/house.ts): its ceiling, its wall and its house lights.
|
|
193
|
+
* `indoor` is whether the venue stands under a roof: the chosen look's own
|
|
194
|
+
* answer, or, for a chart that chose none, what it draws (`drawnIndoors`).
|
|
195
|
+
* A venue whose drawn walls make it a room is closed whatever this says.
|
|
196
|
+
* Null for a chart with no look.
|
|
197
|
+
*/
|
|
198
|
+
house: {
|
|
199
|
+
indoor: boolean;
|
|
200
|
+
ceiling: RGB;
|
|
201
|
+
wall: RGB;
|
|
202
|
+
lamp: RGB;
|
|
203
|
+
} | null;
|
|
149
204
|
}
|
|
150
205
|
|
|
151
206
|
/**
|
|
@@ -213,6 +268,36 @@ interface SceneLabel {
|
|
|
213
268
|
wheelchairSeats?: number[];
|
|
214
269
|
}
|
|
215
270
|
|
|
271
|
+
/**
|
|
272
|
+
* The house: the room an indoor venue is seen in from inside.
|
|
273
|
+
*
|
|
274
|
+
* From a seat in an arena or a theatre the stands used to end in the chart's
|
|
275
|
+
* flat backdrop: no ceiling, no wall above the top row, a black void where the
|
|
276
|
+
* room should be (reference walk, 2026-11-11, gap C1). An open-air venue
|
|
277
|
+
* already shows a sky there (`SceneModel.outdoor`); this is the indoor
|
|
278
|
+
* counterpart.
|
|
279
|
+
*
|
|
280
|
+
* It is a BACKDROP, not a building. Nothing here adds a triangle: the
|
|
281
|
+
* background pass works out, for each pixel, where that line of sight meets a
|
|
282
|
+
* ceiling plane or an elliptical wall and paints it (materials.ts BG_FRAG).
|
|
283
|
+
* So it is always behind everything drawn, cannot stand between a seat and the
|
|
284
|
+
* stage, casts no shadow, takes no tap and does not move the camera's framing.
|
|
285
|
+
* That is the line the September audit drew ("no invented roof, balcony,
|
|
286
|
+
* support columns or skyline in an asserted seat view"): the room is closed,
|
|
287
|
+
* and nothing is invented that a buyer could mistake for an obstruction.
|
|
288
|
+
*
|
|
289
|
+
* It shows only while the camera is inside it and under its ceiling. Every
|
|
290
|
+
* overview stands outside or above, and is unchanged.
|
|
291
|
+
*/
|
|
292
|
+
interface HouseBounds {
|
|
293
|
+
/** Centre of the room, world metres (x, z). */
|
|
294
|
+
centre: [number, number];
|
|
295
|
+
/** Half-widths of the elliptical wall, world metres (x, z). */
|
|
296
|
+
radii: [number, number];
|
|
297
|
+
floorY: number;
|
|
298
|
+
ceilingY: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
216
301
|
/**
|
|
217
302
|
* Pure builder for the instanced seat cloud. Produces the per-instance arrays a
|
|
218
303
|
* single OGL InstancedMesh consumes (one draw call for every seat), plus the
|
|
@@ -292,6 +377,11 @@ interface SeatInstanceData {
|
|
|
292
377
|
iGlyph: Float32Array;
|
|
293
378
|
/** 1 = physical chair; 0 = sellable empty wheelchair bay. */
|
|
294
379
|
iPhysicalSeat: Float32Array;
|
|
380
|
+
/** vec4 per instance: where this seat's armrests stand, as two world offsets
|
|
381
|
+
* (x, z) in metres from the seat: xy = the one it shares with the next seat
|
|
382
|
+
* in its row, zw = the one on its other side, carried only where no seat
|
|
383
|
+
* before it carries it. (0, 0) = no armrest there. See `fixedRowSeating`. */
|
|
384
|
+
iArmrests: Float32Array;
|
|
295
385
|
/** seatId → instance index (drives targeted availability updates). */
|
|
296
386
|
idToIndex: Map<string, number>;
|
|
297
387
|
}
|
|
@@ -303,6 +393,8 @@ interface StageBounds {
|
|
|
303
393
|
y: number;
|
|
304
394
|
halfX: number;
|
|
305
395
|
halfZ: number;
|
|
396
|
+
/** The deck's own top colour, as built: what light laid on it fades out to. */
|
|
397
|
+
top?: [number, number, number];
|
|
306
398
|
}
|
|
307
399
|
/** Event-specific semantics resolved onto base-chart geometry in world metres. */
|
|
308
400
|
interface SceneProductionElement {
|
|
@@ -452,6 +544,8 @@ interface SceneModel {
|
|
|
452
544
|
room?: {
|
|
453
545
|
centre: [number, number];
|
|
454
546
|
};
|
|
547
|
+
/** An indoor venue's room, seen from inside it: a ceiling and a wall (see house.ts). */
|
|
548
|
+
house?: HouseBounds;
|
|
455
549
|
/** Exact enclosing sphere for rendered solids plus near-field seat detail. */
|
|
456
550
|
renderBounds: {
|
|
457
551
|
center: [number, number, number];
|
|
@@ -730,9 +824,11 @@ interface Venue3DQualityEvidence {
|
|
|
730
824
|
webgl2: boolean;
|
|
731
825
|
lost: boolean;
|
|
732
826
|
};
|
|
827
|
+
/** `smoothed`: the frame on screen was drawn with edge smoothing (gl/frameSmoothing.ts). */
|
|
733
828
|
frame: {
|
|
734
829
|
rendered: number;
|
|
735
830
|
idle: boolean;
|
|
831
|
+
smoothed?: boolean;
|
|
736
832
|
};
|
|
737
833
|
camera: {
|
|
738
834
|
position: [number, number, number];
|