English
Class: D3PAxisSnapshot
Defined in: core/axis.ts:112
An axis as it was when snapshot was called: its domain, and the scale and system that went with it. A tool that compares the start of a gesture with the live state uses it; the live axis keeps moving while the gesture writes its domain.
Implements
Accessors
scale
Get Signature
ts
get scale(): D3PScale;Defined in: core/axis.ts:132
The scale of the snapshot (built on first use).
Returns
Constructors
Constructor
ts
new D3PAxisSnapshot(
axis,
chart,
system
): D3PAxisSnapshot;Defined in: core/axis.ts:119
Parameters
axis
The axis this snapshot was taken of.
chart
The chart it was taken on.
system
The coordinate system of the axis, as it was at the time of the snapshot.
Returns
D3PAxisSnapshot
Methods
projectFrom()
ts
projectFrom(
point,
options?,
cache?
): D3PDomainValue | undefined;Defined in: core/axis.ts:147
The value of this axis under a point of the chart, as it was at the time of the snapshot.
Parameters
point
options?
strict?
boolean
cache?
Returns
D3PDomainValue | undefined
Implementation of
projectTo()
ts
projectTo(
chart,
value,
cache?
): number | undefined;Defined in: core/axis.ts:141
The place of a value along this axis, in range units, as it was at the time of the snapshot.
Parameters
chart
value
cache?
Returns
number | undefined
Implementation of
Properties
axis
ts
readonly axis: D3PAxis;Defined in: core/axis.ts:121
The axis this snapshot was taken of.
chart
ts
readonly chart: D3PChart;Defined in: core/axis.ts:123
The chart it was taken on.
component
ts
readonly component: D3PAxisComponent;Defined in: core/axis.ts:114
x or y: the dimension of the axis.
domain
ts
readonly domain: D3PDomainValue[];Defined in: core/axis.ts:116
The domain at the time of the snapshot.
system
ts
readonly system: D3PSystemSnapshot;Defined in: core/axis.ts:125
The coordinate system of the axis, as it was at the time of the snapshot.