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.

32 lines (31 loc) 1.6 kB
export declare const SVG = "svg"; export declare const DEFS = "defs"; export declare const STYLE = "style"; export declare const G = "g"; export declare const TEXT = "text"; export declare const SVG_PAINT_NONE = "none"; export declare const SVG_PATH_CMD_MOVETO = "M"; export declare const SVG_PATH_CMD_LINETO = "L"; export declare const SVG_PATH_CMD_HLINETO = "H"; export declare const SVG_PATH_CMD_VLINETO = "V"; export declare const SVG_PATH_CMD_CURVETO = "C"; export declare const SVG_PATH_CMD_QUADRATIC = "Q"; export declare const SVG_PATH_CMD_ARC = "A"; export declare const SVG_PATH_CMD_CLOSE = "Z"; 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_STROKE_LINECAP = "stroke-linecap"; export declare const SVG_STYLE_STROKE_LINEJOIN = "stroke-linejoin"; export declare const SVG_STYLE_STROKE_MITERLIMIT = "stroke-miterlimit"; export declare const SVG_STYLE_COLOR = "color"; export declare const SVG_STYLE_OPACITY = "opacity"; export declare const SVG_STYLE_DISPLAY = "display"; export declare const SVG_STYLE_VISIBILITY = "visibility"; export declare const SVG_STYLE_MASK = "mask"; export declare const SVG_STYLE_CLIP_PATH = "clip-path"; export declare const SVG_STYLE_FILTER = "filter"; export declare const SVG_STYLE_STROKE_DASH_ARRAY = "stroke-dasharray"; export declare const SUPPORTED_GEOMETRY_TAG_NAMES: Set<string>;