Booking Client (Renderer) API Changes - v1.75.0

Release: v1.75.0 Package: @seatmap.pro/renderer Date: 2026-11-24


Summary

Backward Compatible: NO for integrations that turn on enable3DView, import IRendererAnimation, or select section outlines by tag name; YES for every other integration New Features: 8 Deprecations: 0 Bug Fixes: 13

Migration Required: YES for the integrations named above, with the steps under the two Breaking headings. NO for every other integration: the remaining changes are additive or correct behaviour.


Breaking: the tilted view needs WebGL and draws outlines as paths (SEAT-1593)

The tilted perspective view of the seating chart, switched on with enable3DView, runs on WebGL only. While a perspective is on, section outlines are drawn as path elements. The exported IRendererAnimation type no longer lists six camera fields.

The tilted view runs on WebGL only

The renderer draws with Canvas2D when switchToWebGL is not true, when WebGL is unavailable, and when the event has no background image for WebGL. On that fallback the map shows in 2D, and:

  • the enable3DView setting and get3DViewParams().enable3DView read false
  • set3DViewEnabled(true) does nothing
  • update3DView, animateTo3DParams and animateRotation log a warning and do nothing
  • animateSequence steps leave the camera flat
  • the camera gestures are off
  • section outlines and markers no longer tilt over the flat map

Migration: set switchToWebGL: true next to enable3DView: true. Read get3DViewParams().enable3DView after loadEvent resolves to learn whether the view is on, and hide your own 3D controls when it is not.

import { SeatmapBookingRenderer } from '@seatmap.pro/renderer';

const container = document.getElementById('seatmap') as HTMLElement;

const renderer = new SeatmapBookingRenderer(container, {
  publicKey: 'your-public-key',
  switchToWebGL: true,
  enable3DView: true,
});

await renderer.loadEvent('your-event-id');

if (!renderer.get3DViewParams().enable3DView) {
  hideViewSwitch();
}

hideViewSwitch stands for your own control handling.

Outlines are path elements while a perspective is on

While the 3D view is on and the camera’s fieldOfView is above 0, at any pitch including top-down, rectangle, circle, ellipse and line outlines are drawn as path elements. Each keeps the attributes of the shape it replaces except the shape’s own geometry, and carries data-sm-shape set to the original tag name: rect, circle, ellipse or line. The original elements return when the perspective ends.

A selector that names one of these tags stops matching while the perspective is on. Add the [data-sm-shape] form to every such selector, in stylesheets and in DOM queries.

Before:

.sm-outline > rect {
  stroke-width: 2px;
}

Now:

.sm-outline > rect,
.sm-outline > [data-sm-shape='rect'] {
  stroke-width: 2px;
}
const outlineRects = container.querySelectorAll(
  '.sm-outline > rect, .sm-outline > [data-sm-shape="rect"]',
);

Use [data-sm-shape="circle"], [data-sm-shape="ellipse"] and [data-sm-shape="line"] for the other three tags. Code that keeps a reference to an outline element should look it up again after the perspective turns on or off.

IRendererAnimation no longer lists camera fields

The exported IRendererAnimation type, hidden from the SDK reference, loses six fields. No public method takes or returns them.

Before:

export interface IRendererAnimation {
  angle?: number;
  lastRotationZ?: number;
  fromRotationZ?: number;
  toRotationZ?: number;
  fromTiltX?: number;
  toTiltX?: number;
  fromPerspectiveZ?: number;
  toPerspectiveZ?: number;
  onComplete?: (completed: boolean) => void;
}

Now:

export interface IRendererAnimation {
  angle?: number;
  lastRotationZ?: number;
  onComplete?: (completed: boolean) => void;
}

Only the members next to the removed fields are shown. Code that sets or reads fromRotationZ, toRotationZ, fromTiltX, toTiltX, fromPerspectiveZ or toPerspectiveZ stops compiling. Animate the camera with animateTo3DParams instead.

Before:

