Skip to content

Conversation

@ShiboSoftwareDev
Copy link
Contributor

This change introduces the ability for components to inflate source_trace elements from a circuitJson
prop. This allows for defining pre-wired subcircuits and having those internal connections be respected upon
instantiation.

A new inflator, inflateSourceTrace, has been added to handle the creation of components from source_trace
definitions. The logic correctly traverses the group hierarchy within the subcircuit's JSON to construct valid
hierarchical selectors for trace paths.

A new test case has been added to verify that a trace connecting two resistors within a subcircuit's circuitJson
is correctly inflated and rendered.

@vercel
Copy link

vercel bot commented Nov 13, 2025

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

Project Deployment Preview Comments Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview Comment Nov 13, 2025 7:43pm

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

nice

@ShiboSoftwareDev ShiboSoftwareDev merged commit 1891411 into tscircuit:main Nov 13, 2025
11 checks passed
@tscircuitbot
Copy link
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

3 participants