@tscircuit/core 0.0.162 → 0.0.164

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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1859,7 +1859,15 @@ var Port = class extends PrimitiveComponent {
1859
1859
  label: "obstacle"
1860
1860
  });
1861
1861
  }
1862
- this.facingDirection = getRelativeDirection(containerCenter, portCenter);
1862
+ if (!localPortInfo?.side)
1863
+ this.facingDirection = getRelativeDirection(containerCenter, portCenter);
1864
+ else
1865
+ this.facingDirection = {
1866
+ left: "left",
1867
+ right: "right",
1868
+ top: "up",
1869
+ bottom: "down"
1870
+ }[localPortInfo.side];
1863
1871
  const sourcePort = db.source_port.get(this.source_port_id);
1864
1872
  let bestDisplayPinLabel = void 0;
1865
1873
  for (const portHint of sourcePort?.port_hints ?? []) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.162",
4
+ "version": "0.0.164",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",