From 93b91c5b6c0206901a53a328e1b4c921bde8eb4b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 22 Oct 2023 00:37:05 +0200 Subject: [PATCH] Another iteration! --- .idea/inspectionProfiles/Project_Default.xml | 4 +- index.html | 118 ++++++++--- src/elements/canvas.mjs | 148 +++++++++---- src/elements/display.mjs | 82 ++++++++ src/elements/edge.mjs | 54 +++++ src/elements/index.mjs | 4 +- src/elements/node.mjs | 207 +++++++++---------- src/index.mjs | 6 +- src/utils/file.mjs | 12 ++ style/dark.css | 12 +- style/light.css | 12 +- 11 files changed, 481 insertions(+), 178 deletions(-) create mode 100644 src/elements/display.mjs create mode 100644 src/elements/edge.mjs create mode 100644 src/utils/file.mjs diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 80917d9..1e3d68f 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -7,7 +7,7 @@ diff --git a/index.html b/index.html index a214450..421e197 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,24 @@ @import "style/light.css"; @import "style/dark.css"; + :root { + --color-background: #ffffff; + --color-foreground: #000000; + --color-accent: #ff7f00; + + --color-gray: #7E7E7E; + --color-red: #FB464C; + --color-orange: #E9973F; + --color-yellow: #E0DE71; + --color-green: #44CF6E; + --color-blue: #53DFDD; + --color-purple: #A882FF; + + --edge-width: 2px; + --node-group-border-width: 2px; + --node-file-border-width: 2px; + } + body { margin: 0; @@ -17,47 +35,101 @@ -