Skip to content

Interface: TraceView<Calc> ​

Experimental

A trace's live GPU objects, created by TraceRenderer.create.

Type Parameters ​

Type ParameterDefault type
Calcunknown

Methods ​

dispose()? ​

ts
optional dispose(): void;

Experimental

Free anything not added through ctx.add (primitives added there are removed and disposed by the runtime right after this call).

Returns ​

void


handlePointer()? ​

ts
optional handlePointer(event): boolean | void;

Experimental

Take a pointer event before the chart's own interactions (zoom, pan, select, hover), e.g. a table scrolling on wheel or drag. Offered after every component (components draw on top), then to trace views from the last trace to the first. Return true to consume it; a view that consumed down receives every event until up. Positions are container px, so compare them with ctx.domain / ctx.subplot.rect from the last update.

Parameters ​

ParameterType
eventComponentPointerEvent

Returns ​

boolean | void


update() ​

ts
update(ctx, plan): void;

Experimental

Bring the objects up to date. Only called when at least one plan flag is set.

Parameters ​

ParameterType
ctxTracePlotContext<Calc>
planTraceUpdatePlan

Returns ​

void

Released under the MIT License.