UNPKG

@amandaghassaei/flat-svg

Version:

A TypeScript library for converting nested SVGs into a flat list of elements, paths, or segments and applying style-based filters.

20 lines (19 loc) 849 B
export declare const SVG = "svg"; export declare const DEFS = "defs"; export declare const G = "g"; export declare const TEXT = "text"; export declare const LINE = "line"; export declare const RECT = "rect"; export declare const POLYGON = "polygon"; export declare const POLYLINE = "polyline"; export declare const PATH = "path"; export declare const CIRCLE = "circle"; export declare const ELLIPSE = "ellipse"; export declare const SVG_STYLE_FILL = "fill"; export declare const SVG_STYLE_STROKE_WIDTH = "stroke-width"; export declare const SVG_STYLE_STROKE_COLOR = "stroke"; export declare const SVG_STYLE_COLOR = "color"; export declare const SVG_STYLE_OPACITY = "opacity"; export declare const SVG_STYLE_MASK = "mask"; export declare const SVG_STYLE_CLIP_PATH = "clip-path"; export declare const SVG_STYLE_STROKE_DASH_ARRAY = "stroke-dasharray";