Skip to content

Commit

Permalink
fix width being fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Mar 18, 2024
1 parent fa39470 commit f99bfe5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/symbols/Ring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ export const Ring: FC<RingProps> = ({
}
});

const strokeWidthFraction = strokeWidth / 10;

return (
<Billboard position={[0, 0, 1]}>
<a.mesh scale={ringSize as any}>
<ringGeometry attach="geometry" args={[4, 4 + strokeWidth, 25]} />
<ringGeometry
attach="geometry"
args={[4, 4 + strokeWidthFraction, 25]}
/>
<a.meshBasicMaterial
attach="material"
color={normalizedColor}
Expand All @@ -77,5 +82,5 @@ Ring.defaultProps = {
color: '#D8E6EA',
size: 1,
opacity: 0.5,
strokeWidth: 0.5
strokeWidth: 5
};

0 comments on commit f99bfe5

Please sign in to comment.