1 |
|
2 |
|
3 |
|
4 | import type { IHsl, IParticle } from "../../Core/Interfaces";
|
5 | export interface IImage {
|
6 | source: string;
|
7 | type: string;
|
8 | element?: HTMLImageElement;
|
9 | svgData?: string;
|
10 | }
|
11 | export interface IParticleImage {
|
12 | source: string;
|
13 | data: IImage;
|
14 | ratio: number;
|
15 | element?: HTMLImageElement;
|
16 | loaded?: boolean;
|
17 | replaceColor: boolean;
|
18 | }
|
19 | export interface ContainerImage {
|
20 | id: string;
|
21 | images: IImage[];
|
22 | }
|
23 | export declare type IImageParticle = IParticle & {
|
24 | image: IParticleImage;
|
25 | };
|
26 | export declare function loadImage(source: string): Promise<IImage | undefined>;
|
27 | export declare function downloadSvgImage(source: string): Promise<IImage | undefined>;
|
28 | export declare function replaceColorSvg(imageShape: IImage, color: IHsl, opacity: number): string;
|