Interface InlineAPI

interface InlineAPI {
    canBreak(): boolean;
    canDraw(): boolean;
    color():
        | null
        | string
        | CanvasGradient
        | CanvasPattern;
    draw(opt: any): void;
    font(): null | string;
    onReady(callback: AnyFunction): void;
    width(arg: {
        ctx: CanvasRenderingContext2D;
    }): number;
}

Methods

  • Returns boolean

  • Returns boolean

  • Returns
        | null
        | string
        | CanvasGradient
        | CanvasPattern

  • Parameters

    • opt: any

    Returns void

  • Returns null | string

  • Parameters

    Returns void

  • Parameters

    • arg: {
          ctx: CanvasRenderingContext2D;
      }
      • ctx: CanvasRenderingContext2D

    Returns number