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:
aspectRatioset → width-driven: the host fills the available width and keeps this width÷height ratio (a CSSaspect-ratioon the host); the engine tracks the resulting box.- neither
widthnorheight→ 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
widthandheight→ fixed: a static size, the opt-out (the pre-responsive behavior).
Extended by
Section titled “Extended by”Properties
Section titled “Properties”aspectRatio?
Section titled “aspectRatio?”
optionalaspectRatio?:number
Defined in: map/base-engine.ts:87
width ÷ height. When set, the engine is width-driven and keeps this ratio on resize.
height?
Section titled “height?”
optionalheight?:number
Defined in: map/base-engine.ts:85
width?
Section titled “width?”
optionalwidth?:number
Defined in: map/base-engine.ts:84