@tscircuit/core 0.0.288 → 0.0.289
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 +1 -0
- package/dist/index.js +13 -0
- package/package.json +1 -1
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
|