mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Make exports consistent
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const calcPath = (x1, x2, y1, y2, zoom = 1) => {
|
||||
export function calcPath(x1, x2, y1, y2, zoom = 1) {
|
||||
const tableWidth = 200 * zoom;
|
||||
if (y1 <= y2) {
|
||||
if (x1 + tableWidth <= x2) {
|
||||
@@ -107,6 +107,4 @@ const calcPath = (x1, x2, y1, y2, zoom = 1) => {
|
||||
} ${y2} L ${endX} ${y2}`;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export { calcPath };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user