adjust size for windows

This commit is contained in:
codetypes committed 2024-05-10 09:45:37 +08:00
1 parent b757d68430
commit b856d0146b
1 file changed
+3 -4
+3 -4
View File
@@ -193,7 +193,7 @@ G6.registerNode(
addShape("image", { addShape("image", {
attrs: { attrs: {
x: 5, x: 5,
y: 4, y: 3.5,
height: 16, height: 16,
width: 16, width: 16,
img, img,
@@ -208,10 +208,9 @@ G6.registerNode(
x: 25, x: 25,
y: 5, y: 5,
fontWeight: 800, fontWeight: 800,
lineHeight: 20,
text: cfg.name, text: cfg.name,
fill: textColor, fill: textColor,
fontSize: 14, fontSize: 13,
}, },
name: "name-text", name: "name-text",
}); });
@@ -266,7 +265,7 @@ G6.registerNode(
const args: any = cfg.args; const args: any = cfg.args;
if (nodeDef.args && args && Object.keys(args).length > 0) { 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", { addShape("text", {
attrs: { attrs: {
textBaseline: "top", textBaseline: "top",