const animation: IRendererAnimation = {
  duration: 800,
  fromScale: 1,
  toScale: 1,
  toTranslate: { x: 0, y: 0 },
  frame: 0,
  inProgress: false,
  fromTiltX: 0,
  toTiltX: -0.2,
  fromPerspectiveZ: 0,
  toPerspectiveZ: -0.2,
};

Now:

await renderer.animateTo3DParams({ tiltX: -0.2, perspectiveZ: -0.2 }, 800);

Breaking: camera limits, fit and padding (SEAT-1589)

The tilted view places seats, rows, sections, the background, outlines, the selection, markers, the hover label and the minimap footprint with a single camera, so they stay aligned as the map turns and tilts. A turned map keeps its proportions on canvases that are not square, including during zoomToSection, and the admin rubber-band selection follows the tilted and turned seats. Three changes affect integrations that drive the camera or size the view.

tiltX and perspectiveZ stay within limits

update3DView, animateTo3DParams and get3DViewParams keep their parameters. Values now stay within these limits:

Parameter Limit
tiltX From about -0.329, a tilt of 70 degrees, up to 0. A value outside the range is clamped, and a positive value gives a flat map.
perspectiveZ 0 or a positive value draws the map without perspective. A negative value gives a field of view of at most 45 degrees, reduced near the horizon so the top of the view stays below the horizon.

get3DViewParams() returns the values in effect, with perspectiveZ at 0 while the map is flat. On maps with levels, upper levels rise by the sine of the tilt: 0.80 of their height at a tiltX of -0.2.

renderer.update3DView({ tiltX: -0.5, perspectiveZ: -1 });

const { tiltX, perspectiveZ, pitch, fieldOfView } = renderer.get3DViewParams();

This call leaves tiltX at about -0.329, perspectiveZ at about -0.491, pitch at about 1.2217 and fieldOfView at about 0.5236. Read the values back with get3DViewParams() instead of assuming the ones you passed.

Migration: keep passing tiltX and perspectiveZ, or pass the angle directly as pitch and fieldOfView. The two forms convert as follows:

const pitchFromTiltX = (tiltX: number): number => Math.acos(1 + 2 * tiltX);

const tiltXFromPitch = (pitch: number): number => (Math.cos(pitch) - 1) / 2;

const fieldOfViewFromPerspectiveZ = (perspectiveZ: number, pitch: number): number =>
  2 * Math.atan((-1.5 * perspectiveZ) / Math.tan(pitch));

const perspectiveZFromFieldOfView = (fieldOfView: number, pitch: number): number =>
  (-Math.tan(fieldOfView / 2) * Math.tan(pitch)) / 1.5;

The field of view formula applies to a negative perspectiveZ and a pitch above 0; the limits above still apply to the result. A camera set as { tiltX: -0.2, perspectiveZ: -0.2 } corresponds, to four decimals, to { pitch: 0.9273, fieldOfView: 0.4426 }:

renderer.update3DView({ pitch: 0.9273, fieldOfView: 0.4426 });

The tiltTo and perspectiveTo fields of animateSequence steps follow the same limits.

The tilted view opens fitted

The tilted view opens fitted to its tilted shape, and zoomToFit fits it the same way: at a tiltX of -0.2 an arena fills about 69% of a desktop window instead of 27%. A map shown whole stays fitted when the camera changes:

  • animateTo3DParams refits it while it tilts
  • update3DView refits it at once when the tilt or the perspective changes
  • set3DViewEnabled fits it to the new view
  • a turn alone keeps the zoom, and a zoomed-in map keeps its zoom in every case

An animateTo3DParams call made while a refit is still running completes that refit first. Zooming out stops at the fit for the current turn and tilt. zoomToSection frames the section as it appears after the turn and tilt, at the height of its level. Dragging keeps the point under the pointer under it at any turn and tilt, and pinch and Ctrl or Cmd wheel zoom keep the point under the fingers or the cursor in place.

Migration: remove zoom calls that compensated for the earlier framing after a camera change. A map shown whole no longer needs them.

