new KonvaEllipse()
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
-
getLineWidth()
-
Get line width of the Ellipse. Defailt is 4
-
getPosition()
-
Get position of the Ellipse
-
getRadiusX()
-
Get X radius of the Ellipse
-
getRadiusY()
-
Get Y radius of the Ellipse
-
getRotation()
-
Get rotation of the Markup object
-
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
-
setLineWidth(size)
-
Set line width of the Ellipse. Default is 4
Parameters:
Name Type Description size
value of width
-
setPosition(x, y)
-
Set position of the Ellipse
Parameters:
Name Type Description x
value of X coordinate
y
value of Y coordinate
-
setRadiusX(r)
-
Set X radius of the Ellipse
Parameters:
Name Type Description r
value of X radius of the Ellipse
-
setRadiusY(r)
-
Set Y radius of the Ellipse
Parameters:
Name Type Description r
value of Y radius of the Ellipse
-
setRotation(degrees)
-
Set rotation of the Markup object
Parameters:
Name Type Description degrees
number of degress to rotate
-
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