Skip to content

fix(canvas): clone-based selection highlights#60

Merged
eugenioenko merged 1 commit into
mainfrom
fix/highlight-clone-overlay
May 12, 2026
Merged

fix(canvas): clone-based selection highlights#60
eugenioenko merged 1 commit into
mainfrom
fix/highlight-clone-overlay

Conversation

@eugenioenko
Copy link
Copy Markdown
Owner

Summary

Test plan

  • pnpm build passes
  • pnpm lint passes (0 errors)
  • 4 e2e tests pass (npx playwright test e2e/selection-highlight.spec.ts)
  • Manual: select a shape, verify properties panel shows original color
  • Manual: delete selected shape, undo, verify original color restored
  • Manual: copy/paste selected shape, verify pasted shape has original color
  • Manual: edit stroke width while selected, deselect, verify change persists
  • Manual: zoom in/out with shape selected, verify highlight stays thin

Fixes #45, #47, #50, #52

🤖 Generated with Claude Code

…tating shapes

Replace the stroke-mutation highlight system with clone-based overlays
in the highlights group. The original shape is never modified, fixing
issues where properties panel, undo/delete, copy/paste, and property
edits would capture or restore the highlight color instead of the real
values. Highlight clones scale with zoom to stay visually consistent.

Fixes #45, #47, #50, #52

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@eugenioenko eugenioenko merged commit 619da02 into main May 12, 2026
1 check passed
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.

Properties panel shows selection highlight color instead of shape's actual color

1 participant