mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Add a setting to resize table width (#21)
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
import {
|
||||
tableFieldHeight,
|
||||
tableHeaderHeight,
|
||||
tableWidth,
|
||||
} from "../data/constants";
|
||||
import { tableFieldHeight, tableHeaderHeight } from "../data/constants";
|
||||
|
||||
export function calcPath(r, zoom = 1) {
|
||||
export function calcPath(r, tableWidth = 200, zoom = 1) {
|
||||
const width = tableWidth * zoom;
|
||||
let x1 = r.startTable.x;
|
||||
let y1 =
|
||||
|
||||
Reference in New Issue
Block a user