where
a nested layer is shown
the layer
the layer holding it, LayerId.ROOT for a page's own layers
a layer's name and visibility
Optionallabel?: stringits name, if one was set
the layer
Optionalvisible?: booleanwhether it is shown, if that was set
where
a text item is shown
the layer
the item's slot
where
an item is no longer shown
the layer
format codes that come in, at offsets into inserted
what comes in their place
typed text is replaced
The format codes strictly inside what goes go with it, and those at
either end of it stay at start, before what comes in.
how many code units go
where
the typed text, all of it
Optionaltext?: PageTextthe text, or undefined when the page has none
a paragraph's style
the paragraph, counted from 0
Optionalstyle?: numberits style code, if one was set
OptionalbackgroundVisible?: booleanwhether the template is shown
OptionalcurrentLayer?: LayerIdthe selected layer
the page's own settings
OptionalpaperSize?: [width: number, height: number]the page size in device pixels
OptionalrootDocumentVisible?: booleanwhether the underlying document is shown
what a reader of a page shows differently, as a step to apply in order
An
indexcounts the items its layer shows as they stand when the step is applied, and text offsets count UTF-16 code units. A layer not seen before starts with no items and no name.