Skip to content

Documentation / @finchart/dom / browserDeps

Function: browserDeps() ​

browserDeps(options?): BrowserDeps

Defined in: dom/src/browser-deps.ts:57

The full wiring you'd commonly use in a browser.

ts
PlotBuilder.create(browserDeps(), candleSeries()).build(el)

build(el) feeds in the container — every DOM-attached collaborator (layers, CSS reader, pointer, size observation) gets bound to el right here, which is why the core contract (PlotDeps) has no element type at all.

Brings in canvas, DOM labels, DOM dividers, pointer input, the frame scheduler, and the CSS reader. Convenience costs bytes — for a sparkline that needs neither axes nor input, use createPlotDeps({ createLayers }) and add only what you need.

Parameters ​

options? ​

BrowserDepsOptions = {}

Returns ​

BrowserDeps