Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

refactor: clean up syncRenderers null-checks and positionCluster sign logic - #120

Merged
sauravbhattacharya001 merged 1 commit into
masterfrom
refactor/sync-renderers-null-safety
Mar 28, 2026
Merged

sauravbhattacharya001 merged 1 commit into
masterfrom
refactor/sync-renderers-null-safety

Conversation

@sauravbhattacharya001

Copy link
Copy Markdown
Owner

Changes

syncRenderers()

  • Replaced dense inline ternary null-check chains with structured if/else blocks
  • Each overlay (path, MST, community, articulation, ego) gets its own clearly-commented section
  • Controller is queried once per field instead of multiple times per line

positionCluster()

  • Renamed confusing parameters \y,x\ to
    ow,col\ (they were reversed relative to convention)
  • Replaced verbose \signX/signY\ int-based branching with
    extBoolean()\
  • Eliminated dead initial assignments of \delX, \delY, \signY\

No behavioral changes — purely readability and maintainability.

… logic

- syncRenderers: replace inline ternary chains with structured if/else blocks,
  one per overlay. Each controller is now queried once per field with clear
  comments identifying which overlay is being configured.

- positionCluster: rename confusing params (y,x -> row,col), replace verbose
  signX/signY int-based branching with nextBoolean(), eliminate dead initial
  assignments of delX/delY/signY.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added visualization Graph visualization and UI size/m labels Mar 25, 2026
@sauravbhattacharya001
sauravbhattacharya001 merged commit df64a58 into master Mar 28, 2026
4 of 8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size/m visualization Graph visualization and UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant