Aaron Pham
2024-08-25 bca74623a393c6957074e8adab90d056299e4c03
refs
author Aaron Pham <Aaronpham0103@gmail.com>
Sunday, August 25, 2024 07:33 +0000
committer GitHub <noreply@github.com>
Sunday, August 25, 2024 07:33 +0000
commitbca74623a393c6957074e8adab90d056299e4c03
tree 33f6dadaeb1505201cb4cfd08d8cf2ccee90c38e tree | zip | gz
parent 4c9e8601504f76dcc3c273ea8ad1862df432b7b4 view | diff
perf(graph): canvas implementation (#1328)

* perf(graph): initial canvas layout

include nodes and links drawn

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(graph): update persistent for nodeGfx

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore(graph): add canvas element to avoid rerendering glitch

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(spa): only render graph once in global

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(graph): change svg as button

render global graph on toggle

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(graph): fix anchor position and zIndex behaviour

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore(graph): increase linkDistance

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* refactor

* fmt

* pkg

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
5 files modified
806 ■■■■■ changed files
package-lock.json 86 ●●●●● diff | view | raw | blame | history
package.json 4 ●●● diff | view | raw | blame | history
quartz/components/Graph.tsx 51 ●●●● diff | view | raw | blame | history
quartz/components/scripts/graph.inline.ts 654 ●●●●● diff | view | raw | blame | history
quartz/components/styles/graph.scss 11 ●●●●● diff | view | raw | blame | history