Glyph

extends Group

The Glyph class represents a group of primitive marks. To create a glyph object, use the glyph method in the Scene class.

Properties inherited from Group

propertyexplanationtypedefault value
bounds the bounding rectangle of the groupRectangle
children the graphical objects in the groupArray[]
dataScopethe data scope of the groupDataScopeundefined
firstChild the first child in the groupMark
id the unique id of the groupString
lastChild the last child in the groupMark or Group
layoutthe layout of the group childrenLayoutundefined
type the type of the groupString“glyph”
visibilitywhether the group is visible (“visible” or “hidden”)String“visible”
x the x coordinate of the center of the group boundsNumber
y the y coordinate of the center of the group boundsNumber

Methods inherited from Group

methodexplanationreturn type
addChild(c)adds an object to the groupvoid
addChildAt(c, i)adds an object to the group at the specified indexvoid
removeAll()removes all the children from the groupvoid
removeChild(c)removes the specified object from the groupvoid