UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

29 lines (28 loc) 1.02 kB
import { GraphicsContext } from '../../../../scene/graphics/shared/GraphicsContext'; import { type LoaderParser } from '../LoaderParser'; import type { TextureSourceOptions } from '../../../../rendering/renderers/shared/texture/sources/TextureSource'; import type { Texture } from '../../../../rendering/renderers/shared/texture/Texture'; /** * Configuration for the {@link loadSvg} plugin. * @see loadSvg * @category assets * @advanced */ export interface LoadSVGConfig { /** * The crossOrigin value to use for loading the SVG as an image. * @default 'anonymous' */ crossOrigin: HTMLImageElement['crossOrigin']; /** * When set to `true`, loading and decoding images will happen with `new Image()`, * @default false */ parseAsGraphicsContext: boolean; } /** * A simple loader plugin for loading json data * @category assets * @advanced */ export declare const loadSvg: LoaderParser<Texture | GraphicsContext, TextureSourceOptions & LoadSVGConfig, LoadSVGConfig>;