Module: svg/SVGDocumentWrapper

Classes

DefaultSVGHandler
SVGDocumentWrapper

Members

(inner, constant) DRAWABLE_TAGS :Array.<string>

The names of the SVG elements recognized as "drawable".

When isolated elements of these types are found, they are automatically added to specific layers.

Type:
  • Array.<string>
Source:

(inner, constant) handlers :object

A dictionary of SVG handlers.

Type:
  • object
Default Value:
  • {}
Source:

(inner, constant) SVG_NS :string

The SVG namespace URI.

Type:
  • string
Default Value:
  • http://www.w3.org/2000/svg
Source:

Methods

(static) addSVGHandler(name, handler)

Add an SVG handler to the dictionary of supported handlers.

Parameters:
Name Type Description
name string

The name of the handler to add.

handler module:svg/SVGDocumentWrapper.DefaultSVGHandler

The handler to add.

Source: