Class: KonvaText

KonvaText

Text Markup object


new KonvaText()

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


getFontSize()

Get font size. Default value is 34


getPosition()

Get position of the Text


getRotation()

Get rotation of the Markup object


getText()

Get Text value


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


setFontSize(size)

Set font size. Default value is 34

Parameters:
Name Type Description
size

setPosition(x, y)

Set position of the Text

Parameters:
Name Type Description
x

value of X coordinate

y

value of Y coordinate


setRotation(degrees)

Set rotation of the Markup object

Parameters:
Name Type Description
degrees

number of degress to rotate


setText(text)

Set Text value

Parameters:
Name Type Description
text

string value


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