Update
This commit is contained in:
@@ -225,12 +225,12 @@ export default function TextSidebar({ isOpen, onClose }) {
|
||||
color: fillColor,
|
||||
textShadow:
|
||||
strokeWidth > 0
|
||||
? `
|
||||
-${strokeWidth * 0.6}px -${strokeWidth * 0.6}px 0 ${strokeColor},
|
||||
${strokeWidth * 0.6}px -${strokeWidth * 0.6}px 0 ${strokeColor},
|
||||
-${strokeWidth * 0.6}px ${strokeWidth * 0.6}px 0 ${strokeColor},
|
||||
${strokeWidth * 0.6}px ${strokeWidth * 0.6}px 0 ${strokeColor}
|
||||
`
|
||||
? Array.from({ length: 10 }, (_, i) => {
|
||||
const angle = (i * Math.PI * 2) / 8;
|
||||
const x = Math.cos(angle) * strokeWidth * 0.6;
|
||||
const y = Math.sin(angle) * strokeWidth * 0.6;
|
||||
return `${x.toFixed(1)}px ${y.toFixed(1)}px 0 ${strokeColor}`;
|
||||
}).join(', ')
|
||||
: 'none',
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user