This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,26 @@
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 [loadSVG]{@link assets.loadSVG} plugin.
* @see assets.loadSVG
* @memberof assets
*/
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
* @memberof assets
*/
export declare const loadSvg: LoaderParser<Texture | GraphicsContext, TextureSourceOptions & LoadSVGConfig, LoadSVGConfig>;