@seatmap.pro/renderer 1.66.1 → 1.66.8

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/lib/index.d.ts CHANGED
@@ -297,6 +297,7 @@ interface IBookingApiClientSettings {
297
297
  baseUrl: string;
298
298
  publicKey: string;
299
299
  debug?: boolean;
300
+ forceSvg?: boolean;
300
301
  }
301
302
  /**
302
303
  * Metrics for API requests.
@@ -707,6 +708,7 @@ interface ISectionLabelInfo {
707
708
  };
708
709
  /** When true, label is centered on shape centroid (no vertical shift above seats) */
709
710
  centroid?: boolean;
711
+ hideText?: boolean;
710
712
  }
711
713
  /**
712
714
  * @hidden
@@ -1642,12 +1644,22 @@ interface IRendererSettings {
1642
1644
  switchToWebGL?: boolean;
1643
1645
  /**
1644
1646
  * Force the GPU capability tier instead of auto-detecting from device hardware.
1645
- * 'constrained' enables the two-layer texture system (detail crop on zoom)
1646
- * and caps canvas dimensions to 2048px.
1647
+ * Since SEAT-990 the two-layer texture system (detail crop on zoom) runs on every
1648
+ * WebGL device regardless of tier; the flag now only caps physical canvas dimensions
1649
+ * to 2048px on 'constrained'.
1647
1650
  * Also settable via URL parameter `?gpuTier=constrained`.
1648
1651
  * @hidden
1649
1652
  */
1650
1653
  gpuTier?: 'high' | 'constrained';
1654
+ /**
1655
+ * If true, the renderer skips preview and full PNG background loads and uses
1656
+ * the SVG background instead. The blurred PNG (inline base64) is still loaded
1657
+ * as an instant low-quality placeholder until SVG rasterization completes.
1658
+ * Useful when the PNG storage is not CORS-configured.
1659
+ * Also settable via URL parameter `?forceSvg=true` and propagated to the
1660
+ * booking-service `/event/` request as `forceSvg=true`.
1661
+ */
1662
+ forceSvg?: boolean;
1651
1663
  /**
1652
1664
  * If true, shows the debug overlay layer (diagnostic lines from sections to venue center).
1653
1665
  */
@@ -2144,7 +2156,7 @@ interface ISectionTransform {
2144
2156
  interface IStageLayer {
2145
2157
  destroy: () => void;
2146
2158
  backgroundElement: HTMLImageElement;
2147
- /** Full-resolution background image retained in JS heap for detail cropping (constrained devices only) */
2159
+ /** Full-resolution background image retained in JS heap for on-demand detail cropping (all WebGL devices). */
2148
2160
  fullBackgroundImage: HTMLImageElement | null;
2149
2161
  redraw: () => void;
2150
2162
  drawOffscreenCanvas: () => void;
@@ -2166,7 +2178,7 @@ interface IStageLayer {
2166
2178
  * Should resolve after the first full render finishes.
2167
2179
  */
2168
2180
  captureSeatmap: () => Promise<HTMLImageElement | null>;
2169
- /** Notify that viewport has settled after animation -- triggers detail crop on constrained devices */
2181
+ /** Notify that viewport has settled after animation -- triggers detail crop update on WebGL devices */
2170
2182
  onViewportSettled?: () => void;
2171
2183
  /** Dispose detail texture immediately -- called when animation starts to prevent stale crop flash */
2172
2184
  disposeDetailTexture?: () => void;