Skip to content

Function: d3pMemo() ​

ts
function d3pMemo<T>(
   cache, 
   projector, 
   chart, 
   key, 
   compute
): T;

Defined in: core/projection.ts:37

cache.memo(...) when there is a cache, a plain computation otherwise.

Type Parameters ​

T ​

T

Parameters ​

cache ​

D3PProjectionCache | undefined

projector ​

object

chart ​

D3PChart

key ​

unknown

compute ​

() => T

Returns ​

T