Class StyleManager

Accessors

  • get penStyleClasses(): string
  • Returns string

  • get theme(): TTheme
  • Returns TTheme

Constructors

  • Parameters

    • Optional penStyle: {
          -myscript-pen-fill-color?: string;
          -myscript-pen-fill-style?: string;
          -myscript-pen-width?: number;
          color?: string;
          fill?: string;
          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 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?: { color?: string | undefined; width?: 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?: { color?: string | undefined; width?: number | undefined; fill?: string | undefined; "-myscript-pen-width"?: number | undefined; "-myscript-pen-fill-style"?: string | undefined; "-myscript-pen-fill-color"?: string | undefined; }

    Returns StyleManager

Methods

  • Parameters

    • Optional style: {
          -myscript-pen-fill-color?: string;
          -myscript-pen-fill-style?: string;
          -myscript-pen-width?: number;
          color?: string;
          fill?: string;
          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 width?: number

    Returns void

  • Parameters

    • penStyleClass: string = ""

    Returns 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?: { color?: string | undefined; width?: 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?: { color?: string | undefined; width?: 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

#currentPenStyle: TPenStyle
#logger: Logger = ...
#penStyle: TPenStyle
#penStyleClasses: string
#theme: TTheme

Generated using TypeDoc