Adds the specified points to the end of the line.
Array of 2D points.
Deletes the current object.
Enables or disables the ability to select and edit an object using the mouse.
Returns the foreground color of an object's line or text as a string in hexadecimal color syntax
#RGB
using its primary color components (red, green, blue) written as hexadecimal numbers.
Returns the line type. Can be solid
, dot
or dash
.
Returns the line width.
Returns the coordinates of the line points as a flat array [x1, y1, x2, y2, ...].
Returns the rotation angle of the object, in degress.
Returns the Z-index of a object relative to sibling objects that are in the same group.
Z-Index is not absolute (like in CSS). It is relative to parent object group only:
images
- are olways at the bottomtexts
- are olways on topothers
- are always between images and textsReturns the internal identifier of the object. Not unique.
Returns a reference to a core markup library object (Konva, VisualizeJS, etc.).
Sets the foreground color of an object's line or text.
Color in hexadecimal color syntax #RGB
.
Sets the line type.
Line type. Can be solid
, dot
or dash
.
Sets the line width.
Sets the rotation angle of the object.
Number of degress to rotate.
Sets the Z-index of a object relative to sibling objects that are in the same group.
Z-Index is not absolute (like in CSS). It is relative to parent object group only:
images
- are olways at the bottomtexts
- are olways on topothers
- are always between images and textsAn integer value of Z-Index.
Returns the type of the object.
2D markup Line object interface.