Class: KonvaArrow

KonvaArrow

Arrow Markup object


new KonvaArrow()

Methods


delete()

Delete current Markup object


enableMouseEditing(value)

Set Mouse editing feature

Parameters:
Name Type Description
value

true / false


getColor()

Get color of the Markup instance


getEndPoint()

Get End point of the Arrow


getPoints()

Get points of current Arrow

Returns:

array of points

Type
Object

getRotation()

Get rotation of the Markup object


getStartPoint()

Get Start Point of the Arrow


getZIndex()

Get Z-Index of the Markup object


id()

Get an internal identificator of the object. Not unique


ref()

Link to Library object


setColor(hex)

Set color of the Markup instance

Parameters:
Name Type Description
hex

color in #hex format. Default: #ff0000


setEndPoint(x, y)

Set End point of the Arrow

Parameters:
Name Type Description
x

value of X coordinate

y

value of Y coordinate


setPoints(points)

Set points of the Arrow

Parameters:
Name Type Description
points Object

array of points


setRotation(degrees)

Set rotation of the Markup object

Parameters:
Name Type Description
degrees

number of degress to rotate


setStartPoint(x, y)

Set Start point of the Arrow

Parameters:
Name Type Description
x

value of X coordinate

y

value of Y coordinate


setZIndex(zIndex)

Set Z-Index of the Markup object

Parameters:
Name Type Description
zIndex

integer value of Z-Index


type()

Get type of the Markup object