mirror of
https://github.com/Xevion/100prisoners.git
synced 2025-12-16 22:11:10 -06:00
Fix svg antialiasing shape path gaps
This commit is contained in:
@@ -25,7 +25,7 @@ const {A, B, C, D, E, F, Z} = points;
|
|||||||
|
|
||||||
const BoxGraphic = ({children, className}: BoxGraphicProps) => {
|
const BoxGraphic = ({children, className}: BoxGraphicProps) => {
|
||||||
return <svg className={className} viewBox="0 0 370 370" xmlns="http://www.w3.org/2000/svg">
|
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="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="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}/>
|
<path id="top" d={`M ${F} L ${A} L ${B} L ${Z} Z`} fill={topColor}/>
|
||||||
|
|||||||
Reference in New Issue
Block a user