Skip to content

Class: D3PViewSnapshot ​

Defined in: core/pointer.ts:88

The axes and coordinate systems of a chart as they were when the snapshot was taken. It also is a projection cache, for the projections made through its axes and systems.

Extends ​

Constructors ​

Constructor ​

ts
new D3PViewSnapshot(chart): D3PViewSnapshot;

Defined in: core/pointer.ts:92

Parameters ​

chart ​

D3PChart

Returns ​

D3PViewSnapshot

Overrides ​

D3PProjectionMemo.constructor

Methods ​

getAxis() ​

ts
getAxis(axis): D3PAxisSnapshot;

Defined in: core/pointer.ts:104

The snapshot of an axis, as it was when the snapshot was taken.

Parameters ​

axis ​

D3PAxis

Returns ​

D3PAxisSnapshot


getSystem() ​

ts
getSystem(system): D3PSystemSnapshot;

Defined in: core/pointer.ts:111

The snapshot of a system, as it was when the snapshot was taken.

Parameters ​

system ​

D3PCoordinateSystem

Returns ​

D3PSystemSnapshot


memo() ​

ts
memo<T>(
   projector, 
   chart, 
   key, 
   compute
): T;

Defined in: core/projection.ts:55

The value of compute for these arguments: computed once, then kept as long as the event is.

Type Parameters ​

T ​

T

Parameters ​

projector ​

object

chart ​

D3PChart

key ​

unknown

compute ​

() => T

Returns ​

T

Inherited from ​

D3PProjectionMemo.memo

Properties ​

chart ​

ts
readonly chart: D3PChart;

Defined in: core/pointer.ts:92