Skip to content

Interface: D3PProjectionCache ​

Defined in: core/projection.ts:31

Remembers results by projector (an axis, a system, a renderer...), chart and key. A projector asks memo instead of computing: the cache computes on the first request only.

Methods ​

memo() ​

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

Defined in: core/projection.ts:33

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

Type Parameters ​

T ​

T

Parameters ​

projector ​

object

chart ​

D3PChart

key ​

unknown

compute ​

() => T

Returns ​

T