Base64 encoded SVG element or URL for SVG file.
Optionaloptions: ISVGResourceOptionsOptions to use
OptionalautoLoad?: booleanOptionalcrossorigin?: string | booleanOptionalheight?: numberOptionalscale?: numberOptionalsource?: stringOptionalwidth?: numberReadonly_A height override for rasterization on load.
Readonly_A width override for rasterization on load.
ReadonlydestroyedIf resource has been destroyed.
true if resource is created by BaseTexture
useful for doing cleanup with BaseTexture destroy
and not cleaning up resources that were created
externally.
ReadonlyscaleThe source scale to apply when rasterizing on load.
ReadonlysourceThe source element.
The url of the resource
ReadonlysvgBase64 encoded SVG element or URL for SVG file.
Static ReadonlySVG_Regular expression for SVG size.
Static ReadonlySVG_Regular expression for SVG XML document.
The height of the resource.
Has been validated
The width of the resource.
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
Destroys this texture.
Trigger a resize event
X dimension
Y dimension
Set the style, optional to override
yeah, renderer!
the texture
texture instance for this webgl context
true is successChecks if source width/height was changed, resize can cause extra baseTexture update. Triggers one update in any case.
Upload the texture to the GPU.
Upload to the renderer
Reference to parent texture
Optionalsource: ImageSource(optional)
StaticcrossSet cross origin based detecting the url and the crossorigin
Element to apply crossOrigin
URL to check
Optionalcrossorigin: string | booleanCross origin value to use
StaticgetGet size from an svg string using a regular expression.
OptionalsvgString: stringa serialized svg element
StatictestUsed to auto-detect the type of resource.
The source object
Optionalextension: stringThe extension of source, if set
Resource type for SVG elements and graphics.
Memberof
PIXI