Class StyleManager

Accessors

  • get penStyleClasses(): string
  • Returns string

  • get theme(): TTheme
  • Returns TTheme

Constructors

  • Parameters

    • OptionalpenStyle: {
          "-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;
      }
    • Optionaltheme: {
          ".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 StyleManager

Methods

  • Parameters

    • Optionalstyle: {
          "-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

  • Parameters

    • penStyleClass: string = ""

    Returns void

  • Parameters

    • Optionaltheme: {
          ".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