API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classSvgFactory

@codexo/exojs / resources / stable

AssetFactory implementation that loads SVG markup and produces a rasterised HTMLImageElement. The SVG source text is wrapped in an `image/svg+xml` blob and decoded by the browser's image pipeline, which means the result is a bitmap snapshot at the element's intrinsic size rather than a live, interactive SVG DOM. Use this when you need an SVG as a static sprite or texture source.

1
props
5
methods
0
events
Import
import { SvgFactory } from '@codexo/exojs'

AssetFactory implementation that loads SVG markup and produces a rasterised HTMLImageElement.

The SVG source text is wrapped in an `image/svg+xml` blob and decoded by the browser's image pipeline, which means the result is a bitmap snapshot at the element's intrinsic size rather than a live, interactive SVG DOM. Use this when you need an SVG as a static sprite or texture source.

Constructors 1
new(): SvgFactory
Methods 5
create(source: string, options: SvgFactoryOptions): Promise<HTMLImageElement>
createObjectUrl(blob: Blob): string
destroy(): void
process(response: Response): Promise<string>
revokeObjectUrl(objectUrl: string): void
Properties 1
storageName: "svg"
Source