Before:

renderer.update3DView({ tiltX: -0.2, perspectiveZ: -0.2 });
renderer.zoomToFit();

Now:

renderer.update3DView({ tiltX: -0.2, perspectiveZ: -0.2 });

padding above 0.5 applies to the flat view only

A tilted map can be dragged until the middle of the screen reaches its edge. A padding setting above 0.5 now applies to the 2D view only; while the tilted view is on, the value in effect is 0.5.

Migration: no code change is needed. Set padding to 0.5 or lower to make the value match what the tilted view applies:

const renderer = new SeatmapBookingRenderer(container, {
  publicKey: 'your-public-key',
  switchToWebGL: true,
  enable3DView: true,
  padding: 0.5,
});

New Features

Camera as pitch and field of view (SEAT-1593)

update3DView and animateTo3DParams take the camera as pitch, the tilt from top-down, and fieldOfView, the perspective, both in radians. get3DViewParams reports both forms.

export interface I3DViewCamera {
  rotationZ?: number;
  pitch?: number;
  fieldOfView?: number;
  tiltX?: number;
  perspectiveZ?: number;
}

export interface I3DViewParams {
  enable3DView: boolean;
  rotationZ: number;
  pitch: number;
  fieldOfView: number;
  tiltX: number;
  perspectiveZ: number;
}

update3DView(options: I3DViewCamera): void;
get3DViewParams(): I3DViewParams;
animateTo3DParams(target: I3DViewCamera, durationMs: number = 800): Promise<void>;
Field Meaning Limit
rotationZ Heading: how far the map is turned about the center of the view. 0 is not turned. None
pitch Tilt from top-down. 0 looks straight down. 0 to 70 degrees
fieldOfView Vertical field of view. 0 draws the map without perspective. 0 to 45 degrees, narrower near the horizon
tiltX Earlier form of pitch: pitch = acos(1 + 2 * tiltX). About -0.329 to 0
perspectiveZ Earlier form of fieldOfView. A negative value gives perspective; 0 or positive gives none. See the limits under the Breaking heading above

Rules for every call:

  • Fields left out keep their value, and values equal to the current camera are ignored. The result of get3DViewParams can be passed back with one value changed, in either form.
  • When a call changes both forms, pitch and fieldOfView win. Non-finite values are ignored.
  • The pitch is clamped to 70 degrees first, then the field of view to 45 degrees and so that the top of the view stays below the horizon.
  • A fieldOfView or a perspectiveZ set while the map is top-down takes effect at the next tilt. A fieldOfView set directly keeps its value when the pitch changes: it narrows near the horizon and comes back when the pitch drops.
  • Tilting by hand changes only the pitch, from top-down up to the limit, and keeps the field of view, also on a camera set through perspectiveZ.
  • animateTo3DParams turns the shorter way to the heading, so a heading a full turn away does not spin the map. It leaves the axes the target does not give alone, so a turn made while it tilts the map is kept. A duration of 0 applies the change at once.
  • update3DView and animateTo3DParams log a warning and do nothing while the tilted view is off.
renderer.update3DView({ pitch: Math.PI / 4, fieldOfView: (25 * Math.PI) / 180 });

await renderer.animateTo3DParams({ rotationZ: Math.PI / 2, pitch: 1 }, 1200);

const { enable3DView, pitch, fieldOfView } = renderer.get3DViewParams();

Camera gestures (SEAT-1593)

The map can be turned and tilted by hand while the tilted view is on. The new enableCameraGestures setting defaults to true.

enableCameraGestures?: boolean;
Input Effect
Twisting two fingers Turns the map
Moving two side-by-side fingers up or down Tilts the map
Dragging with the right mouse button, or with Ctrl held Turns it horizontally and tilts it vertically

A Ctrl click still selects. While the gestures are on, a right-click or Ctrl-click on the map does not open the browser context menu, and after a gesture rotationZ reads between -π and π. Turning or tilting by hand stops a running animateRotation spin or animateTo3DParams animation, and so does switching the tilted view off. The promise of a stopped animateTo3DParams still resolves when the animation would have ended.

