Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Optimizations and Viewport Feature #135

Merged
merged 20 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
48c8fe6
bind viewport to graph
LeandroTreu Feb 26, 2024
d2cffa4
Merge branch 'master' of https://github.com/spcl/dace-webclient
LeandroTreu Feb 26, 2024
01a2142
bind viewport to graph bounds && comments
LeandroTreu Feb 28, 2024
e8c0542
first LOD optimizations
LeandroTreu Mar 12, 2024
443b284
minimap optimizations
LeandroTreu Mar 12, 2024
cf6ded5
quickfix simple_draw after invisible check
LeandroTreu Mar 12, 2024
cc73e54
added connector LOD
LeandroTreu Mar 13, 2024
f330b93
first mousehandler optimizations (only highlight when close)
LeandroTreu Mar 13, 2024
cce8ee0
mousehandler highlighting optimization (only redraw on change)
LeandroTreu Mar 14, 2024
e3de51a
arrowhead LOD
LeandroTreu Mar 14, 2024
3997726
fixed connectors rendered when invisible
LeandroTreu Mar 15, 2024
9c134be
fixed edges rendered even if not visible
LeandroTreu Mar 18, 2024
c5ba20a
added loading animation for relayout tasks
LeandroTreu Mar 19, 2024
5e00d44
added missing loading animation for settings change
LeandroTreu Mar 19, 2024
0c49a85
fixed mousehandler highlighting and solved state-outline performance …
LeandroTreu Mar 20, 2024
6895f3b
changed state LOD formula
LeandroTreu Mar 21, 2024
228886b
removed adaptiveHideContent option from user settings menu
LeandroTreu Mar 21, 2024
68e9f43
reworked user settings menu, added curved edges setting, added adapti…
LeandroTreu Mar 26, 2024
92418ae
checked all lod occurrences
LeandroTreu Mar 26, 2024
3415198
added loading animation to settings menu
LeandroTreu Mar 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ <h3 id="sidebar-header">
</form>
</div>
</div>
<div class="col-auto d-flex align-items-center">
<div id="task-info-field">
</div>
</div>
</div>
</div>
<div id="contents"></div>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions scss/sdfv.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ body.sdfv {
font-family: "Segoe UI", Arial, sans-serif;
}

// Loading animation
.loader {
border: 4px solid #ffffff;
border-top: 7px solid #34db50;
border-radius: 50%;
width: 25px;
height: 25px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.sdfv {

.hidden {
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/canvas_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,9 @@ export class CanvasManager {
this.renderer.draw(dt);
this.contention -= 1;

if (this.animation_end !== null && now < this.animation_end)
if (this.animation_end !== null && now < this.animation_end) {
this.draw_async();
}
}

public draw_async(): void {
Expand Down
Loading
Loading