cupertino-files / Component
Class: Component
Defined in: src/tsp/store.ts:65
Constructors
Constructor
new Component(
name,bytes):Component
Defined in: src/tsp/store.ts:88
Parameters
name
string
bytes
Uint8Array
Returns
Component
Properties
byId
readonlybyId:Map<bigint,IwaObject>
Defined in: src/tsp/store.ts:71
framing
readonlyframing:IwaFraming
Defined in: src/tsp/store.ts:85
Set when the component could not be decoded — its bytes are still preserved verbatim on save, but its objects are not available.
Collaboration-mode documents are the real case: they write Index/OperationStorage.iwa with Apple LZFSE framing while every other component uses normal Snappy chunking. Failing the whole document over one such component would lose the many that parse fine.
loadError
readonlyloadError:Error|undefined
Defined in: src/tsp/store.ts:86
locator
readonlylocator:string
Defined in: src/tsp/store.ts:69
TSP locator form, e.g. "Document" or "Tables/DataList-5".
name
readonlyname:string
Defined in: src/tsp/store.ts:67
Canonical zip path, e.g. "Index/Document.iwa".
objects
objects:
IwaObject[]
Defined in: src/tsp/store.ts:70
structurallyDirty
structurallyDirty:
boolean=false
Defined in: src/tsp/store.ts:74
Set when objects were added/removed (not just edited in place).
Accessors
dirty
Get Signature
get dirty():
boolean
Defined in: src/tsp/store.ts:110
Returns
boolean
isOpaque
Get Signature
get isOpaque():
boolean
Defined in: src/tsp/store.ts:106
True when this component's objects could not be read.
Returns
boolean
Methods
serialize()
serialize():
Uint8Array
Defined in: src/tsp/store.ts:115
Returns
Uint8Array