Update draw.tsx

This commit is contained in:
Steve Ruiz 2021-09-25 21:54:53 +01:00
parent 51eef7d2d0
commit 7e74522256

View file

@ -52,12 +52,12 @@ export const Draw = new ShapeUtil<DrawShape, SVGSVGElement, TLDrawMeta>(() => ({
const verySmall = bounds.width < strokeWidth / 2 && bounds.height < strokeWidth / 2
if (!isEditing && verySmall) {
const sw = strokeWidth * 0.618
const sw = strokeWidth * 1
return (
<SVGContainer ref={ref} id={shape.id + '_svg'} {...events}>
<circle
r={strokeWidth * 0.618}
r={strokeWidth * 1}
fill={styles.stroke}
stroke={styles.stroke}
strokeWidth={sw}