UNPKG

@trutoo/funnel-graph

Version:

SVG Funnel Graph TypeScript Library.

10 lines (9 loc) 785 B
declare type Attributes = Record<string, string>; declare const setAttrs: (element: Element, attributes: Attributes) => void; declare const removeAttrs: (element: Element, ...attributes: string[]) => void; declare const createSVGElement: <K extends keyof SVGElementTagNameMap>(element: K, container?: Element | null | undefined, attributes?: Attributes | undefined) => SVGElementTagNameMap[K]; declare const generateLegendBackground: (color: string | string[], direction?: string) => string; declare const defaultColors: string[]; declare const getDefaultColors: (sets: number) => string[]; declare const areEqual: (value: any, newValue: any) => boolean; export { areEqual, createSVGElement, defaultColors, generateLegendBackground, getDefaultColors, removeAttrs, setAttrs };