From f9e78f99924e91c85f31887ec3e8ad9867d380b8 Mon Sep 17 00:00:00 2001 From: halfblood Date: Fri, 20 Oct 2023 18:56:02 +0330 Subject: [PATCH] updated --- fsm.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fsm.js b/fsm.js index 6ee990a..ca49999 100644 --- a/fsm.js +++ b/fsm.js @@ -1437,6 +1437,7 @@ function restore(obj) { link.json_model = JSON.parse(backupLink.json_model) else backupLink.json_model = {} + } else if (backupLink.type === 'StartLink') { link = new StartLink(nodes[backupLink.node]); link.deltaX = backupLink.deltaX ?? 0; @@ -1450,11 +1451,14 @@ function restore(obj) { link.json_model = JSON.parse(backupLink.json_model) else backupLink.json_model = {} + } if (link != null) { + console.log(backupLink) link.linkId = backupLink.linkId link.text = backupLink.text ?? ""; + link.fontSize = backupLink.fontSize links.push(link); } @@ -1499,6 +1503,7 @@ function saveBackup() { 'anchorAngle': link.anchorAngle, 'json_model': JSON.stringify(link.json_model), 'linkId': link.linkId, + 'fontSize': link.fontSize, }; } else if (link instanceof StartLink) { backupLink = { @@ -1515,6 +1520,7 @@ function saveBackup() { 'nodeA': nodes.indexOf(link.nodeA), 'nodeB': nodes.indexOf(link.nodeB), 'json_model': JSON.stringify(link.json_model), + 'fontSize': link.fontSize, 'text': link.text, 'lineAngleAdjust': link.lineAngleAdjust, 'parallelPart': link.parallelPart,