mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Declutter utils
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { calcPath } from "../utils";
|
||||
import { calcPath } from "../utils/calcPath";
|
||||
|
||||
export function Thumbnail({ diagram, i, zoom }) {
|
||||
const translateX = 32 * zoom;
|
||||
@@ -119,9 +119,7 @@ export function Thumbnail({ diagram, i, zoom }) {
|
||||
e.startX,
|
||||
e.endX,
|
||||
e.startY - translateY / zoom,
|
||||
e.endY - (translateY / zoom) * 0.5,
|
||||
e.startFieldId,
|
||||
e.endFieldId
|
||||
e.endY - (translateY / zoom) * 0.5
|
||||
)}
|
||||
fill="none"
|
||||
strokeWidth={1}
|
||||
|
||||
Reference in New Issue
Block a user