Skip to content

EngineSizing

Defined in: map/base-engine.ts:83

How an engine is sized. Sizing is responsive by default — the engine observes its host and resizes in place (no teardown), preserving layers, view, and interaction state:

  • aspectRatio set → width-driven: the host fills the available width and keeps this width÷height ratio (a CSS aspect-ratio on the host); the engine tracks the resulting box.
  • neither width nor height → fill-parent: the engine tracks the host’s box. The host must get a height from your layout (CSS), since the rendering surface is absolutely positioned.
  • both width and height → fixed: a static size, the opt-out (the pre-responsive behavior).

optional aspectRatio?: number

Defined in: map/base-engine.ts:87

width ÷ height. When set, the engine is width-driven and keeps this ratio on resize.


optional height?: number

Defined in: map/base-engine.ts:85


optional width?: number

Defined in: map/base-engine.ts:84