Files
rough/bin/svg-base.d.ts
2018-07-13 20:12:29 -07:00

14 lines
511 B
TypeScript

import { Drawable, OpSet, ResolvedOptions } from './core';
import { RoughRenderer } from './renderer';
export declare abstract class RoughSVGBase {
protected svg: SVGSVGElement;
protected _defs?: SVGDefsElement;
constructor(svg: SVGSVGElement);
abstract getDefaultOptions(): ResolvedOptions;
abstract opsToPath(drawing: OpSet): string;
static createRenderer(): RoughRenderer;
readonly defs: SVGDefsElement | null;
draw(drawable: Drawable): SVGGElement;
private fillSketch;
}