@tscircuit/core 0.0.1304 → 0.0.1305

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 +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9919,9 +9919,10 @@ var createComponentsFromCircuitJson = ({
9919
9919
  );
9920
9920
  if (!facingDirection) continue;
9921
9921
  const directionVector = getUnitVectorFromDirection2(facingDirection);
9922
+ const stemDirection = elm.facing_direction === facingDirection ? 1 : -1;
9922
9923
  const portCenter = {
9923
- x: elm.center.x + directionVector.x * distance19,
9924
- y: elm.center.y + directionVector.y * distance19
9924
+ x: elm.center.x + directionVector.x * distance19 * stemDirection,
9925
+ y: elm.center.y + directionVector.y * distance19 * stemDirection
9925
9926
  };
9926
9927
  parentSymbol.add(
9927
9928
  new SchematicLine({
@@ -23428,7 +23429,7 @@ import { identity as identity5 } from "transformation-matrix";
23428
23429
  var package_default = {
23429
23430
  name: "@tscircuit/core",
23430
23431
  type: "module",
23431
- version: "0.0.1303",
23432
+ version: "0.0.1304",
23432
23433
  types: "dist/index.d.ts",
23433
23434
  main: "dist/index.js",
23434
23435
  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.1304",
4
+ "version": "0.0.1305",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",