Interface: TraceView<Calc>
Experimental
A trace's live GPU objects, created by TraceRenderer.create.
Type Parameters
| Type Parameter | Default type |
|---|---|
Calc | unknown |
Methods
dispose()?
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()?
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
| Parameter | Type |
|---|---|
event | ComponentPointerEvent |
Returns
boolean | void
update()
update(ctx, plan): void;Experimental
Bring the objects up to date. Only called when at least one plan flag is set.
Parameters
| Parameter | Type |
|---|---|
ctx | TracePlotContext<Calc> |
plan | TraceUpdatePlan |
Returns
void