SVGImageNode
class SVGImageNode extends SVGGraphicsNode
Draws SVG <image /> elements.
Constructor
new SVGImageNode() → {}
Draws SVG <image /> elements.
Summary
Properties from SVGImageNode
| HTMLCanvasElement |
|
| CanvasRenderingContext2D |
The Canvas 2D context for |
| PIXI.Texture |
A texture backed by |
Methods from SVGImageNode
| void |
Embeds the given SVG image element into this node. |
Properties inherited from Graphics
| PIXI.BLEND_MODES |
|
| boolean |
|
| PIXI.Polygon |
|
| PIXI.FillStyle |
|
| PIXI.GraphicsGeometry |
|
| PIXI.LineStyle |
|
| string |
Renderer plugin for batching |
| PIXI.Shader |
|
| number |
|
| PIXI.FillStyle |
Current fill style. |
| boolean |
Current hole mode is enabled. |
| PIXI.LineStyle |
Current line style. |
| PIXI.Matrix |
Current shape transform matrix. |
| number |
Update dirty for limiting calculating batches. |
| Array<IGraphicsBatchElement> |
A collections of batches! These can be drawn by the renderer batch system. |
| number |
Update dirty for limiting calculating tints for batches. |
| Float32Array |
Copy of the object vertex data. |
Properties inherited from Container
| T[] |
|
| number |
The height of the Container, setting this will actually modify the scale to achieve the value set. |
| boolean |
|
| boolean |
|
| boolean |
Should children be sorted by zIndex at the next updateTransform call. |
| number |
The width of the Container, setting this will actually modify the scale to achieve the value set. |
Properties inherited from DisplayObject
| boolean |
|
| boolean |
|
| PIXI.Bounds |
The bounds object, this is used to calculate and store the bounds of the displayObject. |
| PIXI.Bounds |
Local bounds object, swapped with |
| boolean |
|
| boolean |
|
| string |
|
| string |
|
| ?string |
|
| string |
|
| number |
The opacity of the object. |
| number |
|
| boolean |
|
| number |
|
| number |
|
| boolean |
Should this object be rendered if the bounds of this object are out of frame? |
| PIXI.Rectangle |
|
| string |
|
| boolean |
Readonly flag for destroyed display objects. |
| PIXI.Rectangle |
|
| PIXI.Filter[] | null |
|
| PIXI.IHitArea |
|
| boolean |
|
| boolean |
Does any other displayObject use this object as a mask? |
| boolean |
Used to fast check if a sprite is.. a sprite! |
| PIXI.Matrix |
|
| PIXI.Container | PIXI.MaskData | null |
|
| string |
|
| PIXI.Container |
The display object container that contains this display object. |
| PIXI.ObservablePoint |
|
| PIXI.ObservablePoint |
|
| boolean |
|
| number |
|
| PIXI.ObservablePoint |
The scale factors of this object along the local coordinate axes. |
| PIXI.ObservablePoint |
|
| PIXI.DisplayObject |
|
| PIXI.Transform |
|
| boolean |
|
| number |
|
| PIXI.Matrix |
|
| boolean |
|
| number |
|
| number |
|
| number |
The zIndex of the displayObject. |
| number |
Flags the cached bounds as dirty. |
| PIXI.Rectangle |
Cache of this display-object's bounds-rectangle. |
| boolean |
If the object has been destroyed via destroy(). If true, it should not be used. |
| PIXI.Filter[] |
|
| number |
|
| PIXI.Rectangle |
Cache of this display-object's local-bounds rectangle. |
| PIXI.Container | PIXI.MaskData |
|
| PIXI.Container |
|
| number |
|
Methods inherited from SVGGraphicsNode
| this |
Draws an elliptical arc. |
| this |
Draws an elliptical arc to the specified point. |
| void |
Embeds the |
| void |
Embeds the |
| void |
Embeds the |
| void |
Embeds the |
| void |
Embeds the |
| void |
Embeds the |
| void |
|
Methods inherited from Graphics
Methods inherited from Container
Methods inherited from DisplayObject
Inherited Events from Container
Inherited Events from DisplayObject
|
|
|
|
|
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
|
|
|
Capture phase equivalent of |
|
|
Fired when the mouse pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
|
Capture phase equivalent of |
|
|
Fired when the mouse pointer exits a DisplayObject and its descendants. |
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
Fired when the pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
|
Capture phase equivalent of |
|
|
Fired when the pointer leaves the hit testing boundaries of a DisplayObject and its descendants. |
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
| PIXI.FederatedWheelEvent |
Fired when a the user scrolls with the mouse cursor over a DisplayObject. |
| PIXI.FederatedWheelEvent |
Capture phase equivalent of |
Protected Properties
protected _canvas: HTMLCanvasElement
The canvas used into which the SVGImageElement is drawn. This is because WebGL does not support
using SVGImageElement as an ImageSource for textures.
protected _context: CanvasRenderingContext2D
The Canvas 2D context for this._canvas.
Public Methods
embedImage(element: SVGImageElement) → {void}
Embeds the given SVG image element into this node.
| Name | Type | Description |
|---|---|---|
| element | SVGImageElement |
The SVG image element to embed. |
| Type | Description |
|---|---|
| void |