From b856d0146b005a745a9d74b8d38e0e277cbb25cd Mon Sep 17 00:00:00 2001 From: codetypes Date: Fri, 10 May 2024 09:45:37 +0800 Subject: [PATCH] adjust size for windows --- src/components/register-node.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/register-node.ts b/src/components/register-node.ts index 541f91d..06a5d42 100644 --- a/src/components/register-node.ts +++ b/src/components/register-node.ts @@ -193,7 +193,7 @@ G6.registerNode( addShape("image", { attrs: { x: 5, - y: 4, + y: 3.5, height: 16, width: 16, img, @@ -208,10 +208,9 @@ G6.registerNode( x: 25, y: 5, fontWeight: 800, - lineHeight: 20, text: cfg.name, fill: textColor, - fontSize: 14, + fontSize: 13, }, name: "name-text", }); @@ -266,7 +265,7 @@ G6.registerNode( const args: any = cfg.args; if (nodeDef.args && args && Object.keys(args).length > 0) { - const { str, line } = toBreakWord(`${i18n.t("regnode.args")}${JSON.stringify(args)}`, 37); + const { str, line } = toBreakWord(`${i18n.t("regnode.args")}${JSON.stringify(args)}`, 36); addShape("text", { attrs: { textBaseline: "top",