After a pan the map turns about the center of the view until it faces the center of the venue, taking zoomAnimationDuration milliseconds. It keeps its heading when:

  • the map is not tilted (pitch is 0)
  • the center of the venue, measured on the flat map at the current zoom, is less than half the shorter side of the view away from the center of the view
  • zoomAnimationDuration is 0
  • the pan ends in a pinch or a Ctrl or Cmd wheel zoom
  • animateRotation, animateTo3DParams or a zoom animation runs as the pan ends

A touch or click on the map, a Ctrl or Cmd wheel zoom, a zoom method such as zoomIn, update3DView, animateTo3DParams or set3DViewEnabled(false) stops the turn where it is. Set enableCameraGestures: false to turn off the gestures and this turn.

const renderer = new SeatmapBookingRenderer(container, {
  publicKey: 'your-public-key',
  switchToWebGL: true,
  enable3DView: true,
  enableCameraGestures: false,
});

Switch the tilted view on and off (SEAT-1587)

set3DViewEnabled turns the tilted view on or off on a shown map, as the enable3DView setting does at start.

set3DViewEnabled(enabled: boolean): void;

Each change leaves the camera flat and facing north. Tilt or turn it with animateTo3DParams once the view is on, and animate it flat before turning the view off for a smooth change. A map shown whole is fitted again for the new view, and a zoomed-in map keeps its zoom. A call that asks for the current state changes nothing, and turning the view on does nothing on the Canvas2D fallback.

renderer.set3DViewEnabled(true);
await renderer.animateTo3DParams({ pitch: Math.PI / 4, fieldOfView: (25 * Math.PI) / 180 }, 600);

await renderer.animateTo3DParams({ rotationZ: 0, pitch: 0, fieldOfView: 0 }, 600);
renderer.set3DViewEnabled(false);

Hold a cart click with onCartClick (SEAT-1587)

onCartClick fires when a click or tap is about to add a seat, general admission or a priced table to the cart, or take it out, before anything changes.

onCartClick?: (event: ICartClickEvent) => boolean | void;

export interface ICartClickEvent {
  seat?: IExtendedSeat;
  section?: ISection;
  inCart: boolean;
  pointerType: string;
  apply(): Promise<void>;
}
Field Description
seat The clicked seat, when the click lands on a seat.
section The clicked general admission area or priced table, when the click lands on one.
inCart Whether the clicked seat or section is in the cart. A click on general admission or a priced table in the cart takes it out, or one ticket with decrementGaOnClick. A click on a seat in the cart takes it out, except with groupSize above 1, where every click selects a group of seats around the clicked one.
pointerType 'mouse', 'touch' or 'pen', or an empty string when the browser does not say.
apply() Makes the change the held click would have made, with orphan prevention, onSeatSelect, onSeatDeselect, onCartChange and the section click callbacks applied as for a click.

Behavior:

  • Return false to hold the click. The map and the cart stay as they are, with no loading or error state on the seat, until you call event.apply(). Any other return value lets the click go ahead, and so does calling event.apply() before returning.
  • Only a plain false holds the click, so an async handler, which returns a promise, cannot. A handler that throws holds the click.
  • apply() resolves once the change is made or refused, and a second call returns the same promise. It checks the seat or section again first and does nothing when it can no longer change the cart, for example because it was locked or went into or out of the cart some other way since the click.
  • The handler fires only for clicks that would change the cart: not for a locked seat, not for a seat whose custom state sets blockInteraction unless the click takes it out of the cart with groupSize 1 or unset, and not for general admission or priced tables under disableCartInteractions.
  • onSeatSelect, onSeatDeselect, onOrphanSeatsBlocked and the section click callbacks fire after it, when the click goes ahead or event.apply() runs.
