@tscircuit/core 0.0.1409 → 0.0.1410

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 +20 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -25353,7 +25353,7 @@ import { identity as identity5 } from "transformation-matrix";
25353
25353
  var package_default = {
25354
25354
  name: "@tscircuit/core",
25355
25355
  type: "module",
25356
- version: "0.0.1408",
25356
+ version: "0.0.1409",
25357
25357
  types: "dist/index.d.ts",
25358
25358
  main: "dist/index.js",
25359
25359
  module: "dist/index.js",
@@ -31143,18 +31143,35 @@ var PinHeader = class extends NormalComponent3 {
31143
31143
  const pinCount = this._parsedProps.pinCount ?? 1;
31144
31144
  const facingDirection = this._parsedProps.schFacingDirection ?? this._parsedProps.facingDirection ?? "right";
31145
31145
  const schPinArrangement = this._parsedProps.schPinArrangement;
31146
+ const pins = Array.from({ length: pinCount }, (_, i) => `pin${i + 1}`);
31146
31147
  if (facingDirection === "left") {
31147
31148
  return {
31148
31149
  leftSide: {
31149
31150
  direction: schPinArrangement?.leftSide?.direction ?? "top-to-bottom",
31150
- pins: schPinArrangement?.leftSide?.pins ?? Array.from({ length: pinCount }, (_, i) => `pin${i + 1}`)
31151
+ pins: schPinArrangement?.leftSide?.pins ?? pins
31152
+ }
31153
+ };
31154
+ }
31155
+ if (facingDirection === "up") {
31156
+ return {
31157
+ topSide: {
31158
+ direction: schPinArrangement?.topSide?.direction ?? "left-to-right",
31159
+ pins: schPinArrangement?.topSide?.pins ?? pins
31160
+ }
31161
+ };
31162
+ }
31163
+ if (facingDirection === "down") {
31164
+ return {
31165
+ bottomSide: {
31166
+ direction: schPinArrangement?.bottomSide?.direction ?? "left-to-right",
31167
+ pins: schPinArrangement?.bottomSide?.pins ?? pins
31151
31168
  }
31152
31169
  };
31153
31170
  }
31154
31171
  return {
31155
31172
  rightSide: {
31156
31173
  direction: schPinArrangement?.rightSide?.direction ?? "top-to-bottom",
31157
- pins: schPinArrangement?.rightSide?.pins ?? Array.from({ length: pinCount }, (_, i) => `pin${i + 1}`)
31174
+ pins: schPinArrangement?.rightSide?.pins ?? pins
31158
31175
  }
31159
31176
  };
31160
31177
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1409",
4
+ "version": "0.0.1410",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",