English
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
The system the snapshot was taken of.
chart
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
options?
strict?
boolean
cache?
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
a
number
b
number
cache?
Returns
Implementation of
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
Returns
Implementation of
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
dim
delta
number
Returns
number
Implementation of
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.