Skip to content

feat: add ccw_rotation to pcb_note_text for PCB note rotation#574

Open
64johnlee wants to merge 35 commits into
tscircuit:mainfrom
64johnlee:fix/issue-531-ccw-rotation-note-text
Open

feat: add ccw_rotation to pcb_note_text for PCB note rotation#574
64johnlee wants to merge 35 commits into
tscircuit:mainfrom
64johnlee:fix/issue-531-ccw-rotation-note-text

Conversation

@64johnlee
Copy link
Copy Markdown

Summary

Add ccw_rotation property to pcb_note_text schema and TypeScript interface to allow PCB note text elements to be rotated.

Changes

  • Added ccw_rotation property using the existing rotation schema (supports number in degrees or string like "45deg")
  • Default value is 0 (no rotation)
  • Works with negative values for counter-clockwise rotation

Test Coverage

Added 4 test cases covering:

  • Basic rotation with numeric value
  • Rotation with degree string ("90deg")
  • Default rotation value of 0
  • Negative rotation values

Issue

Fixes #531

64johnlee added 10 commits May 1, 2026 06:44
First test for circuit-json.
9 source schemas tested:
- source_simple_resistor (3 tests)
- source_simple_capacitor (3 tests)
- source_simple_diode (1 test)
- source_simple_led (1 test)
- source_simple_fuse (2 tests)
- source_simple_transistor (2 tests)
- source_simple_power_source (2 tests)
- source_simple_voltage_source (2 tests)
- source_simple_current_source (2 tests)

Total: 18 new tests.
+12 more tests for source schemas.

All circuit-json tests passing.
+4 new tests (source_trace, source_component_internal_connection, source_project_metadata)

All 252 circuit-json tests pass.
+6 tests.

All 258 circuit-json tests pass.
+4 more tests.

All 262 circuit-json tests pass.
+10 more schemas tested.

All 272 circuit-json tests pass.
source_simple_chip, crystal, fiducial, ground, mosfet, port, connector, op_amp, battery, inductor

All 282 circuit-json tests pass.
Copy link
Copy Markdown
Author

@64johnlee 64johnlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All checks passing ✅ This PR adds ccw_rotation support to pcb_note_text. Ready to merge! 🙏

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.

1 participant