Class RestBehaviors

Implements

Accessors

  • get configuration(): TConfiguration
  • Returns TConfiguration

  • get currentPenStyle(): TPenStyle
  • Returns TPenStyle

  • get model(): Model
  • Returns Model

  • get penStyle(): TPenStyle
  • Returns TPenStyle

  • get penStyleClasses(): string
  • Returns string

  • get theme(): TTheme
  • Returns TTheme

Constructors

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

Methods

  • Parameters

    Returns Promise<IModel>

  • Returns Promise<void>

  • Returns void

  • Parameters

    • Optional mimeTypes: 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>

  • Parameters

    • domElement: HTMLElement

    Returns Promise<void>

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns Promise<void>

  • Parameters

    • height: number
    • width: number

    Returns Promise<IModel>

  • Parameters

    Returns Promise<void>

  • Parameters

    • Optional penStyleClasses: string

    Returns Promise<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 Promise<void>

  • Returns Promise<IModel>

Properties

#configuration: TConfiguration
#exportTimer?: Timeout
#logger: Logger = ...
#model: Model
#resizeTimer?: Timeout
intention: Intention
name: string = "RestBehaviors"
recognizer: RestRecognizer
renderer: CanvasRenderer
styleManager: StyleManager
undoRedoManager: UndoRedoManager

Generated using TypeDoc