Update Hyperlink.tsx
This commit is contained in:
parent
c020b4d6b3
commit
95161b05e4
@ -296,11 +296,8 @@ export const getLinkHandleFromCoords = (
|
|||||||
const linkMarginY = size / appState.zoom.value;
|
const linkMarginY = size / appState.zoom.value;
|
||||||
const centerX = (x1 + x2) / 2;
|
const centerX = (x1 + x2) / 2;
|
||||||
const centerY = (y1 + y2) / 2;
|
const centerY = (y1 + y2) / 2;
|
||||||
const centeringOffset =
|
const centeringOffset = (size - 8) / (2 * sizeZoom);
|
||||||
(size - 8) / (2 * appState.zoom.value) +
|
const dashedLineMargin = 4 / sizeZoom;
|
||||||
size / appState.zoom.value -
|
|
||||||
linkWidth;
|
|
||||||
const dashedLineMargin = 4 / appState.zoom.value;
|
|
||||||
|
|
||||||
// Same as `ne` resize handle
|
// Same as `ne` resize handle
|
||||||
const x = x2 + dashedLineMargin - centeringOffset;
|
const x = x2 + dashedLineMargin - centeringOffset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user