const renderer = new SeatmapBookingRenderer(container, {
  publicKey: 'your-public-key',
  onCartClick: (event) => {
    if (event.pointerType === 'mouse') return;
    showDetails(event.seat ?? event.section, {
      action: event.inCart ? 'Remove from cart' : 'Add to cart',
      onAction: () => event.apply(),
    });
    return false;
  },
});

showDetails stands for your own tooltip or sheet.

Levels (SEAT-1443)

Seat maps can define named levels, such as Level 1 and Level 2 or Stalls and Balcony. Each level has a height in map units, and the sections assigned to it follow that height in the tilted view. The booking renderer shows levels only with enableLevels: true.

enableLevels?: boolean;
levelSelector?: {
  enabled?: boolean;
  label?: string;
  allLevelsLabel?: string;
  groundLabel?: string;
};
inactiveLevelOpacity?: number;
onActiveLevelChange?: (levelId: string | null) => void;

getLevels: () => SeatmapLevel[];
getActiveLevel: () => string | null;
setActiveLevel: (levelId: string | null) => void;

export interface SeatmapLevel {
  id: string;
  name: string;
  elevation: number;
}
Setting Default Description
enableLevels false Renders the levels a map defines. When false, level definitions and section heights are ignored, no Floor selector shows, and every section stays on the ground plane.
levelSelector On when enableLevels is true; the labels default to Floor, All floors and Ground Set enabled: false to hide the Floor selector, or replace its labels.
inactiveLevelOpacity 0.15 Opacity of the levels that are not active, from 0 to 1.
onActiveLevelChange None Fires with the id of the active level, or null for all levels, when the active floor changes.

setActiveLevel activates a named level, unassigned ground with an empty string, or all levels with null. It has no effect unless enableLevels is true and the map defines levels, and it logs a warning when enableLevels is not set. With a floor active, the other levels are dimmed and only the active floor responds to the pointer; All floors restores the complete map. Selections and cart contents are kept when the floor changes. The Canvas2D renderer shows every map in 2D, so section heights show only in the tilted view on WebGL.

const renderer = new SeatmapBookingRenderer(container, {
  publicKey: 'your-public-key',
  switchToWebGL: true,
  enable3DView: true,
  enableLevels: true,
  levelSelector: { allLevelsLabel: 'All floors', groundLabel: 'Ground' },
  inactiveLevelOpacity: 0.2,
  onActiveLevelChange: (levelId) => showActiveFloor(levelId),
});

await renderer.loadEvent('your-event-id');

const levels = renderer.getLevels();
renderer.setActiveLevel(levels[0]?.id ?? null);

showActiveFloor stands for your own handler. The schema payload that carries the level data is described in the Backend API Changes. Level views apply in the editor only: each level in the payload, and each item getLevels() returns, also lists displayScale, originalScale, displayOffset and originalOffset, always as null, and those members are not part of the SeatmapLevel type.

Remove one general admission ticket per click (SEAT-1316)

decrementGaOnClick: true removes one ticket when a click lands on a general admission section already in the cart. The last ticket removes the item, selection stays on while tickets remain, and a click on an empty section adds one.

decrementGaOnClick?: boolean;

The setting defaults to false, which keeps whole-item removal. disableCartInteractions takes precedence. Clicks update the cart before the section callbacks run, and addGaToCart adds to the remaining quantity, so remove the item first when a callback replaces the quantity.

const renderer = new SeatmapBookingRenderer(container, {
  publicKey: 'your-public-key',
  decrementGaOnClick: true,
});

Client-side SVG background (SEAT-1554)

clientSvgBackground: true opts into an experimental renderer path that keeps background detail visible during zoom and pan and blends in viewport crops generated from an optimized SVG on the client. Shadows stay off in this mode.

clientSvgBackground?: boolean;

