@thi.ng/hiccup-svg
Version:
SVG element functions for @thi.ng/hiccup & related tooling
23 lines • 1.05 kB
TypeScript
export type Attribs = Record<string, any>;
export type Vec2Like = ArrayLike<number>;
export type PathSegmentMove = ["M" | "m", Vec2Like];
export type PathSegmentLine = ["L" | "l", Vec2Like];
export type PathSegmentHLine = ["H" | "h", number];
export type PathSegmentVLine = ["V" | "v", number];
export type PathSegmentCubic = ["C" | "c", Vec2Like, Vec2Like, Vec2Like];
export type PathSegmentQuadratic = ["Q" | "q", Vec2Like, Vec2Like];
export type PathSegmentCubicChain = ["S" | "s", Vec2Like, Vec2Like];
export type PathSegmentQuadraticChain = ["T" | "t", Vec2Like];
export type PathSegmentArc = [
"A" | "a",
number,
number,
number,
boolean,
boolean,
Vec2Like
];
export type PathSegmentClose = ["Z" | "z"];
export type PathSegment = PathSegmentMove | PathSegmentLine | PathSegmentHLine | PathSegmentVLine | PathSegmentCubic | PathSegmentQuadratic | PathSegmentCubicChain | PathSegmentQuadraticChain | PathSegmentArc | PathSegmentClose;
export type GradientStop = [string | number, string];
//# sourceMappingURL=api.d.ts.map