Class Editor

Accessors

  • get gestures(): boolean
  • Returns boolean

  • set gestures(apply): void
  • Parameters

    • apply: boolean

    Returns void

  • 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;
          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

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

Constructors

  • Parameters

    • wrapperHTML: HTMLElement
    • options: {
          behaviors?: { grabber?: { attach?: {} | undefined; detach?: {} | undefined; onPointerDown?: {} | undefined; onPointerMove?: {} | undefined; onPointerUp?: {} | undefined; } | undefined; recognizer?: { ...; } | ... 1 more ... | undefined; };
          configuration?: { server?: { protocol?: TProtocol | undefined; scheme?: TSchene | undefined; host?: string | undefined; applicationKey?: string | undefined; hmacKey?: string | undefined; version?: string | undefined; useWindowLocation?: boolean | undefined; websocket?: { ...; } | undefined; } | undefined; ... 4 more ...; "undo-redo...;
          logger?: { readonly EDITOR?: LoggerLevel | undefined; readonly RECOGNIZER?: LoggerLevel | undefined; readonly GRABBER?: LoggerLevel | undefined; ... 9 more ...; readonly INTERNAL_EVENT?: LoggerLevel | undefined; };
          penStyle?: { color?: string | undefined; width?: number | undefined; fill?: string | undefined; };
          theme?: { [x: string]: unknown; 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; } | undefined; ".math"?: { ...; } | undefined; ".math-solved...;
      }
      • Optional behaviors?: { grabber?: { attach?: {} | undefined; detach?: {} | undefined; onPointerDown?: {} | undefined; onPointerMove?: {} | undefined; onPointerUp?: {} | undefined; } | undefined; recognizer?: { ...; } | ... 1 more ... | undefined; }
      • Optional configuration?: { server?: { protocol?: TProtocol | undefined; scheme?: TSchene | undefined; host?: string | undefined; applicationKey?: string | undefined; hmacKey?: string | undefined; version?: string | undefined; useWindowLocation?: boolean | undefined; websocket?: { ...; } | undefined; } | undefined; ... 4 more ...; "undo-redo...
      • Optional logger?: { readonly EDITOR?: LoggerLevel | undefined; readonly RECOGNIZER?: LoggerLevel | undefined; readonly GRABBER?: LoggerLevel | undefined; ... 9 more ...; readonly INTERNAL_EVENT?: LoggerLevel | undefined; }
      • Optional penStyle?: { color?: string | undefined; width?: number | undefined; fill?: string | undefined; }
      • Optional theme?: { [x: string]: unknown; 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; } | undefined; ".math"?: { ...; } | undefined; ".math-solved...
    • globalClassCss: string = "ms-editor"

    Returns Editor

Methods

  • Returns void

  • Returns void

  • Returns Promise<void>

  • Returns void

  • Parameters

    • options: {
          behaviors?: { grabber?: { attach?: {} | undefined; detach?: {} | undefined; onPointerDown?: {} | undefined; onPointerMove?: {} | undefined; onPointerUp?: {} | undefined; } | undefined; recognizer?: { ...; } | ... 1 more ... | undefined; };
          configuration?: { server?: { protocol?: TProtocol | undefined; scheme?: TSchene | undefined; host?: string | undefined; applicationKey?: string | undefined; hmacKey?: string | undefined; version?: string | undefined; useWindowLocation?: boolean | undefined; websocket?: { ...; } | undefined; } | undefined; ... 4 more ...; "undo-redo...;
          logger?: { readonly EDITOR?: LoggerLevel | undefined; readonly RECOGNIZER?: LoggerLevel | undefined; readonly GRABBER?: LoggerLevel | undefined; ... 9 more ...; readonly INTERNAL_EVENT?: LoggerLevel | undefined; };
          penStyle?: { color?: string | undefined; width?: number | undefined; fill?: string | undefined; };
          theme?: { [x: string]: unknown; 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; } | undefined; ".math"?: { ...; } | undefined; ".math-solved...;
      }
      • Optional behaviors?: { grabber?: { attach?: {} | undefined; detach?: {} | undefined; onPointerDown?: {} | undefined; onPointerMove?: {} | undefined; onPointerUp?: {} | undefined; } | undefined; recognizer?: { ...; } | ... 1 more ... | undefined; }
      • Optional configuration?: { server?: { protocol?: TProtocol | undefined; scheme?: TSchene | undefined; host?: string | undefined; applicationKey?: string | undefined; hmacKey?: string | undefined; version?: string | undefined; useWindowLocation?: boolean | undefined; websocket?: { ...; } | undefined; } | undefined; ... 4 more ...; "undo-redo...
      • Optional logger?: { readonly EDITOR?: LoggerLevel | undefined; readonly RECOGNIZER?: LoggerLevel | undefined; readonly GRABBER?: LoggerLevel | undefined; ... 9 more ...; readonly INTERNAL_EVENT?: LoggerLevel | undefined; }
      • Optional penStyle?: { color?: string | undefined; width?: number | undefined; fill?: string | undefined; }
      • Optional theme?: { [x: string]: unknown; 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; } | undefined; ".math"?: { ...; } | undefined; ".math-solved...

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • idle: boolean

    Returns void

  • Parameters

    Returns void

  • Parameters

    • err: string | Error

    Returns void

  • Parameters

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

    Returns void

  • Returns Promise<IModel>

  • 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;
          pointerId?: number;
          pointerType?: string;
          pointers?: (undefined | ({ x?: number | undefined; y?: number | undefined; t?: number | undefined; p?: number | undefined; }))[];
          style?: { color?: string | undefined; width?: number | undefined; fill?: string | undefined; };
          type?: string;
      }[]

    Returns Promise<IModel>

  • Returns Promise<void>

  • Returns Promise<IModel>

  • Returns Promise<IModel>

  • Returns Promise<IModel>

  • Returns Promise<void>

Properties

#behaviors: IBehaviors
#initializationDeferred: DeferredPromise<void>
#loaderHTML: HTMLDivElement
#loggerConfiguration: TLoggerConfiguration
#messageHTML: HTMLDivElement
#smartGuide?: SmartGuide
logger: Logger = ...
wrapperHTML: HTMLEditorElement

Generated using TypeDoc