Class Editor

Accessors

  • get initializationPromise(): Promise<void>
  • Returns Promise<void>

  • get intention(): Intention
  • Returns Intention

  • set intention(i): void
  • Parameters

    Returns void

  • get penStyle(): TPenStyle
  • Returns TPenStyle

  • set penStyle(ps): void
  • Parameters

    • ps: {
          -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

  • get penStyleClasses(): string
  • Returns string

  • set penStyleClasses(styleClasses): void
  • Parameters

    • styleClasses: string

    Returns void

  • get theme(): TTheme
  • Returns TTheme

  • set theme(theme): void
  • Parameters

    • 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

Constructors

  • Parameters

    • wrapperHTML: HTMLElement
    • options: {
          behaviors?: { grabber?: { attach?: {} | undefined; detach?: {} | undefined; onPointerDown?: {} | undefined; onPointerMove?: {} | undefined; onPointerUp?: {} | undefined; } | undefined; recognizer?: { ...; } | ... 2 more ... | undefined; menu?: { ...; } | undefined; gesture?: { ...; } | undefined; snap?: { ...; } | undefined; };
          configuration?: { offscreen?: boolean | undefined; server?: { protocol?: TProtocol | undefined; scheme?: TSchene | undefined; host?: string | undefined; applicationKey?: string | undefined; hmacKey?: string | undefined; version?: string | undefined; useWindowLocation?: boolean | undefined; websocket?: { ...; } | undefined; } | unde...;
          fontStyle?: { size?: number | undefined; weight?: "normal" | "bold" | undefined; };
          logger?: { readonly EDITOR?: LoggerLevel | undefined; readonly RECOGNIZER?: LoggerLevel | undefined; readonly GRABBER?: LoggerLevel | undefined; ... 16 more ...; readonly MENU?: LoggerLevel | undefined; };
          penStyle?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; };
          theme?: { [x: string]: unknown; 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; } | undefined; ".math"?: { ......;
      }
      • Optional behaviors?: { grabber?: { attach?: {} | undefined; detach?: {} | undefined; onPointerDown?: {} | undefined; onPointerMove?: {} | undefined; onPointerUp?: {} | undefined; } | undefined; recognizer?: { ...; } | ... 2 more ... | undefined; menu?: { ...; } | undefined; gesture?: { ...; } | undefined; snap?: { ...; } | undefined; }
      • Optional configuration?: { offscreen?: boolean | undefined; server?: { protocol?: TProtocol | undefined; scheme?: TSchene | undefined; host?: string | undefined; applicationKey?: string | undefined; hmacKey?: string | undefined; version?: string | undefined; useWindowLocation?: boolean | undefined; websocket?: { ...; } | undefined; } | unde...
      • Optional fontStyle?: { size?: number | undefined; weight?: "normal" | "bold" | undefined; }
      • Optional logger?: { readonly EDITOR?: LoggerLevel | undefined; readonly RECOGNIZER?: LoggerLevel | undefined; readonly GRABBER?: LoggerLevel | undefined; ... 16 more ...; readonly MENU?: LoggerLevel | undefined; }
      • Optional penStyle?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; }
      • Optional theme?: { [x: string]: unknown; 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; } | undefined; ".math"?: { ......
    • globalClassCss: string = "ms-editor"

    Returns Editor

Methods

  • Returns void

  • Returns HTMLDivElement

  • Returns HTMLDivElement

  • Returns HTMLDivElement

  • Returns HTMLDivElement

  • Returns Promise<void>

  • Returns void

  • Parameters

    • options: {
          behaviors?: { grabber?: { attach?: {} | undefined; detach?: {} | undefined; onPointerDown?: {} | undefined; onPointerMove?: {} | undefined; onPointerUp?: {} | undefined; } | undefined; recognizer?: { ...; } | ... 2 more ... | undefined; menu?: { ...; } | undefined; gesture?: { ...; } | undefined; snap?: { ...; } | undefined; };
          configuration?: { offscreen?: boolean | undefined; server?: { protocol?: TProtocol | undefined; scheme?: TSchene | undefined; host?: string | undefined; applicationKey?: string | undefined; hmacKey?: string | undefined; version?: string | undefined; useWindowLocation?: boolean | undefined; websocket?: { ...; } | undefined; } | unde...;
          fontStyle?: { size?: number | undefined; weight?: "normal" | "bold" | undefined; };
          logger?: { readonly EDITOR?: LoggerLevel | undefined; readonly RECOGNIZER?: LoggerLevel | undefined; readonly GRABBER?: LoggerLevel | undefined; ... 16 more ...; readonly MENU?: LoggerLevel | undefined; };
          penStyle?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; };
          theme?: { [x: string]: unknown; 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; } | undefined; ".math"?: { ......;
      }
      • Optional behaviors?: { grabber?: { attach?: {} | undefined; detach?: {} | undefined; onPointerDown?: {} | undefined; onPointerMove?: {} | undefined; onPointerUp?: {} | undefined; } | undefined; recognizer?: { ...; } | ... 2 more ... | undefined; menu?: { ...; } | undefined; gesture?: { ...; } | undefined; snap?: { ...; } | undefined; }
      • Optional configuration?: { offscreen?: boolean | undefined; server?: { protocol?: TProtocol | undefined; scheme?: TSchene | undefined; host?: string | undefined; applicationKey?: string | undefined; hmacKey?: string | undefined; version?: string | undefined; useWindowLocation?: boolean | undefined; websocket?: { ...; } | undefined; } | unde...
      • Optional fontStyle?: { size?: number | undefined; weight?: "normal" | "bold" | undefined; }
      • Optional logger?: { readonly EDITOR?: LoggerLevel | undefined; readonly RECOGNIZER?: LoggerLevel | undefined; readonly GRABBER?: LoggerLevel | undefined; ... 16 more ...; readonly MENU?: LoggerLevel | undefined; }
      • Optional penStyle?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; }
      • Optional theme?: { [x: string]: unknown; 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; } | undefined; ".math"?: { ......

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • idle: boolean

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

  • Parameters

    • idle: boolean

    Returns void

  • Returns Promise<IModel>

  • Returns Promise<void>

  • Parameters

    Returns Promise<IModel>

  • Parameters

    • Optional mimeTypes: string[]

    Returns Promise<IModel>

  • Parameters

    • data: string | TJIIXExport | Blob
    • Optional mimeType: string

    Returns Promise<IModel>

  • Parameters

    • strokes: {
          creationTime?: number;
          id?: string;
          length?: number;
          modificationDate?: number;
          pointerType?: string;
          pointers?: (undefined | ({ x?: number | undefined; y?: number | undefined; t?: number | undefined; p?: number | undefined; }))[];
          style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; };
          type?: string;
      }[]

    Returns Promise<IModel>

  • Returns Promise<void>

  • Returns Promise<IModel>

  • Returns Promise<IModel>

  • Parameters

    • err: string | Error

    Returns void

  • Parameters

    • notif: {
          message: string;
          timeout?: number;
      }
      • message: string
      • Optional timeout?: number

    Returns void

  • Returns Promise<IModel>

  • Returns Promise<void>

Properties

#behaviors: IBehaviors
#busyHTML: HTMLDivElement
#idleHTML: HTMLDivElement
#initializationDeferred: DeferredPromise<void>
#layerInfos: HTMLDivElement
#loaderHTML: HTMLDivElement
#loggerConfiguration: TLoggerConfiguration
#messageContainer: HTMLDivElement
#messageModal: HTMLDivElement
#messageOverlay: HTMLDivElement
#messageText: HTMLParagraphElement
#smartGuide?: SmartGuide
#stateHTML: HTMLDivElement
logger: Logger = ...
wrapperHTML: HTMLEditorElement

Generated using TypeDoc