Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source |
string |
Base64 encoded SVG element or URL for SVG file. |
||||||||||||
options |
object |
optional
Options to use
|
Extends
- PIXI.resources.TextureResource
Members
-
RegExp for SVG size.
Example
<svg width="100" height="100"></svg>
-
The source scale to apply to render
-
Base64 encoded SVG element or URL for SVG file
Methods
-
PIXI.resources.SVGResource.getSize (svgString)PIXI.resources.SVGResource~Size static
-
Get size from an svg string using regexp.
Name Type Description svgString
string a serialized svg element
Returns:
Type Description PIXI.resources.SVGResource~Size image extension -
Used to auto-detect the type of resource.
Name Type Description source
* The source object
extension
string The extension of source, if set
-
Reads an SVG string from data URI and then calls
_loadString
.Name Type Description dataUri
string The data uri to load from.
-
Destroys this texture
Type Definitions
-
Typedef for Size object.
Properties:
Name Type Description width
number Width component
height
number Height component