Accessors
currentPenStyle
- get currentPenStyle(): TPenStyle
penStyle
- get penStyle(): TPenStyle
penStyleClasses
- get penStyleClasses(): string
Returns string
theme
- get theme(): TTheme
Constructors
constructor
- new StyleManager(
penStyle?: {
"-myscript-pen-fill-color"?: string;
"-myscript-pen-fill-style"?: string;
"-myscript-pen-width"?: number;
color?: string;
fill?: string;
opacity?: number;
width?: number;
[key: string]: undefined | string | number;
},
theme?: {
".math"?: { "font-family"?: string };
".math-solved"?: { color?: string; "font-family"?: string };
".text"?: { "font-family"?: string; "font-size"?: number };
ink?: {
"-myscript-pen-fill-color"?: string;
"-myscript-pen-fill-style"?: string;
"-myscript-pen-width"?: number;
color?: string;
fill?: string;
opacity?: number;
width?: number;
[key: string]: undefined | string | number;
};
[key: string]: unknown;
},
): StyleManager Parameters
Optional
penStyle: {
"-myscript-pen-fill-color"?: string;
"-myscript-pen-fill-style"?: string;
"-myscript-pen-width"?: number;
color?: string;
fill?: string;
opacity?: number;
width?: number;
[key: string]: undefined | string | number;
}Optional
theme: {
".math"?: { "font-family"?: string };
".math-solved"?: { color?: string; "font-family"?: string };
".text"?: { "font-family"?: string; "font-size"?: number };
ink?: {
"-myscript-pen-fill-color"?: string;
"-myscript-pen-fill-style"?: string;
"-myscript-pen-width"?: number;
color?: string;
fill?: string;
opacity?: number;
width?: number;
[key: string]: undefined | string | number;
};
[key: string]: unknown;
}
Methods
setPenStyle
- setPenStyle(
style?: {
"-myscript-pen-fill-color"?: string;
"-myscript-pen-fill-style"?: string;
"-myscript-pen-width"?: number;
color?: string;
fill?: string;
opacity?: number;
width?: number;
[key: string]: undefined | string | number;
},
): void Parameters
Optional
style: {
"-myscript-pen-fill-color"?: string;
"-myscript-pen-fill-style"?: string;
"-myscript-pen-width"?: number;
color?: string;
fill?: string;
opacity?: number;
width?: number;
[key: string]: undefined | string | number;
}
Returns void
setPenStyleClasses
- setPenStyleClasses(penStyleClass?: string): void
Parameters
- penStyleClass: string = ""
Returns void
setTheme
- setTheme(
theme?: {
".math"?: { "font-family"?: string };
".math-solved"?: { color?: string; "font-family"?: string };
".text"?: { "font-family"?: string; "font-size"?: number };
ink?: {
"-myscript-pen-fill-color"?: string;
"-myscript-pen-fill-style"?: string;
"-myscript-pen-width"?: number;
color?: string;
fill?: string;
opacity?: number;
width?: number;
[key: string]: undefined | string | number;
};
[key: string]: unknown;
},
): void Parameters
Optional
theme: {
".math"?: { "font-family"?: string };
".math-solved"?: { color?: string; "font-family"?: string };
".text"?: { "font-family"?: string; "font-size"?: number };
ink?: {
"-myscript-pen-fill-color"?: string;
"-myscript-pen-fill-style"?: string;
"-myscript-pen-width"?: number;
color?: string;
fill?: string;
opacity?: number;
width?: number;
[key: string]: undefined | string | number;
};
[key: string]: unknown;
}
Returns void