Interface IBehaviors

interface IBehaviors {
    clear(): Promise<IModel>;
    configuration: TConfiguration;
    convert(conversionState?, requestedMimeTypes?): Promise<IModel>;
    get currentPenStyle(): TStyle;
    destroy(): Promise<void>;
    export(mimeTypes?): Promise<IModel>;
    grabber: IGrabber;
    history: IHistoryManager;
    import?(data, mimeType?): Promise<IModel>;
    importPointEvents(strokes): Promise<IModel>;
    init(element): Promise<void>;
    intention: Intention;
    get model(): IModel;
    name: string;
    get penStyle(): TStyle;
    get penStyleClasses(): string;
    redo(): Promise<IModel>;
    resize(height, width): Promise<IModel>;
    setPenStyle(penStyle?): Promise<void>;
    setPenStyleClasses(penStyleClasses?): Promise<void>;
    setTheme(theme?): Promise<void>;
    get theme(): TTheme;
    undo(): Promise<IModel>;
    waitForIdle?(): Promise<void>;
}

Implemented by

Accessors

  • get currentPenStyle(): TStyle
  • Returns TStyle

  • get model(): IModel
  • Returns IModel

  • get penStyle(): TStyle
  • Returns TStyle

  • get penStyleClasses(): string
  • Returns string

  • get theme(): TTheme
  • Returns TTheme

Methods

  • Returns Promise<IModel>

  • Parameters

    Returns Promise<IModel>

  • Returns Promise<void>

  • Parameters

    • Optional mimeTypes: string[]

    Returns Promise<IModel>

  • Parameters

    • data: 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>

  • Parameters

    • element: HTMLElement

    Returns Promise<void>

  • Returns Promise<IModel>

  • Parameters

    • height: number
    • width: number

    Returns Promise<IModel>

  • Parameters

    • Optional penStyle: {
          color?: string;
          fill?: string;
          opacity?: number;
          width?: number;
      }
      • Optional color?: string
      • Optional fill?: string
      • Optional opacity?: number
      • Optional width?: number

    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?: { 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 Promise<void>

  • Returns Promise<IModel>

  • Returns Promise<void>

Properties

grabber: IGrabber
intention: Intention
name: string

Generated using TypeDoc