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
| property | explanation | type | default value |
|---|---|---|---|
bounds ![]() | the bounding rectangle of the group | Rectangle | |
children ![]() | the graphical objects in the group | Array | [] |
| dataScope | the data scope of the group | DataScope | undefined |
firstChild ![]() | the first child in the group | Mark | |
id ![]() | the unique id of the group | String | |
lastChild ![]() | the last child in the group | Mark or Group | |
| layout | the layout of the group children | Layout | undefined |
type ![]() | the type of the group | String | “glyph” |
| visibility | whether the group is visible (“visible” or “hidden”) | String | “visible” |
x ![]() | the x coordinate of the center of the group bounds | Number | |
y ![]() | the y coordinate of the center of the group bounds | Number |
Methods inherited from Group
| method | explanation | return type |
|---|---|---|
| addChild(c) | adds an object to the group | void |
| addChildAt(c, i) | adds an object to the group at the specified index | void |
| removeAll() | removes all the children from the group | void |
| removeChild(c) | removes the specified object from the group | void |
