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.

27 lines (26 loc) 1.41 kB
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_FILL_OPACITY = "fill-opacity"; export declare const SVG_STYLE_STROKE_WIDTH = "stroke-width"; export declare const SVG_STYLE_STROKE_COLOR = "stroke"; export declare const SVG_STYLE_STROKE_OPACITY = "stroke-opacity"; 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_DISPLAY = "display"; export declare const SVG_STYLE_VISIBILITY = "visibility"; export declare const SVG_STYLE_STROKE_DASH_ARRAY = "stroke-dasharray"; export declare const FLAT_SVG_STRAY_VERTEX_MOVETO_ONLY = "FLAT_SVG_STRAY_VERTEX_MOVETO_ONLY"; export declare const FLAT_SVG_STRAY_VERTEX_POLYLINE_SINGLE_POINT = "FLAT_SVG_STRAY_VERTEX_POLYLINE_SINGLE_POINT"; export declare const FLAT_SVG_STRAY_VERTEX_POLYGON_SINGLE_POINT = "FLAT_SVG_STRAY_VERTEX_POLYGON_SINGLE_POINT";