Skip to content

Interface: D3PSystemProjector ​

Defined in: core/coords.ts:81

Projections of a system, live (D3PCoordinateSystem) or frozen (D3PSystemSnapshot).

Methods ​

projectFrom() ​

ts
projectFrom(
   point, 
   options?, 
   cache?
): D3PRangePoint | undefined;

Defined in: core/coords.ts:90

Viewport point to range units. strict (default) returns undefined outside of the system; tools pass strict: false to keep following a drag that left it.

Parameters ​

point ​

D3PViewportPoint

options? ​
strict? ​

boolean

cache? ​

D3PProjectionCache

Returns ​

D3PRangePoint | undefined


projectTo() ​

ts
projectTo(
   chart, 
   a, 
   b, 
   cache?
): D3PViewportPoint;

Defined in: core/coords.ts:85

Range units to a viewport point.

Parameters ​

chart ​

D3PChart

a ​

number

b ​

number

cache? ​

D3PProjectionCache

Returns ​

D3PViewportPoint


ranges() ​

ts
ranges(chart): D3PSystemRanges;

Defined in: core/coords.ts:83

Ranges of the scales of the first (x) and second (y) dimension.

Parameters ​

chart ​

D3PChart

Returns ​

D3PSystemRanges


wrap() ​

ts
wrap(
   chart, 
   dim, 
   delta
): number;

Defined in: core/coords.ts:92

Normalize a difference along a dimension (an angle wraps around).

Parameters ​

chart ​

D3PChart

dim ​

D3PDimension

delta ​

number

Returns ​

number