@tscircuit/core 0.0.288 → 0.0.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2567,6 +2567,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
2567
2567
  doInitialSchematicComponentRender(): void;
2568
2568
  doInitialSourceRender(): void;
2569
2569
  doInitialPcbComponentRender(): void;
2570
+ doInitialCreateTracesFromProps(): void;
2570
2571
  }
2571
2572
 
2572
2573
  declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassivePorts> {
package/dist/index.js CHANGED
@@ -5625,6 +5625,19 @@ var Chip = class extends NormalComponent {
5625
5625
  });
5626
5626
  this.pcb_component_id = pcb_component.pcb_component_id;
5627
5627
  }
5628
+ doInitialCreateTracesFromProps() {
5629
+ const { _parsedProps: props } = this;
5630
+ if (props.externallyConnectedPins) {
5631
+ for (const [pin1, pin2] of props.externallyConnectedPins) {
5632
+ this.add(
5633
+ new Trace2({
5634
+ from: `${this.getSubcircuitSelector()} > port.${pin1}`,
5635
+ to: `${this.getSubcircuitSelector()} > port.${pin2}`
5636
+ })
5637
+ );
5638
+ }
5639
+ }
5640
+ }
5628
5641
  };
5629
5642
 
5630
5643
  // lib/components/normal-components/Diode.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.288",
4
+ "version": "0.0.290",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",