@tscircuit/core 0.0.677 → 0.0.678

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 +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9845,10 +9845,12 @@ function createSchematicTraceSolverInputProblem(group) {
9845
9845
  )) {
9846
9846
  if (!net.name) continue;
9847
9847
  if (!presentNetIds.has(net.name)) continue;
9848
- if (net.is_ground || net.name.startsWith("GND")) {
9848
+ if (net.is_ground || net.name.toLowerCase().startsWith("gnd")) {
9849
9849
  netToAllowedOrientations[net.name] = ["y-"];
9850
- } else if (/^V/.test(net.name)) {
9850
+ } else if (net.is_power || net.name.toLowerCase().startsWith("v")) {
9851
9851
  netToAllowedOrientations[net.name] = ["y+"];
9852
+ } else {
9853
+ netToAllowedOrientations[net.name] = ["x-", "x+"];
9852
9854
  }
9853
9855
  }
9854
9856
  return netToAllowedOrientations;
@@ -13911,7 +13913,7 @@ import { identity as identity5 } from "transformation-matrix";
13911
13913
  var package_default = {
13912
13914
  name: "@tscircuit/core",
13913
13915
  type: "module",
13914
- version: "0.0.676",
13916
+ version: "0.0.677",
13915
13917
  types: "dist/index.d.ts",
13916
13918
  main: "dist/index.js",
13917
13919
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.677",
4
+ "version": "0.0.678",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",