@tscircuit/core 0.0.478 → 0.0.480

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -7816,18 +7816,20 @@ var Group = class extends NormalComponent {
7816
7816
  }
7817
7817
  doInitialSchematicReplaceNetLabelsWithSymbols() {
7818
7818
  if (this.root?.schematicDisabled) return;
7819
+ if (!this.isSubcircuit) return;
7819
7820
  const { db } = this.root;
7820
- for (const nl of db.schematic_net_label.list()) {
7821
- const net = db.source_net.get(nl.source_net_id);
7821
+ const subtree = db;
7822
+ for (const nl of subtree.schematic_net_label.list()) {
7823
+ const net = subtree.source_net.get(nl.source_net_id);
7822
7824
  const text = nl.text || net?.name || "";
7823
7825
  if (nl.anchor_side === "top" && /^gnd/i.test(text)) {
7824
- db.schematic_net_label.update(nl.schematic_net_label_id, {
7826
+ subtree.schematic_net_label.update(nl.schematic_net_label_id, {
7825
7827
  symbol_name: "ground_down"
7826
7828
  });
7827
7829
  continue;
7828
7830
  }
7829
7831
  if (nl.anchor_side === "bottom" && /^v/i.test(text)) {
7830
- db.schematic_net_label.update(nl.schematic_net_label_id, {
7832
+ subtree.schematic_net_label.update(nl.schematic_net_label_id, {
7831
7833
  symbol_name: "vcc_up"
7832
7834
  });
7833
7835
  }
@@ -9896,7 +9898,7 @@ import { identity as identity4 } from "transformation-matrix";
9896
9898
  var package_default = {
9897
9899
  name: "@tscircuit/core",
9898
9900
  type: "module",
9899
- version: "0.0.477",
9901
+ version: "0.0.479",
9900
9902
  types: "dist/index.d.ts",
9901
9903
  main: "dist/index.js",
9902
9904
  module: "dist/index.js",
@@ -9919,9 +9921,9 @@ var package_default = {
9919
9921
  },
9920
9922
  devDependencies: {
9921
9923
  "@biomejs/biome": "^1.8.3",
9922
- "@tscircuit/capacity-autorouter": "^0.0.71",
9924
+ "@tscircuit/capacity-autorouter": "^0.0.75",
9923
9925
  "@tscircuit/checks": "^0.0.52",
9924
- "@tscircuit/circuit-json-util": "^0.0.47",
9926
+ "@tscircuit/circuit-json-util": "^0.0.49",
9925
9927
  "@tscircuit/footprinter": "^0.0.177",
9926
9928
  "@tscircuit/import-snippet": "^0.0.4",
9927
9929
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.478",
4
+ "version": "0.0.480",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@biomejs/biome": "^1.8.3",
27
- "@tscircuit/capacity-autorouter": "^0.0.71",
27
+ "@tscircuit/capacity-autorouter": "^0.0.75",
28
28
  "@tscircuit/checks": "^0.0.52",
29
- "@tscircuit/circuit-json-util": "^0.0.47",
29
+ "@tscircuit/circuit-json-util": "^0.0.49",
30
30
  "@tscircuit/footprinter": "^0.0.177",
31
31
  "@tscircuit/import-snippet": "^0.0.4",
32
32
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",