@tscircuit/core 0.0.55 → 0.0.56
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.js
CHANGED
|
@@ -2385,6 +2385,9 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
|
|
|
2385
2385
|
const { db } = this.root;
|
|
2386
2386
|
const { _parsedProps: props, parent } = this;
|
|
2387
2387
|
if (!parent) throw new Error("Trace has no parent");
|
|
2388
|
+
if (this.getSubcircuit()._parsedProps.routingDisabled) {
|
|
2389
|
+
return;
|
|
2390
|
+
}
|
|
2388
2391
|
const { allPortsFound, ports } = this._findConnectedPorts();
|
|
2389
2392
|
const portsConnectedOnPcbViaNet = [];
|
|
2390
2393
|
if (!allPortsFound) return;
|
|
@@ -251,6 +251,10 @@ export class Trace extends PrimitiveComponent<typeof traceProps> {
|
|
|
251
251
|
|
|
252
252
|
if (!parent) throw new Error("Trace has no parent")
|
|
253
253
|
|
|
254
|
+
if (this.getSubcircuit()._parsedProps.routingDisabled) {
|
|
255
|
+
return
|
|
256
|
+
}
|
|
257
|
+
|
|
254
258
|
const { allPortsFound, ports } = this._findConnectedPorts()
|
|
255
259
|
const portsConnectedOnPcbViaNet: Port[] = []
|
|
256
260
|
|