new KonvaImage()
Methods
-
delete()
-
Delete current Markup object
-
enableMouseEditing(value)
-
Set Mouse editing feature
Parameters:
Name Type Description value
true / false
-
getHeight()
-
Get height of the Image
-
getPosition()
-
Get position of the Image
-
getRotation()
-
Get rotation of the Markup object
-
getSrc()
-
Get source of the Image. Provides base64 string
-
getWidth()
-
Get width of the Image
-
getZIndex()
-
Get Z-Index of the Markup object
-
id()
-
Get an internal identificator of the object. Not unique
-
ref()
-
Link to Library object
-
setHeight(h)
-
Set height of the Image
Parameters:
Name Type Description h
value of height. Width will be automatically updated according to ratio of the Image
-
setPosition(x, y)
-
Set position of the Image
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
-
setSrc(src)
-
Set source of the Image
Parameters:
Name Type Description src
string in base64 format
-
setWidth(w)
-
Set width of the Image
Parameters:
Name Type Description w
value of width. Height will be automatically updated according to ratio of the Image
-
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