The setting defaults to false and needs an optimized detail SVG and WebGL. Unsupported artwork, row overlays and level artwork use the existing rendering path. Background pixel allocations share a 16 MiB allowance on constrained devices or 32 MiB on desktop; the limit does not include browser overhead or other renderer layers. On constrained devices, such as phones and tablets, sharper detail is drawn once the map has stopped moving for 150 ms, and at most once every 2 seconds while it keeps moving, so pans, zooms and turns no longer stall while the detail is drawn; other devices keep refreshing it during motion. Check memory use and frame rate on the devices your audience uses before enabling it broadly.

const renderer = new SeatmapBookingRenderer(container, {
  publicKey: 'your-public-key',
  switchToWebGL: true,
  clientSvgBackground: true,
});

Section photos in getSectionsWithCoords (SEAT-1123)

The results of getSectionsWithCoords() now declare the optional photos field those objects already carried, so typed integrations can read section photos next to the section’s map position.

photos?: ISectionPhoto[];

export interface ISectionPhoto {
  url: string;
  thumbUrl?: string;
  caption?: string;
}
const firstPhoto = renderer.getSectionsWithCoords()[0]?.photos?.[0];

Behaviour changes

Call or setting Before Now
Click or tap on the tilted map while and after it moves Followed the earlier camera angle until the next zoom Lands on the seat or section under the pointer, also while the map turns, tilts, spins or zooms
animateRotation(angle) Jumped back to the default orientation Spins on from the current heading
animateTo3DParams with a heading a full turn away Spun the map Turns the shorter way
Pan on the tilted map The heading did not change The map turns until it faces the center of the venue, unless enableCameraGestures is false
Click on a seat whose custom state sets blockInteraction Called callbacks such as onSeatSelect Ignored; see Blocked seats ignore buyer clicks below
Two-finger pinch on the tilted map Redrew after every finger movement Redraws once per screen refresh from the latest finger positions
Rows overlay request Made on every load Made only when showRows is enabled; prices enable seat selection before a slow row download finishes

Also changed:

  • animateRotation(angle: number): number | null spins the view until stopRotationAnimation is called, the map is turned or tilted by hand, or the tilted view is switched off. A spin asked for during a zoom animation starts when the zoom ends, and is dropped when a pinch stops the zoom. A negative speed spins the other way.
  • zoomToSection takes the shorter turn to the section and frames the section’s own shape at any angle, including on maps with levels.
  • In the admin renderer, a click on the zoomed-out tilted map zooms toward the point under the cursor.
  • The sharp background detail stays on screen while the map turns and while a pan that went past the edge springs back, instead of blurring until the map stops.

Preview page

/widget.html, which the editor’s Preview opens with Open in new window, opens the tilted view at a pitch of 45 degrees with a field of view of 25 degrees, and shows a compass with the map’s heading. Clicking the compass turns the map back to north at that tilt. A portrait screen opens in 2D with the 2D and 3D switch still available. The switch and the compass are hidden when the map is drawn without WebGL. On phones and touch screens, a tap on a seat, general admission area or priced table opens a tooltip with an Add to cart or Remove from cart button, built on onCartClick.

Add these parameters with the value false to the page URL to turn a part off:

Parameter Turns off
webgl WebGL rendering
view3d The tilted view
clientSvgBackground The client-side SVG background
sections The searchable list of sections
tooltips The tooltips

Bug Fixes

Blocked seats ignore buyer clicks (SEAT-1470)

A buyer’s click on a seat that is not in the cart and whose custom state sets blockInteraction, such as a seat marked sold with setSeatsState, now calls no callback and leaves the cart unchanged. With groupSize above 1, every click on a blocked seat is ignored and seat groups skip blocked seats. With groupSize 1 or unset, a click still removes a blocked seat that is already in the cart, for example one restored by initCart. A click on a seat of a table priced as a whole still selects the table. addSeatsToCart leaves blocked seats out, and orphanPrevention counts a blocked seat as free but never adds it to the cart to fill a gap.

An integration that reacted to such clicks in onSeatSelect, for example to tell the buyer the seat is sold, no longer gets that call. Show that message from your own state instead.

Interactive markers (SEAT-1578, SEAT-1580, SEAT-1581)

