-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathoptions.d.ts
55 lines (49 loc) · 1.56 KB
/
options.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
export interface IPluginOptions {
/**
* Specifies the scaling factor for the zooming icon.
* @type {number}
* @default 1.2
*/
scale?: number;
/**
* Indicates whether the plugin should automatically install required dependencies.
* @type {boolean}
* @default true
*/
autoInstall?: boolean;
/**
* Specifies the compiler used by the plugin. This setting determines how to process the code.
* @type {"jsx" | "vue" | "solid" | "svelte"}
* @default "jsx"
*/
compiler?: "jsx" | "vue" | "solid" | "svelte";
/**
* Specifies the JSX compiler to use. This option is necessary when the selected compiler is processing JSX syntax.
* @type {"react" | "preact"}
* @default "react"
*
* Options:
* - "react": Use the React JSX transformer.
* - "preact": Use the Preact JSX transformer.
*/
jsx?: "react" | "preact";
/**
* Specifies default CSS styles to apply to the SVG element. Use standard CSS properties in camelCase.
* @type {Partial<CSSStyleDeclaration>}
*/
defaultStyle?: Partial<CSSStyleDeclaration>;
/**
* Specifies a default CSS class to apply to the SVG element.
* @type {string}
*/
defaultClass?: string;
/**
* Defines a collection of custom icons. This can include both local and remote SVG files.
* Use [iconname] as a placeholder within the string to represent the icon name.
* @type {Record<string, string>}
* @example
* import icon from "~icons/local/[iconname].svg"
* import icon from "~icons/remote/[iconname].svg"
*/
customCollections?: Record<string, string>;
}