Plot
Defined in: map/plot.ts:76
Extends
Section titled “Extends”BaseEngine
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Plot(
host,opts?):Plot
Defined in: map/plot.ts:77
Parameters
Section titled “Parameters”HTMLElement
PlotOptions = {}
Returns
Section titled “Returns”Plot
Overrides
Section titled “Overrides”BaseEngine.constructor
Methods
Section titled “Methods”clearStyle()
Section titled “clearStyle()”clearStyle(
name,ids?):this
Defined in: map/base-engine.ts:504
Remove overrides (all of the layer’s when ids is omitted) and restore base styles.
Parameters
Section titled “Parameters”string
string | number | readonly (string | number)[]
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.clearStyle
destroy()
Section titled “destroy()”destroy():
void
Defined in: map/base-engine.ts:893
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BaseEngine.destroy
disableInteraction()
Section titled “disableInteraction()”disableInteraction():
this
Defined in: map/base-engine.ts:707
Detach the current pan/zoom or rotation interaction (no-op if none).
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.disableInteraction
enableZoom()
Section titled “enableZoom()”enableZoom(
extent?,onTransform?):this
Defined in: map/base-engine.ts:836
Enable scroll-to-zoom / drag-to-pan via d3-zoom, clamped to extent. The optional
onTransform callback fires after each setTransform during zoom — use it to keep an
HTML overlay (e.g. a LabelLayer) aligned with the GPU geometry as the view changes.
Parameters
Section titled “Parameters”extent?
Section titled “extent?”[number, number] = ...
onTransform?
Section titled “onTransform?”(t) => void
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.enableZoom
highlight()
Section titled “highlight()”highlight(
name,idOrIds,styleOrDraw?):this
Defined in: map/base-engine.ts:554
Highlight one drawable / a set of drawables of name by drawing them into a tiny
internal overlay layer on top (inheriting the source’s clipTo/sizeMode) — the base
layer’s buffers are untouched, so the per-change cost is tessellating the
highlighted items only. styleOrDraw falls back to the layer’s hover option,
then to the default white outline. null clears.
Parameters
Section titled “Parameters”string
idOrIds
Section titled “idOrIds”string | number | readonly (string | number)[] | null
styleOrDraw?
Section titled “styleOrDraw?”HighlightStyle | HighlightDraw
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.highlight
layer()
Section titled “layer()”layer<
D>(name,data,opts):LayerHandle<D>
Defined in: map/plot.ts:81
Type Parameters
Section titled “Type Parameters”D
Parameters
Section titled “Parameters”string
readonly D[]
Returns
Section titled “Returns”LayerHandle<D>
on(
event,cb):this
Defined in: map/base-engine.ts:856
Parameters
Section titled “Parameters”"click" | "hover"
(hit, ev) => void
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.on
pick()
Section titled “pick()”pick(
x,y):HoverHit|null
Defined in: map/base-engine.ts:870
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”HoverHit | null
Inherited from
Section titled “Inherited from”BaseEngine.pick
points()
Section titled “points()”points<
D>(name,data,opts):LayerHandle<D>
Defined in: map/plot.ts:89
Type Parameters
Section titled “Type Parameters”D
Parameters
Section titled “Parameters”string
readonly D[] | (() => readonly D[])
Returns
Section titled “Returns”LayerHandle<D>
recolor()
Section titled “recolor()”recolor(
name):this
Defined in: map/base-engine.ts:477
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.recolor
render()
Section titled “render()”render():
this
Defined in: map/base-engine.ts:890
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.render
select()
Section titled “select()”select(
name,set):this
Defined in: map/base-engine.ts:525
Select a set of drawables: style members with the layer’s selection.selected
(default: keep base style) and the complement with selection.others (default
{ opacity: 0.3 }). One O(n) compose + one styles-only push — click-time cost
only, nothing per frame. null clears. NOTE: selection rewrites the layer’s
whole override map, so it replaces earlier setStyle overrides (one table, last
write wins) — and select(null) restores plain base styles.
Parameters
Section titled “Parameters”string
readonly (string | number)[] | ((d, i) => boolean) | null
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.select
setBackend()
Section titled “setBackend()”setBackend(
type):this
Defined in: map/base-engine.ts:700
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.setBackend
setClip()
Section titled “setClip()”setClip(
name,clipTo?):this
Defined in: map/base-engine.ts:685
Parameters
Section titled “Parameters”string
clipTo?
Section titled “clipTo?”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.setClip
setSize()
Section titled “setSize()”setSize(
width,height):this
Defined in: map/base-engine.ts:274
Resize the engine in place to a new CSS size (px) — no teardown. Resizes the live backend, runs the subclass onResize hook (e.g. GeoMap refits its projection), then re-renders and repaints pass-through layers. Layers, view transform, and interaction state are preserved. A no-op when the size is unchanged or either axis is zero (a collapsed/hidden layout). In responsive modes the ResizeObserver calls this automatically; callers in fixed mode use it to apply a new explicit size without recreating the engine.
Parameters
Section titled “Parameters”number
height
Section titled “height”number
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.setSize
setStyle()
Section titled “setStyle()”setStyle(
name,ids,override):this
Defined in: map/base-engine.ts:491
Override the style of one drawable or a set (replaces any previous override for those ids — last write wins). O(ids) compose + one styles-only push.
Parameters
Section titled “Parameters”string
string | number | readonly (string | number)[]
override
Section titled “override”Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.setStyle
setTransform()
Section titled “setTransform()”setTransform(
t):this
Defined in: map/base-engine.ts:748
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”BaseEngine.setTransform
toPNG()
Section titled “toPNG()”toPNG():
string
Defined in: map/base-engine.ts:892
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”BaseEngine.toPNG
toSVG()
Section titled “toSVG()”toSVG():
string
Defined in: map/base-engine.ts:891
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”BaseEngine.toSVG
whenReady()
Section titled “whenReady()”whenReady():
Promise<void>
Defined in: map/base-engine.ts:294
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”BaseEngine.whenReady