Skip to content

cupertino-files / BuildModel

Class: BuildModel

Defined in: src/keynote/builds.ts:186

Constructors

Constructor

new BuildModel(store, object): BuildModel

Defined in: src/keynote/builds.ts:190

Parameters

store

ObjectStore

object

IwaObject

Returns

BuildModel

Properties

object

readonly object: IwaObject

Defined in: src/keynote/builds.ts:188


store

readonly store: ObjectStore

Defined in: src/keynote/builds.ts:187

Accessors

id

Get Signature

get id(): bigint

Defined in: src/keynote/builds.ts:195

Returns

bigint

Methods

chunks()

chunks(): BuildChunk[]

Defined in: src/keynote/builds.ts:238

The build's stages.

Chunks reference their build rather than the other way round, so they are found by scanning — a slide has a handful, and the alternative is assuming a list field the schema does not have.

Returns

BuildChunk[]


read()

read(): BuildInfo

Defined in: src/keynote/builds.ts:207

Returns

BuildInfo


set()

set(update): void

Defined in: src/keynote/builds.ts:264

Adjust an existing build's timing and delivery.

Editing what is already there is safe in a way creation is not: the fields are the ones Apple wrote, and a mistake shows up the moment the deck is played. Only the properties given are changed.

Timing goes where the build keeps it: into animationAttributes when the build has one (modern builds do), into the legacy database_* fields otherwise. A retimed deck has not round-tripped the app.

Parameters

update
delay?

number

delivery?

string

deliveryOption?

number

duration?

number

textDelivery?

number

Returns

void

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