You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: update Knot components for improved SVG rendering and styling
- Replaced petal path calculations with fixed SVG paths for vertical and horizontal loops in both KnotBackground and KnotLogo components.
- Adjusted stroke width and viewBox dimensions for better visual consistency across components.
- Simplified the rendering logic by removing unnecessary calculations and utilizing direct path definitions.
return`M ${cx.toFixed(1)}${cy.toFixed(1)} C ${cp1x.toFixed(1)}${cp1y.toFixed(1)}, ${(tipX+cpInnerR*Math.cos(inTan1)).toFixed(1)}${(tipY+cpInnerR*Math.sin(inTan1)).toFixed(1)}, ${tipX.toFixed(1)}${tipY.toFixed(1)} C ${(tipX+cpInnerR*Math.cos(inTan2)).toFixed(1)}${(tipY+cpInnerR*Math.sin(inTan2)).toFixed(1)}, ${cp2x.toFixed(1)}${cp2y.toFixed(1)}, ${cx.toFixed(1)}${cy.toFixed(1)}`
return`M ${cx.toFixed(1)}${cy.toFixed(1)} C ${cp1x.toFixed(1)}${cp1y.toFixed(1)}, ${(tipX+cpInnerR*Math.cos(inTan1)).toFixed(1)}${(tipY+cpInnerR*Math.sin(inTan1)).toFixed(1)}, ${tipX.toFixed(1)}${tipY.toFixed(1)} C ${(tipX+cpInnerR*Math.cos(inTan2)).toFixed(1)}${(tipY+cpInnerR*Math.sin(inTan2)).toFixed(1)}, ${cp2x.toFixed(1)}${cp2y.toFixed(1)}, ${cx.toFixed(1)}${cy.toFixed(1)}`
0 commit comments