mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update Hyperlink.tsx
This commit is contained in:
parent
c020b4d6b3
commit
95161b05e4
1 changed files with 2 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue