API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSvgFactory
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.
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.
new(): SvgFactory create(source: string, options: SvgFactoryOptions): Promise<HTMLImageElement> createObjectUrl(blob: Blob): string destroy(): void process(response: Response): Promise<string> revokeObjectUrl(objectUrl: string): void storageName: "svg"