@tscircuit/core 0.0.891 → 0.0.892

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 (3) hide show
  1. package/dist/index.d.ts +2382 -477
  2. package/dist/index.js +36 -2
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ __export(components_exports, {
30
30
  Group: () => Group6,
31
31
  Hole: () => Hole,
32
32
  Inductor: () => Inductor,
33
+ Interconnect: () => Interconnect,
33
34
  Jumper: () => Jumper,
34
35
  Keepout: () => Keepout,
35
36
  Led: () => Led,
@@ -15762,6 +15763,38 @@ var Jumper = class extends NormalComponent3 {
15762
15763
  }
15763
15764
  };
15764
15765
 
15766
+ // lib/components/normal-components/Interconnect.ts
15767
+ import { interconnectProps } from "@tscircuit/props";
15768
+ var INTERCONNECT_STANDARD_FOOTPRINTS = {
15769
+ "0603": "0603",
15770
+ "0805": "0805",
15771
+ "1206": "1206"
15772
+ };
15773
+ var Interconnect = class extends NormalComponent3 {
15774
+ get config() {
15775
+ return {
15776
+ componentName: "Interconnect",
15777
+ zodProps: interconnectProps,
15778
+ shouldRenderAsSchematicBox: true,
15779
+ sourceFtype: "interconnect"
15780
+ };
15781
+ }
15782
+ _getImpliedFootprintString() {
15783
+ const { standard } = this._parsedProps;
15784
+ if (!standard) return null;
15785
+ return INTERCONNECT_STANDARD_FOOTPRINTS[standard] ?? null;
15786
+ }
15787
+ doInitialSourceRender() {
15788
+ const { db } = this.root;
15789
+ const source_component = db.source_component.insert({
15790
+ ftype: "interconnect",
15791
+ name: this.name,
15792
+ are_pins_interchangeable: true
15793
+ });
15794
+ this.source_component_id = source_component.source_component_id;
15795
+ }
15796
+ };
15797
+
15765
15798
  // lib/components/normal-components/SolderJumper.ts
15766
15799
  import { solderjumperProps } from "@tscircuit/props";
15767
15800
  var SolderJumper = class extends NormalComponent3 {
@@ -19160,7 +19193,7 @@ import { identity as identity6 } from "transformation-matrix";
19160
19193
  var package_default = {
19161
19194
  name: "@tscircuit/core",
19162
19195
  type: "module",
19163
- version: "0.0.890",
19196
+ version: "0.0.891",
19164
19197
  types: "dist/index.d.ts",
19165
19198
  main: "dist/index.js",
19166
19199
  module: "dist/index.js",
@@ -19204,7 +19237,7 @@ var package_default = {
19204
19237
  "@tscircuit/math-utils": "^0.0.29",
19205
19238
  "@tscircuit/miniflex": "^0.0.4",
19206
19239
  "@tscircuit/ngspice-spice-engine": "^0.0.4",
19207
- "@tscircuit/props": "^0.0.421",
19240
+ "@tscircuit/props": "^0.0.423",
19208
19241
  "@tscircuit/schematic-autolayout": "^0.0.6",
19209
19242
  "@tscircuit/schematic-match-adapt": "^0.0.16",
19210
19243
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
@@ -19728,6 +19761,7 @@ export {
19728
19761
  Group6 as Group,
19729
19762
  Hole,
19730
19763
  Inductor,
19764
+ Interconnect,
19731
19765
  Jumper,
19732
19766
  Keepout,
19733
19767
  Led,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.891",
4
+ "version": "0.0.892",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "@tscircuit/math-utils": "^0.0.29",
46
46
  "@tscircuit/miniflex": "^0.0.4",
47
47
  "@tscircuit/ngspice-spice-engine": "^0.0.4",
48
- "@tscircuit/props": "^0.0.421",
48
+ "@tscircuit/props": "^0.0.423",
49
49
  "@tscircuit/schematic-autolayout": "^0.0.6",
50
50
  "@tscircuit/schematic-match-adapt": "^0.0.16",
51
51
  "@tscircuit/schematic-trace-solver": "^v0.0.45",