path-rite

reflectY

Mirror a path across the X axis (negate all y coordinates).

reflectY(svgPath: string): string

svgPath — SVG path d-attribute string.

Returns — A new SVG path string mirrored vertically across y = 0.

// Mirror a shape across the X axis
const mirrored = pathRite.reflectY("M 0 10 L 50 10 L 50 60 Z");