English
Class: D3PAxisDomain
Defined in: core/domain.ts:40
Shareable view state. Several axes (of several charts) may reference one domain: that is how views are synchronized. It knows nothing about scales, charts or pixels.
Extends
D3PObject<{domainChanged:D3PDomainValue[]; }>
Accessors
domain
Get Signature
ts
get domain(): D3PDomainValue[];Defined in: core/domain.ts:64
A copy: the internal array is never exposed.
Returns
Set Signature
ts
set domain(value): void;Defined in: core/domain.ts:69
Sets the values it covers, within the constraints. Every axis that shares the domain follows.
Parameters
value
Iterable<D3PDomainValue>
Returns
void
props
Get Signature
ts
get props(): D3PProps<D3PAxisDomainProps>;Defined in: core/domain.ts:55
The props of the domain: the constraints that zooming and panning respect.
Returns
Set Signature
ts
set props(v): void;Defined in: core/domain.ts:59
Merges props into those of the domain.
Parameters
v
rangeMaxConstraints?
{ max?: number; min?: number; }
Bounds of the second domain element.
rangeMaxConstraints.max?
number
The largest value a domain can reach.
rangeMaxConstraints.min?
number
The smallest value a domain can reach.
rangeMinConstraints?
{ max?: number; min?: number; }
Bounds of the first domain element.
rangeMinConstraints.max?
number
The largest value a domain can reach.
rangeMinConstraints.min?
number
The smallest value a domain can reach.
Returns
void
Constructors
Constructor
ts
new D3PAxisDomain(opts?): D3PAxisDomain;Defined in: core/domain.ts:47
Parameters
opts?
D3PAxisDomainOptions = {}
Returns
D3PAxisDomain
Overrides
Methods
destroy()
ts
destroy(): void;Defined in: core/object.ts:51
Detaches the object from all its charts, announces destroyed and releases its subscriptions. The object cannot be used afterwards.
Returns
void
Inherited from
fire()
ts
protected fire<P>(event, ...args): void;Defined in: core/object.ts:41
Emits one of its own events on the bus.
Type Parameters
P
P
Parameters
event
D3PEvent<P>
args
...P extends void ? [] : [payload: P]
Returns
void
Inherited from
onDestroy()
ts
protected onDestroy(): void;Defined in: core/object.ts:46
Hook run first on destroy (detach from partners, release DOM...).
Returns
void
Inherited from
Properties
bus
ts
readonly bus: D3PBus;Defined in: core/object.ts:27
The bus the object uses for its events.
Inherited from
e
ts
readonly e: D3PEventTable<M & object>;Defined in: core/object.ts:29
The events of the object, by name: destroyed for all, and its own (axis.e.scaleChanged).
Inherited from
isDestroying
ts
isDestroying: boolean = false;Defined in: core/object.ts:31
Set when destroy starts: the object is not drawn after that.
Inherited from
subs
ts
protected readonly subs: D3PSubscriptions;Defined in: core/object.ts:33
The subscriptions of the object, released when it is destroyed.