cupertino-files / DrawableModel
Class: DrawableModel
Defined in: src/tsd/drawables.ts:90
Extended by
Constructors
Constructor
new DrawableModel(
store,object):DrawableModel
Defined in: src/tsd/drawables.ts:94
Parameters
store
object
Returns
DrawableModel
Properties
object
readonlyobject:IwaObject
Defined in: src/tsd/drawables.ts:92
store
readonlystore:ObjectStore
Defined in: src/tsd/drawables.ts:91
Accessors
accessibilityDescription
Get Signature
get accessibilityDescription():
string|undefined
Defined in: src/tsd/drawables.ts:204
Returns
string | undefined
Set Signature
set accessibilityDescription(
value):void
Defined in: src/tsd/drawables.ts:208
Parameters
value
string | undefined
Returns
void
hyperlinkUrl
Get Signature
get hyperlinkUrl():
string|undefined
Defined in: src/tsd/drawables.ts:200
Returns
string | undefined
id
Get Signature
get id():
bigint
Defined in: src/tsd/drawables.ts:99
Returns
bigint
type
Get Signature
get type():
number
Defined in: src/tsd/drawables.ts:103
Returns
number
typeName
Get Signature
get typeName():
string|undefined
Defined in: src/tsd/drawables.ts:107
Returns
string | undefined
Methods
geometry()
geometry():
GeometryInfo|undefined
Defined in: src/tsd/drawables.ts:115
Returns
GeometryInfo | undefined
setGeometry()
setGeometry(
update):void
Defined in: src/tsd/drawables.ts:132
Move and/or resize. Only the provided components are changed.
Parameters
update
angle?
number
height?
number
width?
number
x?
number
y?
number
Returns
void
setPathRectangle()
setPathRectangle(
width,height):void
Defined in: src/tsd/drawables.ts:180
Rewrite a shape's rectangular path to a new size.
A shape's path renders scaled from the path source's naturalSize to the geometry frame, text and all: 93 of the corpus's 103 text-bearing Keynote boxes store a natural size that differs from their frame, and a text box resized by frame alone shrinks or clips its text against the donor's path — the measured field failure. Pages' own text boxes keep path and frame equal (97 of 97), so a text box resized through this library gets both: setGeometry for the frame, this for the text's coordinate space. Which of the two states Keynote's own resize writes is unmeasured, so the two calls stay explicit rather than one implying the other.
Throws when the shape has no bezier path source, or its path is not a plain axis-aligned rectangle — rewriting a star or an arrow into a box would flatten the shape.
Parameters
width
number
height
number
Returns
void
style()
style():
DrawableStyleHandle|undefined
Defined in: src/tsd/drawables.ts:222
Visual style — fill, stroke, opacity, shadow, reflection.
This is where drawable shadows live. Cell and table styles have no shadow field at all, so a shadow on a table means a shadow on the shape or image, not on its cells.
Returns
DrawableStyleHandle | undefined