Add GraphLayer layout redraw throttling - #352
Open
ibgreen wants to merge 1 commit into
Open
Conversation
41 tasks
charlieforward9
force-pushed
the
codex/add-prop-to-control-update-speed
branch
2 times, most recently
from
July 9, 2026 09:54
a83dbbc to
7c33a81
Compare
CoverageStmts: 51.02% ▲+0.21% | Branch: 41.94% ▲+0.02% | Funcs: 49.23% ▲+0.03% | Lines: 51.16% ▲+0.21%
|
charlieforward9
self-requested a review
July 9, 2026 17:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GraphLayer.layoutUpdateIntervalto throttle layout-driven redraws without suppressing layout lifecycle callbacksClassification
Feature / public API addition for graph-layers rendering cadence. It affects internal redraw scheduling, not a rendered docs/example route.
Validation
yarnyarn test-node modules/graph-layers/test/layers/graph-layer.spec.tsyarn test-node modules/graph-layers/testyarn lint-fixyarn lintyarn buildcd website && yarn && yarn buildyarn testVisual proof
Not applicable. This PR changes
GraphLayerredraw scheduling and public API docs; it is covered by fake-timer unit tests plus package/website builds rather than a user-visible route or interaction recording.Residual risk
Low to medium. The default remains
0, preserving current every-layout-change redraw behavior. Nonzero intervals coalesce intermediate redraws, so consumers using the new prop should expect visual updates at the requested cadence while lifecycle callbacks still fire.