A tap or click on an interactive marker (addMarker with interactive: true) fires onMarkerClick once and leaves the map under it alone: the seat under the pin is not added to or removed from the cart, a general admission area or table under it is not clicked, and at overview zoom the map does not zoom in. Hovering an interactive marker does not highlight the seat or table under it or fire onSeatMouseEnter or onSectorMouseEnter for it, and moving onto the marker fires the leave callback for what the pointer left. Markers without interactive, taps elsewhere, panning, pinch and wheel zoom work as before.

A mouse click on an interactive marker fires onMarkerClick even when the map redraws between the press and the release, for example because seat states, markers or prices change, the active level changes, the tilted view redraws a venue with raised levels, or the map is resized. A redraw while the pointer rests on a marker does not fire onMarkerMouseEnter again, and in some browsers the enlarged marker no longer drops back to its normal size for a moment. A marker that is removed, hidden or made non-interactive while the pointer rests on it fires onMarkerMouseLeave.

Markers stay on the map when it is zoomed in (SEAT-1574)

Markers added with addMarker stay visible at every zoom level that visibilitySettings.markers allows, also when section outlines are hidden, and keep their size when the map is resized. In Safari and other iOS browsers the dashed outlines that orphan seat prevention draws around seat groups show once a buyer zooms in, and section outlines and markers do not appear over an open section view after the map is resized.

Minimap navigation by touch (SEAT-1614)

The minimap (minimap.enabled) works on touch screens. Dragging its viewport rectangle with a finger, mouse or pen moves the map along with it. A tap or click still moves the view to that point, a touch counts as a drag only after it moves 10 pixels, and a view dragged past the edge of the venue springs back on release.

Overlapping map loads (SEAT-1312, SEAT-1512, SEAT-1513, SEAT-1514)

When loadEvent, or loadSchema in the admin renderer, is called again before the previous call finishes, only the latest call updates the renderer. An earlier call stops applying data, including the section grid that the admin selectSeatBlock uses, fires no further callbacks such as onSchemaDataLoaded, onLoadProgress or onBackgroundImageLoaded, shows no loader error, and resolves its promise. Background images, SVG backgrounds and SVG fallbacks from an earlier load are discarded as soon as the renderer starts applying a newer map, so a late image no longer replaces the new background and the zoomed-in WebGL detail never comes from the previous map. The sharp zoomed-in image no longer waits for the next interaction when the view settles during a background fade-in, when the image is ready after the view has moved on, or after the WebGL context is restored.

After a failed loadEvent, the overlay loader’s error stays until the next loadEvent starts, which brings back the normal loading indicator and the progress bar, and a hidden loader no longer catches pointer events over the loaded map.

Base URL without a trailing slash (SEAT-1388)

The booking renderer loads prices and availability separately whether baseUrl ends in /v1.0 or /v1.0/. Without the trailing slash, each page load sent two requests that failed with 404 and showed as errors in the browser console before the renderer fell back to GET /api/public/v1.0/event/prices/.

Session client accepts the renderer’s base URL (SEAT-1445)

BookingSessionClient accepts the renderer’s baseUrl, which ends in /api/public/v1.0/, as well as the booking-service origin such as https://booking.seatmap.pro.

import { BookingSessionClient } from '@seatmap.pro/renderer';

const sessions = new BookingSessionClient({
  baseUrl: 'https://booking.seatmap.pro',
  publicKey: 'your-public-key',
});

Close-zoom background tiles with a custom image base URL (SEAT-1552)

With backgroundImageBaseUrl set and relative image paths in the chart, the close-zoom background tiles and detail levels load from that base URL, like the preview and full images. Images with absolute URLs, such as images on S3, are unchanged.

Custom seat colors and category colors in WebGL (SEAT-1441, SEAT-1095)

WebGL applies the colors onBeforeSeatDraw returns to the base seat layer when they differ from the supplied style and the price color. Returning the supplied style keeps the price palette. CSS colors draw opaque, and the hovered, selected, loading and error overlays keep their own colors. Seat category colors appear in WebGL as well as Canvas2D, and callbacks receive state: 'unavailable' for locked seats in both rendering modes. setGaCategory tints the general admission price dot in Canvas2D only; in WebGL it logs one warning per page and keeps the category data.

