Class: SVGImageBlock

SVGImageBlock(file)

An SVG image block contains an SVG image.

Constructor

new SVGImageBlock(file)

Create a block for an SVG image.
Parameters:
Name Type Description
file string The SVG file name String.
Author:
  • Lawrence Fyfe
Source:

Methods

draw()

Draw this block.
Source:

erase()

Erase this block.
Source:

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.
Source:

(async) isReady()

Determines whether the SVG file specified for this block as been fetched.
Source: