From 8df3afcfed19839a963eb0f8c451e7031a7f8af1 Mon Sep 17 00:00:00 2001 From: Leandro Treu Date: Wed, 27 Mar 2024 17:03:08 +0100 Subject: [PATCH] Performance Optimizations and Viewport Feature (#135) * bind viewport to graph * bind viewport to graph bounds && comments * first LOD optimizations * minimap optimizations * quickfix simple_draw after invisible check * added connector LOD * first mousehandler optimizations (only highlight when close) * mousehandler highlighting optimization (only redraw on change) * arrowhead LOD * fixed connectors rendered when invisible * fixed edges rendered even if not visible * added loading animation for relayout tasks * added missing loading animation for settings change * fixed mousehandler highlighting and solved state-outline performance issues * changed state LOD formula * removed adaptiveHideContent option from user settings menu * reworked user settings menu, added curved edges setting, added adaptiveStateHiding setting again with a warning * checked all lod occurrences * added loading animation to settings menu --- index.html | 4 + package-lock.json | 4 +- scss/sdfv.scss | 14 + src/renderer/canvas_manager.ts | 3 +- src/renderer/renderer.ts | 557 ++++++++++++++++++++++-------- src/renderer/renderer_elements.ts | 538 +++++++++++++++++++---------- src/sdfv.ts | 46 ++- src/utils/sdfv_settings.ts | 77 ++++- 8 files changed, 902 insertions(+), 341 deletions(-) diff --git a/index.html b/index.html index 42009f02..e93e573a 100644 --- a/index.html +++ b/index.html @@ -101,6 +101,10 @@