UNPKG

handwritten-graph

Version:

A TypeScript library to create handwritten-style line graphs and pie charts using D3.js

15 lines 1.06 kB
import * as d3 from 'd3'; export declare class ScribbleFillUtils { static createDirectionalScribblePattern(defs: d3.Selection<SVGDefsElement, unknown, null, undefined>, id: string, color: string, density: number, width: number, height: number, angle: number): string; static generateWavyLine(x1: number, y1: number, x2: number, y2: number): string; static toPastelColor(baseColor: string, alpha?: number): string; static createScribblePatternSet(defs: d3.Selection<SVGDefsElement, unknown, null, undefined>, colors: string[]): string[]; static createOilPaintPattern(defs: d3.Selection<SVGDefsElement, unknown, null, undefined>, id: string, color: string): string; static createOilPaintPatternSet(defs: d3.Selection<SVGDefsElement, unknown, null, undefined>, colors: string[]): string[]; private static addWatercolorTexture; private static ensureWatercolorBlurFilter; private static createOrganicBlob; private static createWatercolorBlob; private static adjustColor; } //# sourceMappingURL=scribbleFillUtils.d.ts.map