mirror of
https://github.com/rough-stuff/rough.git
synced 2026-01-20 03:37:55 -05:00
14 lines
484 B
TypeScript
14 lines
484 B
TypeScript
import { ResolvedOptions, Drawable } from './core';
|
|
import { RoughRenderer } from './renderer';
|
|
export declare abstract class RoughCanvasBase {
|
|
protected canvas: HTMLCanvasElement;
|
|
protected ctx: CanvasRenderingContext2D;
|
|
constructor(canvas: HTMLCanvasElement);
|
|
static createRenderer(): RoughRenderer;
|
|
abstract getDefaultOptions(): ResolvedOptions;
|
|
draw(drawable: Drawable): void;
|
|
private computeBBox;
|
|
private fillSketch;
|
|
private _drawToContext;
|
|
}
|