@tscircuit/core 0.0.1405 → 0.0.1406

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 +12 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -19994,7 +19994,16 @@ function createSchematicTraceSolverInputProblem(group) {
19994
19994
  pins.push({
19995
19995
  pinId,
19996
19996
  x: schematicPort.center.x,
19997
- y: schematicPort.center.y
19997
+ y: schematicPort.center.y,
19998
+ // Pass the port's true facing direction (known from the schematic
19999
+ // symbol). The chip box handed to the solver is text-inclusive, so for
20000
+ // small parts with a large reference designator the pins sit inside the
20001
+ // box. The solver snaps such pins to the box edge along this facing
20002
+ // direction (rather than guessing from geometry, which would pick the
20003
+ // wrong edge for a resistor whose ref text widened the box).
20004
+ _facingDirection: convertFacingDirectionToElbowDirection(
20005
+ schematicPort.facing_direction ?? null
20006
+ )
19998
20007
  });
19999
20008
  }
20000
20009
  let sectionId;
@@ -25329,7 +25338,7 @@ import { identity as identity5 } from "transformation-matrix";
25329
25338
  var package_default = {
25330
25339
  name: "@tscircuit/core",
25331
25340
  type: "module",
25332
- version: "0.0.1404",
25341
+ version: "0.0.1405",
25333
25342
  types: "dist/index.d.ts",
25334
25343
  main: "dist/index.js",
25335
25344
  module: "dist/index.js",
@@ -25380,7 +25389,7 @@ var package_default = {
25380
25389
  "@tscircuit/ngspice-spice-engine": "^0.0.18",
25381
25390
  "@tscircuit/props": "^0.0.567",
25382
25391
  "@tscircuit/schematic-match-adapt": "^0.0.18",
25383
- "@tscircuit/schematic-trace-solver": "^0.0.87",
25392
+ "@tscircuit/schematic-trace-solver": "^0.0.91",
25384
25393
  "@tscircuit/solver-utils": "^0.0.16",
25385
25394
  "@tscircuit/soup-util": "^0.0.41",
25386
25395
  "@types/bun": "^1.2.16",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1405",
4
+ "version": "0.0.1406",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -52,7 +52,7 @@
52
52
  "@tscircuit/ngspice-spice-engine": "^0.0.18",
53
53
  "@tscircuit/props": "^0.0.567",
54
54
  "@tscircuit/schematic-match-adapt": "^0.0.18",
55
- "@tscircuit/schematic-trace-solver": "^0.0.87",
55
+ "@tscircuit/schematic-trace-solver": "^0.0.91",
56
56
  "@tscircuit/solver-utils": "^0.0.16",
57
57
  "@tscircuit/soup-util": "^0.0.41",
58
58
  "@types/bun": "^1.2.16",