# astrimid - I'd like to extract the new proposed... Channel: #contributor Source: https://discord.com/channels/1233487248129921135/1527799567335161877 Started: 2026-07-17T22:10:02.574000+00:00 Last activity: 2026-07-23T21:31:21.430000+00:00 ## astrimid — 2026-07-17T22:10:01.996000+00:00 I'd like to extract the new proposed API here from the previous thread on dual package mosfet chip representation. The phase 1 of the proposal includes: 1. **New `ChipProps` extensions** to add: - `schDisplay?: "expanded" | "collapsed" | "hidden"` - Support for `` as a child - `pinMapping` functionality 2. **New `` component type** with its own props interface. This is added to `` but may potentially be extended to other components (maybe even user defined elements, like custom/simplifed schematic view for `` or `` while keeping pcb/bom representation intact) 3. **Reference designator composition logic** to combine chip name with child names (e.g., "Q203" + "A" = "Q203A") 4. **Pin mapping reconciliation** to validate that internal primitive terminals map correctly to footprint pins Phase 2 makes the approach more generic, by introducing `schOnly` and `pcbOnly` attributes or some other way that extends beyond ``. The `schOnly` and `pcbOnly` attributes already defined in `ConstrainedLayoutProps`, so `` should already work, but `constainedlayout` element isn't registered in core and doesn't have any influence so causes compilation error. ## astrimid — 2026-07-17T22:17:57.801000+00:00 the naive representation would be: ``` ``` But that loses references between those, e.g. if I want to display physical pin numbering on logical schematic elements ## astrimid — 2026-07-17T22:21:24.702000+00:00 tagging <@1079361271687807026> as he was the one proposing `` ## Mustafa7 — 2026-07-18T04:55:15.812000+00:00 We cannot make any decisions without seve. So cc <@757706909351411845> ## Seve — 2026-07-18T05:01:02.857000+00:00 Hello ## astrimid — 2026-07-23T09:53:55.954000+00:00 FWIW, `` + `noSchematicRepresentation` for `` seems to do the trick. But I still feel API could be more intuitive. ## Mustafa7 — 2026-07-23T10:04:09.736000+00:00 Yea we are thinking about this ## Mustafa7 — 2026-07-23T10:04:24.181000+00:00 We were talking about this yesterday ## Mustafa7 — 2026-07-23T13:44:59.649000+00:00 <@757706909351411845> ``` ``` Hows this tsx instead of internalcircuit wrapper? One issue with schematicbox is that you will lose sch symbols, that is fine right? ## Mustafa7 — 2026-07-23T14:03:01.123000+00:00 should i revert what we did till now for internalcircuit?(its almost done, just the displayName for internal components has to be set in core) ## Seve — 2026-07-23T16:54:39.240000+00:00 <@1079361271687807026> you should do `` for the mosfet symbols i think ## Seve — 2026-07-23T16:55:41.850000+00:00 <@1079361271687807026> yea i mean i think if we do the revert in one big PR- it might be easier for us to come back to it later (especially if the title is pretty explicit) ## Seve — 2026-07-23T16:56:19.707000+00:00 i think we'll maybe bring back internalcircuit when we do advance spice modeling (maybe- there are also other ways to do that) ## Mustafa7 — 2026-07-23T16:59:59.921000+00:00 So should I revert it and then we should implement the above style with schematicsymbol? ## Seve — 2026-07-23T17:00:38.622000+00:00 yea i agree with that ## astrimid — 2026-07-23T19:03:42.085000+00:00 the current blocker is `noschemaicrepresentation` leaves orphan traces behind. Does using `` component or API, from which I could layer my own primitive components and props when tscirciuit falls short. But maybe even `circuitjson` has its limitations? ## Seve — 2026-07-23T19:43:39.334000+00:00 should work for that ## Seve — 2026-07-23T19:43:45.613000+00:00 subcircuit also has showAsSchematicBox ## astrimid — 2026-07-23T20:42:19.374000+00:00 > should work for that It has some key limitation: it's an isolated namespace ## Seve — 2026-07-23T21:31:11.029000+00:00 right yea ## Seve — 2026-07-23T21:31:21.430000+00:00 you can do `exposedNets` etc. to explicitly expose stuff tho