Skip to content

cupertino-files / ChartStyleArchive

Class: ChartStyleArchive

Defined in: src/tsch/appearance.ts:152

A styled thing in a chart: series, axis, legend or the chart itself.

All four archives have the same shape, so they share the accessor for their property bag. Subclasses name the properties they understand.

Extended by

Constructors

Constructor

new ChartStyleArchive(store, object): ChartStyleArchive

Defined in: src/tsch/appearance.ts:156

Parameters

store

ObjectStore

object

IwaObject

Returns

ChartStyleArchive

Properties

object

readonly object: IwaObject

Defined in: src/tsch/appearance.ts:154


store

readonly store: ObjectStore

Defined in: src/tsch/appearance.ts:153

Accessors

id

Get Signature

get id(): bigint

Defined in: src/tsch/appearance.ts:161

Returns

bigint

Methods

fillProperty()

fillProperty(field): Fill | undefined

Defined in: src/tsch/appearance.ts:189

A TSD.FillArchive property, decoded.

Parameters

field

number

Returns

Fill | undefined


floatProperty()

floatProperty(field): number | undefined

Defined in: src/tsch/appearance.ts:199

A float property, e.g. an opacity.

Parameters

field

number

Returns

number | undefined


properties()

properties(): RawMessage | undefined

Defined in: src/tsch/appearance.ts:173

The property bag, or undefined on an archive that carries none.

An archive with no field 10000 is inheriting everything from its preset. Reading returns undefined rather than inventing defaults, because the value that applies then is the preset's, and this module does not resolve preset inheritance.

Returns

RawMessage | undefined


requireProperties()

protected requireProperties(): RawMessage

Defined in: src/tsch/appearance.ts:178

The bag, created if the archive has none.

Returns

RawMessage


setFillProperty()

setFillProperty(field, fill): void

Defined in: src/tsch/appearance.ts:193

Parameters

field

number

fill

Fill

Returns

void


setFloatProperty()

setFloatProperty(field, value): void

Defined in: src/tsch/appearance.ts:203

Parameters

field

number

value

number

Returns

void

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.