Skip to content

Add GraphLayer layout redraw throttling - #352

Open
ibgreen wants to merge 1 commit into
masterfrom
codex/add-prop-to-control-update-speed
Open

Add GraphLayer layout redraw throttling#352
ibgreen wants to merge 1 commit into
masterfrom
codex/add-prop-to-control-update-speed

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 4, 2025

Copy link
Copy Markdown
Collaborator

Summary

  • add GraphLayer.layoutUpdateInterval to throttle layout-driven redraws without suppressing layout lifecycle callbacks
  • clear pending throttled redraw timers when the layer finalizes or swaps graph engines
  • document the public prop in the GraphLayer API reference and v9.4 notes

Classification

Feature / public API addition for graph-layers rendering cadence. It affects internal redraw scheduling, not a rendered docs/example route.

Validation

  • yarn
  • yarn test-node modules/graph-layers/test/layers/graph-layer.spec.ts
  • yarn test-node modules/graph-layers/test
  • yarn lint-fix
  • yarn lint
  • yarn build
  • cd website && yarn && yarn build
  • pre-commit yarn test

Visual proof

Not applicable. This PR changes GraphLayer redraw 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.

@charlieforward9
charlieforward9 force-pushed the codex/add-prop-to-control-update-speed branch 2 times, most recently from a83dbbc to 7c33a81 Compare July 9, 2026 09:54
@charlieforward9 charlieforward9 changed the title Add layout update throttling control to graph viewer example Add GraphLayer layout redraw throttling Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Coverage

Stmts: 51.02% ▲+0.21% | Branch: 41.94% ▲+0.02% | Funcs: 49.23% ▲+0.03% | Lines: 51.16% ▲+0.21%

Test Files 164 passed (164)

@charlieforward9
charlieforward9 self-requested a review July 9, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants