@tscircuit/core 0.0.388 → 0.0.389

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 +11 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7815,13 +7815,18 @@ var Transistor = class extends NormalComponent {
7815
7815
  };
7816
7816
  }
7817
7817
  initPorts() {
7818
+ const pinAliases = this.props.type === "npn" ? {
7819
+ pin1: ["emitter", "e"],
7820
+ pin2: ["collector", "c"],
7821
+ pin3: ["base", "b"]
7822
+ } : {
7823
+ pin1: ["collector", "c"],
7824
+ pin2: ["emitter", "e"],
7825
+ pin3: ["base", "b"]
7826
+ };
7818
7827
  super.initPorts({
7819
7828
  pinCount: 3,
7820
- additionalAliases: {
7821
- pin1: ["emitter", "e"],
7822
- pin2: ["collector", "c"],
7823
- pin3: ["base", "b"]
7824
- }
7829
+ additionalAliases: pinAliases
7825
7830
  });
7826
7831
  }
7827
7832
  emitter = this.portMap.pin1;
@@ -7916,7 +7921,7 @@ import { identity as identity4 } from "transformation-matrix";
7916
7921
  var package_default = {
7917
7922
  name: "@tscircuit/core",
7918
7923
  type: "module",
7919
- version: "0.0.387",
7924
+ version: "0.0.388",
7920
7925
  types: "dist/index.d.ts",
7921
7926
  main: "dist/index.js",
7922
7927
  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.388",
4
+ "version": "0.0.389",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",