Interface Canvas

interface Canvas {
    clear(): void;
    connectedPath(path): void;
    height(): number;
    onClick(cb): void;
    onMouseMove(cb): void;
    onResize(cb): void;
    renderShape(shape): Promise<void>;
    text(text): Promise<void>;
    width(): number;
}

Implemented by

Methods

  • Returns void

  • Parameters

    Returns void

  • Returns number

  • Parameters

    • cb: ((state) => void)
        • (state): void
        • Parameters

          • state: MouseState

          Returns void

    Returns void

  • Parameters

    • cb: ((state) => void)
        • (state): void
        • Parameters

          • state: MouseState

          Returns void

    Returns void

  • Parameters

    • cb: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Returns number