Skip to content

Conversation

@seveibar
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Apr 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tscircuit-core-benchmarks ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2025 6:09pm

@seveibar seveibar changed the title optimize selector cache prior to SourceTraceRender optimize selector cache prior to SourceTraceRender (2x speedup on benchmark) Apr 17, 2025
@seveibar seveibar merged commit afd2f44 into main Apr 17, 2025
6 checks passed
@seveibar seveibar deleted the more-optimizations branch April 17, 2025 18:09
Lulzx added a commit to Lulzx/core that referenced this pull request Dec 4, 2025
Implements the `<connector standard="usb_c" />` flow as described in issue tscircuit#748.

- Add Connector class extending NormalComponent
- Define USB-C standard pin mapping (DP, DM, CC1, CC2, VBUS, GND, SBU, TX/RX)
- Auto-create ports with standard names when standard prop is set
- Support internally connected pins for connectors
- Export getStandardPins() helper and USB_C_STANDARD_PINS constant
- Add unit tests for connector functionality

Usage:
```tsx
<Connector standard="usb_c" name="USB1" />
<trace from=".USB1 > .DP" to=".MCU > .USB_DP" />
```
Lulzx added a commit to Lulzx/core that referenced this pull request Dec 4, 2025
Implements the `<connector standard="usb_c" />` flow as described in issue tscircuit#748.

- Add Connector class extending NormalComponent
- Define USB-C standard pin mapping (DP, DM, CC1, CC2, VBUS, GND, SBU, TX/RX)
- Auto-create ports with standard names when standard prop is set
- Support internally connected pins for connectors
- Export getStandardPins() helper and USB_C_STANDARD_PINS constant
- Add unit tests for connector functionality

Usage:
```tsx
<Connector standard="usb_c" name="USB1" />
<trace from=".USB1 > .DP" to=".MCU > .USB_DP" />
```
Lulzx added a commit to Lulzx/core that referenced this pull request Dec 4, 2025
Implements the `<connector standard="usb_c" />` flow as described in issue tscircuit#748.

- Add Connector class extending NormalComponent
- Define USB-C standard pin mapping (DP, DM, CC1, CC2, VBUS, GND, SBU, TX/RX)
- Auto-create ports with standard names when standard prop is set
- Support internally connected pins for connectors
- Export getStandardPins() helper and USB_C_STANDARD_PINS constant
- Add unit tests for connector functionality

Usage:
```tsx
<Connector standard="usb_c" name="USB1" />
<trace from=".USB1 > .DP" to=".MCU > .USB_DP" />
```
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