Constructor
new SVGImageBlock(file)
Create a block for an SVG image.
Parameters:
| Name | Type | Description |
|---|---|---|
file |
string | The SVG file name String. |
Methods
draw()
Draw this block.
erase()
Erase this block.
initialize(parentElement, width, height)
Initialize this block with the specified parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
parentElement |
element | The parent element. |
width |
number | The width to use for the SVG image. |
height |
number | The height to use for the SVG image. |
(async) isReady()
Determines whether the SVG file specified for this block as been fetched.