@tscircuit/core 0.0.524 → 0.0.526
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 +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7958,11 +7958,15 @@ var Group = class extends NormalComponent {
|
|
|
7958
7958
|
const debug4 = Debug5("tscircuit:core:_runLocalAutorouting");
|
|
7959
7959
|
debug4(`[${this.getString()}] starting local autorouting`);
|
|
7960
7960
|
const autorouterConfig = this._getAutorouterConfig();
|
|
7961
|
-
const
|
|
7961
|
+
const sourceTraceIdsToRoute = this.selectAll("trace").filter((t) => !t.pcb_trace_id).map((t) => t.source_trace_id);
|
|
7962
|
+
const { simpleRouteJson } = getSimpleRouteJsonFromCircuitJson({
|
|
7962
7963
|
db,
|
|
7963
7964
|
minTraceWidth: this.props.autorouter?.minTraceWidth ?? 0.15,
|
|
7964
7965
|
subcircuit_id: this.subcircuit_id
|
|
7965
7966
|
});
|
|
7967
|
+
simpleRouteJson.connections = simpleRouteJson.connections.filter(
|
|
7968
|
+
(conn) => sourceTraceIdsToRoute.includes(conn.name)
|
|
7969
|
+
);
|
|
7966
7970
|
this.root?.emit("autorouting:start", {
|
|
7967
7971
|
subcircuit_id: this.subcircuit_id,
|
|
7968
7972
|
componentDisplayName: this.getString(),
|
|
@@ -9445,9 +9449,12 @@ var NetLabel = class extends PrimitiveComponent2 {
|
|
|
9445
9449
|
const { db } = this.root;
|
|
9446
9450
|
const { _parsedProps: props } = this;
|
|
9447
9451
|
const anchorPos = this._getGlobalSchematicPositionBeforeLayout();
|
|
9452
|
+
const net = this.getSubcircuit().selectOne(
|
|
9453
|
+
`net.${this._getNetName()}`
|
|
9454
|
+
);
|
|
9448
9455
|
const netLabel = db.schematic_net_label.insert({
|
|
9449
9456
|
text: props.net,
|
|
9450
|
-
source_net_id:
|
|
9457
|
+
source_net_id: net.source_net_id,
|
|
9451
9458
|
anchor_position: anchorPos,
|
|
9452
9459
|
// TODO compute the center based on the text size
|
|
9453
9460
|
center: anchorPos,
|
|
@@ -10595,7 +10602,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
10595
10602
|
var package_default = {
|
|
10596
10603
|
name: "@tscircuit/core",
|
|
10597
10604
|
type: "module",
|
|
10598
|
-
version: "0.0.
|
|
10605
|
+
version: "0.0.525",
|
|
10599
10606
|
types: "dist/index.d.ts",
|
|
10600
10607
|
main: "dist/index.js",
|
|
10601
10608
|
module: "dist/index.js",
|