Skip to content

Add missing step and layer properties to Arrow type#103

Open
mendarb wants to merge 1 commit into
tscircuit:mainfrom
mendarb:add-step-layer-to-arrows
Open

Add missing step and layer properties to Arrow type#103
mendarb wants to merge 1 commit into
tscircuit:mainfrom
mendarb:add-step-layer-to-arrows

Conversation

@mendarb
Copy link
Copy Markdown

@mendarb mendarb commented Mar 20, 2026

Summary

  • Added step and layer properties to the Arrow interface, bringing it in line with all other graphic element types (Point, Line, InfiniteLine, Rect, Circle, Polygon, Text) which already had these properties
  • Fixed setStepOfAllObjects to handle arrows, which was previously skipping them
  • Added tests for setStepOfAllObjects covering all element types including arrows

Closes #75

Test plan

  • All 45 tests pass (43 existing + 2 new)
  • Format check passes
  • setStepOfAllObjects test covers all element types including arrows
  • Empty graphics object edge case tested

🤖 Generated with Claude Code

The Arrow interface was missing step and layer properties that all other
graphic element types (Point, Line, Rect, Circle, Polygon, Text) have.
This also adds arrow handling to setStepOfAllObjects which was previously
skipping arrows, and adds tests for setStepOfAllObjects.

Closes tscircuit#75

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 20, 2026

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

Project Deployment Actions Updated (UTC)
graphics-debug Ready Ready Preview, Comment Mar 20, 2026 11:43pm

Request Review

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.

Add arrows support

1 participant