Skip to content

Class: D3PRequirement ​

Defined in: core/layout.ts:49

A distance the plot must keep from the edge of the chart on one side, whatever else is there.

Accessors ​

distance ​

Get Signature ​

ts
get distance(): number;

Defined in: core/layout.ts:58

The distance, in pixels.

Returns ​

number

Set Signature ​

ts
set distance(value): void;

Defined in: core/layout.ts:62

Changes the distance: the plot is laid out again.

Parameters ​
value ​

number

Returns ​

void

Constructors ​

Constructor ​

ts
new D3PRequirement(
   layout, 
   side, 
   _distance
): D3PRequirement;

Defined in: core/layout.ts:50

Parameters ​

layout ​

D3PLayout

side ​

D3PSide

The side the plot keeps its distance from.

_distance ​

number

Returns ​

D3PRequirement

Methods ​

release() ​

ts
release(): void;

Defined in: core/layout.ts:69

Gives the distance up: the plot may come closer to the edge.

Returns ​

void

Properties ​

side ​

ts
readonly side: D3PSide;

Defined in: core/layout.ts:53

The side the plot keeps its distance from.