Skip to content

charton API


charton API / @chart-on/core / index / ZoneHandle

Abstract Interface: ZoneHandle<O> ​

Defined in: packages/core/src/annotations/zones.ts:94

Handle shared by time bands, price zones and text labels.

Extends ​

Extended by ​

Type Parameters ​

O ​

O extends object

Properties ​

owner ​

protected readonly owner: ZoneOwner

Defined in: packages/core/src/annotations/lines.ts:48

Inherited from ​

OptionsHandle.owner

Accessors ​

options ​

Get Signature ​

get options(): Readonly<O>

Defined in: packages/core/src/annotations/lines.ts:54

Returns ​

Readonly<O>

Inherited from ​

OptionsHandle.options


visible ​

Get Signature ​

get visible(): boolean

Defined in: packages/core/src/annotations/lines.ts:58

Returns ​

boolean

Inherited from ​

OptionsHandle.visible

Methods ​

applyOptions() ​

applyOptions(patch): void

Defined in: packages/core/src/annotations/lines.ts:63

Merge new options and redraw. Throws on invalid options, leaving the current ones.

Parameters ​

patch ​

Partial<O>

Returns ​

void

Inherited from ​

OptionsHandle.applyOptions


check() ​

abstract protected check(options): void

Defined in: packages/core/src/annotations/lines.ts:82

Parameters ​

options ​

O

Returns ​

void

Inherited from ​

OptionsHandle.check


optionsChanged() ​

protected optionsChanged(): void

Defined in: packages/core/src/annotations/lines.ts:88

Drop caches derived from the options.

Returns ​

void

Inherited from ​

OptionsHandle.optionsChanged


prepare() ​

protected prepare(next): void

Defined in: packages/core/src/annotations/zones.ts:95

Hook between checking and committing new options; may throw to reject them.

Parameters ​

next ​

O

Returns ​

void

Overrides ​

OptionsHandle.prepare


remove() ​

remove(): void

Defined in: packages/core/src/annotations/lines.ts:78

Returns ​

void

Inherited from ​

OptionsHandle.remove


setVisible() ​

setVisible(visible): void

Defined in: packages/core/src/annotations/lines.ts:73

Hide or show it; its options are kept.

Parameters ​

visible ​

boolean

Returns ​

void

Inherited from ​

OptionsHandle.setVisible