Skip to content

Class: D3PProjectionMemo ​

Defined in: core/projection.ts:51

The plain cache: a map of maps, kept as long as the object is.

Extended by ​

Implements ​

Constructors ​

Constructor ​

ts
new D3PProjectionMemo(): D3PProjectionMemo;

Returns ​

D3PProjectionMemo

Methods ​

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

Implementation of ​

D3PProjectionCache.memo