Skip to content

Class: D3PSystemSnapshot<F> ​

Defined in: core/coords.ts:96

A system as it was when snapshot was called: later changes of the chart do not reach it.

Type Parameters ​

F ​

F = unknown

Implements ​

Constructors ​

Constructor ​

ts
new D3PSystemSnapshot<F>(
   system, 
   chart, 
   frame
): D3PSystemSnapshot<F>;

Defined in: core/coords.ts:97

Parameters ​

system ​

D3PCoordinateSystem<F>

The system the snapshot was taken of.

chart ​

D3PChart

The chart the snapshot was taken on.

frame ​

F

Returns ​

D3PSystemSnapshot<F>

Methods ​

projectFrom() ​

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

Defined in: core/coords.ts:120

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

Implementation of ​

D3PSystemProjector.projectFrom


projectTo() ​

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

Defined in: core/coords.ts:113

Range units to a viewport point.

Parameters ​

chart ​

D3PChart

a ​

number

b ​

number

cache? ​

D3PProjectionCache

Returns ​

D3PViewportPoint

Implementation of ​

D3PSystemProjector.projectTo


ranges() ​

ts
ranges(chart): D3PSystemRanges;

Defined in: core/coords.ts:109

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

Parameters ​

chart ​

D3PChart

Returns ​

D3PSystemRanges

Implementation of ​

D3PSystemProjector.ranges


wrap() ​

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

Defined in: core/coords.ts:125

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

Parameters ​

chart ​

D3PChart

dim ​

D3PDimension

delta ​

number

Returns ​

number

Implementation of ​

D3PSystemProjector.wrap

Properties ​

chart ​

ts
readonly chart: D3PChart;

Defined in: core/coords.ts:101

The chart the snapshot was taken on.


system ​

ts
readonly system: D3PCoordinateSystem<F>;

Defined in: core/coords.ts:99

The system the snapshot was taken of.