Class CanvasImage
Defined in: image.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CanvasImage(x, y, src)
Offers support for images in diagrams
|
Method Attributes | Method Name and Description |
---|---|
clone()
|
|
contains(x, y)
|
|
drawImage(context, img)
|
|
equals(anotherImage)
|
|
getFile()
|
|
getURL()
|
|
<static> |
CanvasImage.load(o)
Creates a {CanvasImage} out of JSON parsed object
|
near(x, y, radius)
|
|
paint(context)
|
|
setEncoded(figure, encoded)
|
|
setFile(figure, file)
|
|
setURL(figure, url)
|
|
toString()
|
|
transform(matrix)
|
Class Detail
CanvasImage(x, y, src)
Offers support for images in diagrams
Author: zack.
Author: zack.
- Parameters:
- {Number} x
- {Number} y
- {String} src
Method Detail
clone()
contains(x, y)
- Parameters:
- x
- y
drawImage(context, img)
- Parameters:
- context
- img
equals(anotherImage)
- Parameters:
- anotherImage
getBounds()
getEncoded()
getFile()
getNormalBounds()
getPoints()
getURL()
<static>
{CanvasImage}
CanvasImage.load(o)
Creates a {CanvasImage} out of JSON parsed object
- Parameters:
- {JSONObject} o
- - the JSON parsed object
- Returns:
- {CanvasImage} a newly constructed Point
near(x, y, radius)
- Parameters:
- x
- y
- radius
paint(context)
- Parameters:
- context
setEncoded(figure, encoded)
- Parameters:
- figure
- encoded
setFile(figure, file)
- Parameters:
- figure
- file
setURL(figure, url)
- Parameters:
- figure
- url
toString()
transform(matrix)
- Parameters:
- matrix