Module graphics/DisplayObject
Type aliases
A type that represents the union of all primitive Shape
object types. For use in Shapes
or ContourShapes
DisplayObject
s rendered shapes
array.
...
{
graphics: {
items: [
{
tag: "Shapes",
key: "myShapes",
primitives: [
//Shapes go here.
]
fillStyle: {
color: '#f00'
}
}
]
}
}
...
Type union over all valid text alignment strings.
Type union over Translate
and ZIndex
. Used to describe a transformation operation
on a Container
DisplayObject
.
type Translate {
readonly tag: 'Translate';
readonly vector: Vector2;
}
type ZIndex {
readonly tag: 'ZIndex';
readonly zIndex: number;
}
Generated using TypeDoc
A type that represents graphic objects. Used in
map
's return object'sgraphics.items
array property.