Merge version_1 into main #5
@@ -22,7 +22,7 @@ const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
useEffect(() => {
|
||||
if (!svgRef.current || !animate) return;
|
||||
|
||||
const textElement = svgRef.current.querySelector('text') as SVGTextPathElement | null;
|
||||
const textElement = svgRef.current.querySelector('text') as unknown as SVGTextElement | null;
|
||||
if (!textElement) return;
|
||||
|
||||
const length = (textElement as any).getTotalLength?.() ?? 0;
|
||||
|
||||
Reference in New Issue
Block a user