mirror of
https://github.com/rough-stuff/rough.git
synced 2026-01-20 03:37:55 -05:00
21 lines
939 B
TypeScript
21 lines
939 B
TypeScript
import { RoughRenderer } from './renderer.js';
|
|
import { Config, DrawingSurface, Options, ResolvedOptions, Drawable, OpSet, PathInfo } from './core';
|
|
import { Point } from './geometry.js';
|
|
export declare abstract class RoughGeneratorBase {
|
|
protected config: Config;
|
|
protected surface: DrawingSurface;
|
|
protected renderer: RoughRenderer;
|
|
defaultOptions: ResolvedOptions;
|
|
constructor(config: Config | null, surface: DrawingSurface);
|
|
protected _options(options?: Options): ResolvedOptions;
|
|
protected _drawable(shape: string, sets: OpSet[], options: ResolvedOptions): Drawable;
|
|
protected readonly lib: RoughRenderer;
|
|
private getCanvasSize;
|
|
protected computePolygonSize(points: Point[]): Point;
|
|
protected polygonPath(points: Point[]): string;
|
|
protected computePathSize(d: string): Point;
|
|
toPaths(drawable: Drawable): PathInfo[];
|
|
private fillSketch;
|
|
opsToPath(drawing: OpSet): string;
|
|
}
|