Skip to content

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 ​

Accessors ​

domain ​

Get Signature ​

ts
get domain(): D3PDomainValue[];

Defined in: core/domain.ts:64

A copy: the internal array is never exposed.

Returns ​

D3PDomainValue[]

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 ​

D3PProps<D3PAxisDomainProps>

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 ​

D3PObject.constructor

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 ​

D3PObject.destroy


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 ​

D3PObject.fire


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 ​

D3PObject.onDestroy

Properties ​

bus ​

ts
readonly bus: D3PBus;

Defined in: core/object.ts:27

The bus the object uses for its events.

Inherited from ​

D3PObject.bus


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 ​

D3PObject.e


isDestroying ​

ts
isDestroying: boolean = false;

Defined in: core/object.ts:31

Set when destroy starts: the object is not drawn after that.

Inherited from ​

D3PObject.isDestroying


subs ​

ts
protected readonly subs: D3PSubscriptions;

Defined in: core/object.ts:33

The subscriptions of the object, released when it is destroyed.

Inherited from ​

D3PObject.subs