Fix svg antialiasing shape path gaps

This commit is contained in:
Xevion
2022-12-17 15:54:30 -06:00
parent 7d4eda1e20
commit 35b2011040

View File

@@ -25,7 +25,7 @@ const {A, B, C, D, E, F, Z} = points;
const BoxGraphic = ({children, className}: BoxGraphicProps) => {
return <svg className={className} viewBox="0 0 370 370" xmlns="http://www.w3.org/2000/svg">
<g>
<g shapeRendering="crispEdges">
<path id="left" d={`M ${F} L ${Z} L ${D} L ${E} L ${F} Z`} fill={leftColor}/>
<path id="right" d={`M ${D} L ${C} L ${B} L ${Z} L ${D} Z`} fill={rightColor}/>
<path id="top" d={`M ${F} L ${A} L ${B} L ${Z} Z`} fill={topColor}/>