AbstractSvgPrimitive

AbstractSvgPrimitive ⇐ AbstractPrimitive

Kind: global abstract class
Extends: AbstractPrimitive
Properties

NameTypeDescription
urlString | null

An svg url.

AbstractSvgPrimitive()

An svg primitive is an object that can be rendered by all kinds of renderer and it aims at displaying a vectored image.

on(eventType, callback)

Register the callback and store the listener

Kind: instance method of AbstractSvgPrimitive

ParamType
eventTypeString
callbackfunction

off(eventType)

Unregister the callback and remove the listener stored

Kind: instance method of AbstractSvgPrimitive

ParamType
eventTypeString

_onLoaded()

Dispatch svg loaded event

Kind: instance method of AbstractSvgPrimitive

_onLoadError()

Dispatch svg load error event

Kind: instance method of AbstractSvgPrimitive

_updateRenderingContext_url()

Kind: instance method of AbstractSvgPrimitive