Skip to content

Fix Code canvas speed, dashed-edge toggle, and Load Files default - #103

Open
braedonsaunders wants to merge 1 commit into
mainfrom
cursor/code-canvas-perf-dashes-39d1
Open

Fix Code canvas speed, dashed-edge toggle, and Load Files default#103
braedonsaunders wants to merge 1 commit into
mainfrom
cursor/code-canvas-perf-dashes-39d1

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

Community notes from eorroe on #82 (retested while reviewing #100): three bugs now on main. This PR is from current main and does not touch the named-groups work on #100 / cursor/code-named-groups-db67.

Fixes

  1. Canvas speed at Load Files = 25

    • Pan only updates the card-layer transform instead of rewriting every card box / class on each frame.
    • Zoom chrome (title scale, far/blocks classes) runs only when scale actually changes.
    • Code view stops the force simulation immediately (alpha(0) / stop) so pinned cards do not pay a tick loop of full redraws, hull rebuilds, and particle d updates.
    • Particle and hit paths bind only the selected file’s edges, not every graph link.
  2. Dashed dependency edges can come back without a refresh

    • Clicks on the moving dashes (or the selected orange/purple edges) no longer fall through dash gaps onto the hull and deselect.
    • A wide transparent hit stroke toggles the beads off and back on.
    • Selecting a file, or re-clicking the already-selected card, still lights that file’s dependency edges and turns the dashes back on.
  3. Load Files starts at 25 every session

    • Default is now 25.
    • The 50 / 75 / 100 buttons still work for the current session.
    • The choice is no longer written to or restored from localStorage (a stored 100 does not come back on the next open).

Tests

tests/code-canvas.test.mjs covers the session-only Load Files default, particle toggle helpers, hit-target detection, and pan-only zoom chrome. npm test is green (214).

Still one HTML file in the browser. No second product, no new packages, no Node-hosted public app.

Open in Web Open in Cursor 

Pan/zoom no longer rewrites every card box each frame, Code view skips
the force tick loop, and only selected-file edges get particle/hit paths.
Clicking those edges toggles dashes back on; selecting a file still lights
them. Load Files is session-only and always starts at 25.

Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
codeflow Ready Ready Preview Sep 4, 2026 2:14am UTC

Request Review

@braedonsaunders
braedonsaunders marked this pull request as ready for review September 4, 2026 03:42
@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants