@tscircuit/core 0.0.735 → 0.0.736

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.
package/dist/index.d.ts CHANGED
@@ -924,6 +924,7 @@ declare class Port extends PrimitiveComponent<typeof portProps> {
924
924
  constructor(props: z.input<typeof portProps>, opts?: {
925
925
  originDescription?: string;
926
926
  });
927
+ _isBoardPinoutFromAttributes(): boolean | undefined;
927
928
  _getGlobalPcbPositionBeforeLayout(): {
928
929
  x: number;
929
930
  y: number;
package/dist/index.js CHANGED
@@ -3176,6 +3176,17 @@ var Port = class extends PrimitiveComponent2 {
3176
3176
  }
3177
3177
  this.matchedComponents = [];
3178
3178
  }
3179
+ _isBoardPinoutFromAttributes() {
3180
+ const parent = this.parent;
3181
+ if (parent?._parsedProps?.pinAttributes) {
3182
+ const pinAttributes = parent._parsedProps.pinAttributes;
3183
+ for (const alias of this.getNameAndAliases()) {
3184
+ if (pinAttributes[alias]?.includeInBoardPinout) {
3185
+ return true;
3186
+ }
3187
+ }
3188
+ }
3189
+ }
3179
3190
  _getGlobalPcbPositionBeforeLayout() {
3180
3191
  const matchedPcbElm = this.matchedComponents.find((c) => c.isPcbPrimitive);
3181
3192
  const parentComponent = this.parent;
@@ -3421,7 +3432,8 @@ var Port = class extends PrimitiveComponent2 {
3421
3432
  pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0,
3422
3433
  ...isBoardPinout ? { is_board_pinout: true } : {},
3423
3434
  ...matchCenter,
3424
- source_port_id: this.source_port_id
3435
+ source_port_id: this.source_port_id,
3436
+ is_board_pinout: this._isBoardPinoutFromAttributes()
3425
3437
  });
3426
3438
  this.pcb_port_id = pcb_port.pcb_port_id;
3427
3439
  } else {
@@ -3459,7 +3471,8 @@ var Port = class extends PrimitiveComponent2 {
3459
3471
  pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0,
3460
3472
  ...isBoardPinout ? { is_board_pinout: true } : {},
3461
3473
  ...matchCenter,
3462
- source_port_id: this.source_port_id
3474
+ source_port_id: this.source_port_id,
3475
+ is_board_pinout: this._isBoardPinoutFromAttributes()
3463
3476
  });
3464
3477
  this.pcb_port_id = pcb_port.pcb_port_id;
3465
3478
  }
@@ -15360,7 +15373,7 @@ import { identity as identity6 } from "transformation-matrix";
15360
15373
  var package_default = {
15361
15374
  name: "@tscircuit/core",
15362
15375
  type: "module",
15363
- version: "0.0.734",
15376
+ version: "0.0.735",
15364
15377
  types: "dist/index.d.ts",
15365
15378
  main: "dist/index.js",
15366
15379
  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.735",
4
+ "version": "0.0.736",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",