Initial commit

This commit is contained in:
libertyspy
2026-02-09 15:26:21 +08:00
parent f1bcd3812d
commit 7f8abf2ff2
5 changed files with 24 additions and 5 deletions

View File

@@ -13,10 +13,10 @@ export const defaultHeight: Record<string, number> = {
component: 110,
};
export const createGraphTaskElement = (element: GraphTaskElement, width: number = 250, height: number = 120): any => {
export const createGraphTaskElement = (element: GraphTaskElement, width: number = 160, height: number = 100): any => {
let realHeight = defaultHeight[element.category as string];
if (!realHeight) {
realHeight = 120;
realHeight = 100;
}
return {
shape: 'task',