[PM] Apply graph boundaries as a counter-force.
* boundaryForce now updates node velocities to pull them back across the boundary instead of teleporting them, which causes jitter as other forces continue to act after the teleport. * Rescale targetYPositionStrength to a max of 1 so that boundaryForce can match its strength without increasing oscillations. * Add a linkStrengthScalingFactor so that some link strengths can be rescaled along with targetYPositionStrength. * Add a 20-pixel border to the bottom edge of the graph so that the boundary force doesn't cram process nodes against the edge of the screen. Bug: 1086231 Change-Id: Idb4fe5acc05c4a8c0a7cfa7b5143c4f2d4f78f5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2215403 Commit-Queue: Joe Mason <joenotcharles@chromium.org> Reviewed-by:Sigurður Ásgeirsson <siggi@chromium.org> Reviewed-by:
dpapad <dpapad@chromium.org> Auto-Submit: Joe Mason <joenotcharles@chromium.org> Cr-Commit-Position: refs/heads/master@{#772407}
Showing
Please register or sign in to comment