Fix page zoom bug
This commit is contained in:
parent
027815f199
commit
7e03adcd52
6 changed files with 24 additions and 6 deletions
|
@ -135,7 +135,7 @@ const arrow = registerShapeUtils<ArrowShape>({
|
|||
<path
|
||||
d={getArrowArcPath(start, end, circle, bend)}
|
||||
fill="none"
|
||||
strokeWidth={+style.strokeWidth * 1.85}
|
||||
strokeWidth={(+style.strokeWidth * 1.85).toString()}
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
<path d={path} strokeWidth={+style.strokeWidth * 1.5} />
|
||||
|
|
|
@ -51,6 +51,7 @@ const rectangle = registerShapeUtils<RectangleShape>({
|
|||
return (
|
||||
<g id={id}>
|
||||
<rect
|
||||
className="hi"
|
||||
rx={radius}
|
||||
ry={radius}
|
||||
x={+styles.strokeWidth / 2}
|
||||
|
@ -58,6 +59,7 @@ const rectangle = registerShapeUtils<RectangleShape>({
|
|||
width={Math.max(0, size[0] + -styles.strokeWidth)}
|
||||
height={Math.max(0, size[1] + -styles.strokeWidth)}
|
||||
strokeWidth={0}
|
||||
fill={styles.fill}
|
||||
/>
|
||||
<path d={path} fill={styles.stroke} />
|
||||
</g>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue