mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-11 02:00:37 +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 =
|
||||
|
||||
@@ -17,6 +17,8 @@ export const getModalTitle = (modal) => {
|
||||
return "Save as";
|
||||
case MODAL.NEW:
|
||||
return "Create new diagram";
|
||||
case MODAL.TABLE_WIDTH:
|
||||
return "Set the table width";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user