Create a text item. Use colors from the preset color list or a web style hex color.
Mixin common commands.
Get the anchor.
Set the anchor position.
Get the fill color.
Set the fill color. Use colors from the preset color list or a web style hex color.
Get the active fill color. An item's active state is triggered when the mouse rolls over the item.
Set the active fill color. An item's active state is triggered when the mouse rolls over the item. Use colors from the preset color list or a web style hex color.
Get the disabled fill color.
Set the disabled fill color. Use colors from the preset color list or a web style hex color.
Get the text angle.
Specifies how many degrees to rotate the text anticlockwise about the positioning point for the text; it may have any floating-point value from 0.0 to 360.0. For example, if rotationDegrees is 90, then the text will be drawn vertically from bottom to top. This option defaults to 0.0. Degrees is given in units of degrees measured counter-clockwise from the 3-o'clock position; it may be either positive or negative.
Get the font.
Specifies the font to use for the text item. The format of the string to pass when specifing a font is as follows.
Get the alignment
Specifies how to justify the text within its bounding region.
Get the text.
Specifies the characters to be displayed in the text item. Newline characters cause line breaks.
Get max line length.
Specifies a maximum line length for the text. If this option is zero (the default) the text is broken into lines only at newline characters. However, if this option is non-zero then any line that would be longer than line length is broken just before a space character to make the line shorter than lineLength; the space character is treated as if it were a newline character.
Get the type of canvas item.
Get the coords of this item.
Set the coordinates used to draw this item.
Get the tags associated with this item.
Set tags associated with this item.
Add a specific tag to this item.
Delete a specific tag associated to this item.
Delete all tags associated to this item.
Destroy this item and remove it from the canvas.
Set the keyboard focus to this item in the canvas.
Lower an item in the drawing order.
Raise an item in the drawing order.
Move an item on the canvas by an amount.
Move an item on the canvas to a position.
Scale an item on the canvas. Note that some items have only a single pair of coordinates (e.g., text, images and widgets) and so scaling of them by this command can only move them around.
Mixin common commands.
These are injected common commands that can also be used with this canvas item.
A canvas text item.