@tscircuit/core 0.0.421 → 0.0.423

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
@@ -4286,6 +4286,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
4286
4286
  }>;
4287
4287
  shouldRenderAsSchematicBox: boolean;
4288
4288
  };
4289
+ _getSchematicPortArrangement(): _tscircuit_props.SchematicPortArrangement;
4289
4290
  doInitialSourceRender(): void;
4290
4291
  doInitialPcbComponentRender(): void;
4291
4292
  doInitialPcbTraceRender(): void;
@@ -12242,7 +12243,7 @@ declare const getPhaseTimingsFromRenderEvents: (renderEvents: RenderEvent[]) =>
12242
12243
  type Nums16 = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16";
12243
12244
  type Nums40 = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "40";
12244
12245
  type PinNumbers100 = "pin0" | "pin1" | "pin2" | "pin3" | "pin4" | "pin5" | "pin6" | "pin7" | "pin8" | "pin9" | "pin10" | "pin11" | "pin12" | "pin13" | "pin14" | "pin15" | "pin16" | "pin17" | "pin18" | "pin19" | "pin20" | "pin21" | "pin22" | "pin23" | "pin24" | "pin25" | "pin26" | "pin27" | "pin28" | "pin29" | "pin30" | "pin31" | "pin32" | "pin33" | "pin34" | "pin35" | "pin36" | "pin37" | "pin38" | "pin39" | "pin40" | "pin41" | "pin42" | "pin43" | "pin44" | "pin45" | "pin46" | "pin47" | "pin48" | "pin49" | "pin50" | "pin51" | "pin52" | "pin53" | "pin54" | "pin55" | "pin56" | "pin57" | "pin58" | "pin59" | "pin60" | "pin61" | "pin62" | "pin63" | "pin64" | "pin65" | "pin66" | "pin67" | "pin68" | "pin69" | "pin70" | "pin71" | "pin72" | "pin73" | "pin74" | "pin75" | "pin76" | "pin77" | "pin78" | "pin79" | "pin80" | "pin81" | "pin82" | "pin83" | "pin84" | "pin85" | "pin86" | "pin87" | "pin88" | "pin89" | "pin90" | "pin91" | "pin92" | "pin93" | "pin94" | "pin95" | "pin96" | "pin97" | "pin98" | "pin99" | "pin100";
12245
- type CommonPinNames = "pos" | "neg" | "V5" | "V3_3" | "PWR" | "VCC" | "VDD" | "GND" | "SHLD" | `D${Nums40}` | `GP${Nums40}` | `GPIO${Nums40}` | "DP" | "DN" | "VIN" | "VOUT" | "VREF" | "VIN" | "VOUT" | "VREF" | "VIN" | "VOUT" | "VREF" | "OUT" | "DISCH" | "EN" | "IN" | "CLK" | "DATA" | "THRES" | "TRIG" | "RESET" | `A${Nums40}` | `B${Nums40}` | PinNumbers100;
12246
+ type CommonPinNames = "pos" | "neg" | "V5" | "V3_3" | "PWR" | "VCC" | "VDD" | "GND" | "SHLD" | `D${Nums40}` | `GP${Nums40}` | `GPIO${Nums40}` | "DP" | "DN" | "VIN" | "VOUT" | "VREF" | "VIN" | "VOUT" | "VREF" | "VUSB" | "VIN" | "VOUT" | "VREF" | "OUT" | "DISCH" | "EN" | "IN" | "CLK" | "DATA" | "THRES" | "TRIG" | "RESET" | "DM" | "DP" | "CC1" | "CC2" | `A${Nums40}` | `B${Nums40}` | PinNumbers100;
12246
12247
  type TransistorPinNames = "base" | "collector" | "emitter";
12247
12248
 
12248
12249
  type NonPolarizedSel = Record<`R${Nums40}`, {
@@ -12269,7 +12270,7 @@ type PolarizedSel = Record<`C${Nums40}` | `L${Nums40}` | `LED${Nums40}` | `D${Nu
12269
12270
  }>;
12270
12271
  type CommonNetNames = "VCC" | "GND" | "VDD" | "PWR" | "V5" | "V3_3" | "VIN" | "SHLD" | "EN";
12271
12272
  type TransistorSel = Record<`Q${Nums40}`, Record<TransistorPinNames, string>>;
12272
- type JumperSel = Record<`J${Nums40}` | `CN${Nums40}`, Record<PinNumbers100 | CommonPinNames, string>>;
12273
+ type JumperSel = Record<`J${Nums40}` | `CN${Nums40}`, Record<PinNumbers100 | CommonPinNames, string> & ChipFnSel>;
12273
12274
  type ChipSel = Record<`U${Nums40}`, Record<CommonPinNames, string> & ChipFnSel>;
12274
12275
  type NetSel = Record<"net", Record<CommonNetNames, string>>;
12275
12276
  type ExplicitModuleSel = Record<"subcircuit" | "module" | "group", Record<`S${Nums40}` | `M${Nums40}` | `G${Nums40}`, SelWithoutSubcircuit>>;
package/dist/index.js CHANGED
@@ -7292,6 +7292,16 @@ var Jumper = class extends NormalComponent {
7292
7292
  shouldRenderAsSchematicBox: true
7293
7293
  };
7294
7294
  }
7295
+ _getSchematicPortArrangement() {
7296
+ const arrangement = super._getSchematicPortArrangement();
7297
+ if (arrangement) return arrangement;
7298
+ const pinCount = this._parsedProps.pinCount ?? (Array.isArray(this._parsedProps.pinLabels) ? this._parsedProps.pinLabels.length : this._parsedProps.pinLabels ? Object.keys(this._parsedProps.pinLabels).length : this.getPortsFromFootprint().length);
7299
+ const direction = this._parsedProps.schDirection ?? "right";
7300
+ return {
7301
+ leftSize: direction === "left" ? pinCount : 0,
7302
+ rightSize: direction === "right" ? pinCount : 0
7303
+ };
7304
+ }
7295
7305
  doInitialSourceRender() {
7296
7306
  const { db } = this.root;
7297
7307
  const { _parsedProps: props } = this;
@@ -8471,7 +8481,7 @@ import { identity as identity4 } from "transformation-matrix";
8471
8481
  var package_default = {
8472
8482
  name: "@tscircuit/core",
8473
8483
  type: "module",
8474
- version: "0.0.420",
8484
+ version: "0.0.422",
8475
8485
  types: "dist/index.d.ts",
8476
8486
  main: "dist/index.js",
8477
8487
  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.421",
4
+ "version": "0.0.423",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",