Accessors
currentPenStyle
- get currentPenStyle(): TPenStyle
penStyle
- get penStyle(): TPenStyle
penStyleClasses
- get penStyleClasses(): string
Returns string
theme
- get theme(): TTheme
Constructors
constructor
- new StyleManager(penStyle?, theme?): 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;
}
Optional
-myscript-pen-fill-color?: string
Optional
-myscript-pen-fill-style?: string
Optional
-myscript-pen-width?: number
Optional
color?: string
Optional
fill?: string
Optional
opacity?: number
Optional
width?: number
Optional
theme: {
.math?: { "font-family"?: string | undefined; };
.math-solved?: { "font-family"?: string | undefined; color?: string | undefined; };
.text?: { "font-family"?: string | undefined; "font-size"?: number | undefined; };
ink?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; "-myscript-pen-width"?: number | undefined; "-myscript-pen-fill-style"?: string | undefined; "-myscript-pen-fill-color"?: string | undefined; };
}
Optional
.math?: { "font-family"?: string | undefined; }
Optional
.math-solved?: { "font-family"?: string | undefined; color?: string | undefined; }
Optional
.text?: { "font-family"?: string | undefined; "font-size"?: number | undefined; }
Optional
ink?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; "-myscript-pen-width"?: number | undefined; "-myscript-pen-fill-style"?: string | undefined; "-myscript-pen-fill-color"?: string | undefined; }
Methods
setPenStyle
- setPenStyle(style?): 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;
}
Optional
-myscript-pen-fill-color?: string
Optional
-myscript-pen-fill-style?: string
Optional
-myscript-pen-width?: number
Optional
color?: string
Optional
fill?: string
Optional
opacity?: number
Optional
width?: number
Returns void
setPenStyleClasses
- setPenStyleClasses(penStyleClass?): void
Parameters
penStyleClass: string = ""
Returns void
setTheme
- setTheme(theme?): void
Parameters
Optional
theme: {
.math?: { "font-family"?: string | undefined; };
.math-solved?: { "font-family"?: string | undefined; color?: string | undefined; };
.text?: { "font-family"?: string | undefined; "font-size"?: number | undefined; };
ink?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; "-myscript-pen-width"?: number | undefined; "-myscript-pen-fill-style"?: string | undefined; "-myscript-pen-fill-color"?: string | undefined; };
}
Optional
.math?: { "font-family"?: string | undefined; }
Optional
.math-solved?: { "font-family"?: string | undefined; color?: string | undefined; }
Optional
.text?: { "font-family"?: string | undefined; "font-size"?: number | undefined; }
Optional
ink?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; "-myscript-pen-width"?: number | undefined; "-myscript-pen-fill-style"?: string | undefined; "-myscript-pen-fill-color"?: string | undefined; }
Returns void
Properties
Private
#currentPenStyle
Private
#logger
Private
#penStyle
Private
#penStyleClasses
#penStyleClasses: string
Private
#theme