A pinch stops an animated zoom (SEAT-1598)

A two-finger pinch that starts during an animated zoom or move, such as one started by zoomToSection, zoomIn, zoomOut or animateSequence, stops it where it is and zooms from there, where before the map jumped by the animation’s zoom when it ended. The stopped animation leaves its tilt and heading on screen and reports the scale it reached through onZoomEnd. The zoomIn, zoomOut and animateRotation calls waiting for it are dropped, an animateSequence ends at that step, and a map stopped while springing back inside the pan limits returns inside them when the fingers lift.

Constrained devices and large venues (SEAT-1440, SEAT-1501, SEAT-1546)

On phones, tablets and other devices detected as constrained, the Canvas2D renderer loads the largest background image of up to about 8.4 million pixels instead of the full-resolution one, so a zoomed-in background of a large venue can look softer on those devices. Its drawing surfaces use at most 1.5 pixels per CSS pixel and a longest edge of 2048 pixels. WebGL and the high tier load the same images as before, and gpuTier: 'high' keeps the full image for a device fleet known to handle it.

Desktops with a 4K or large external display are no longer detected as constrained because of their screen size alone; detection relies on pixel density, touch input and the GPU benchmark. In WebGL, those desktops again use the full image for zoom detail on backgrounds without detail tiles, instead of staying on the less sharp preview. On desktop and high-density displays the zoomed-in background detail texture is sized to the screen within a 32 MB GPU budget, so venue drawings look sharper next to the seats; constrained mobile devices keep their 2048 px limit.

onCartChange reference (SEAT-1456)

The type definitions and the SDK reference state when onCartChange fires. addSeatsToCart, removeSeatsFromCartByIds, removeSeatsFromCartByKeys and clearCart fire neither onCartChange nor the seat select and deselect callbacks, so after calling them update the cart summary, and any cart you keep on your server, from getCart(). initCart, addGaToCart and removeGaFromCart fire onCartChange before returning when they change the cart, and so do disableSeatsByIds and disableSeatsByKeys when they remove seats from the cart. Renderer behavior is unchanged.

Renderer loading and cache freshness (SEAT-1617)

The renderer downloads the rows overlay only when showRows is enabled, and prices enable seat selection before a slow row download finishes. Large seat maps construct seats with their final coordinates and apply prices and availability without recreating seats or rebuilding the spatial index. Maps that use client SVG backgrounds load the WebP preview in parallel, so seats stay selectable while the detailed artwork loads.

The event payload and the rows overlay are served with compression and HTTP revalidation, described in the Backend API Changes.


Performance

  • Background detail on SVG backgrounds is rasterized at the requested crop size, which reduces memory use when zooming large seat maps on mobile devices. Temporary crop images, canvases and bitmaps are released after drawing, including when loading is cancelled or a texture upload fails.
  • Backgrounds stay aligned with seats during rotation, tilt and perspective changes, for SVG and other backgrounds, without adding texture surfaces or raising the memory allowance.
  • With clientSvgBackground in the tilted view, the detail crop follows the camera once the map rests when it holds more detail than a crop laid out along the map axes. A map turned away from its axes can keep its sharpness, and under perspective the near, magnified part of the map can receive more detail than the far part. While the map moves, replacement crops stay aligned with the map axes.
  • The SVG minimap shows seat price colors and refreshes them when prices or seat styles change.
  • Schema and price loading apply seat locks before a single shared redraw per phase, and layout updates resize only the canvas dimensions that changed.
  • Orphan-seat group checks reuse row geometry and the starting cart state while they evaluate, which reduces temporary allocations when large maps load. Hover checks evaluate the targeted seat. Selection rules and remedies are unchanged.

Installation

npm install @seatmap.pro/renderer@1.75.0