@tscircuit/core 0.0.366 → 0.0.367

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
@@ -1939,6 +1939,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
1939
1939
  bypassFor: zod.ZodOptional<zod.ZodString>;
1940
1940
  bypassTo: zod.ZodOptional<zod.ZodString>;
1941
1941
  maxDecouplingTraceLength: zod.ZodOptional<zod.ZodNumber>;
1942
+ connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "pin2", "pos", "neg", "anode", "cathode"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
1942
1943
  }>, "strip", zod.ZodTypeAny, {
1943
1944
  name: string;
1944
1945
  capacitance: number;
@@ -2009,6 +2010,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
2009
2010
  } | undefined;
2010
2011
  children?: any;
2011
2012
  symbolName?: string | undefined;
2013
+ connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
2012
2014
  maxVoltageRating?: number | undefined;
2013
2015
  decouplingFor?: string | undefined;
2014
2016
  decouplingTo?: string | undefined;
@@ -2085,6 +2087,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
2085
2087
  } | undefined;
2086
2088
  children?: any;
2087
2089
  symbolName?: string | undefined;
2090
+ connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
2088
2091
  maxVoltageRating?: string | number | undefined;
2089
2092
  schShowRatings?: boolean | undefined;
2090
2093
  polarized?: boolean | undefined;
@@ -5006,6 +5009,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
5006
5009
  pullupTo: zod.ZodOptional<zod.ZodString>;
5007
5010
  pulldownFor: zod.ZodOptional<zod.ZodString>;
5008
5011
  pulldownTo: zod.ZodOptional<zod.ZodString>;
5012
+ connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "pin2", "pos", "neg"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
5009
5013
  }>, "strip", zod.ZodTypeAny, {
5010
5014
  name: string;
5011
5015
  resistance: number;
@@ -5074,6 +5078,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
5074
5078
  } | undefined;
5075
5079
  children?: any;
5076
5080
  symbolName?: string | undefined;
5081
+ connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
5077
5082
  pullupFor?: string | undefined;
5078
5083
  pullupTo?: string | undefined;
5079
5084
  pulldownFor?: string | undefined;
@@ -5148,6 +5153,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
5148
5153
  } | undefined;
5149
5154
  children?: any;
5150
5155
  symbolName?: string | undefined;
5156
+ connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
5151
5157
  pullupFor?: string | undefined;
5152
5158
  pullupTo?: string | undefined;
5153
5159
  pulldownFor?: string | undefined;
package/dist/index.js CHANGED
@@ -6401,6 +6401,7 @@ var Capacitor = class extends NormalComponent {
6401
6401
  })
6402
6402
  );
6403
6403
  }
6404
+ this._createTracesFromConnectionsProp();
6404
6405
  }
6405
6406
  doInitialSourceRender() {
6406
6407
  const { db } = this.root;
@@ -6646,6 +6647,7 @@ var Resistor = class extends NormalComponent {
6646
6647
  })
6647
6648
  );
6648
6649
  }
6650
+ this._createTracesFromConnectionsProp();
6649
6651
  }
6650
6652
  doInitialSourceRender() {
6651
6653
  const { db } = this.root;
@@ -7431,7 +7433,7 @@ import { identity as identity4 } from "transformation-matrix";
7431
7433
  var package_default = {
7432
7434
  name: "@tscircuit/core",
7433
7435
  type: "module",
7434
- version: "0.0.365",
7436
+ version: "0.0.366",
7435
7437
  types: "dist/index.d.ts",
7436
7438
  main: "dist/index.js",
7437
7439
  module: "dist/index.js",
@@ -7488,7 +7490,7 @@ var package_default = {
7488
7490
  "@tscircuit/circuit-json-util": "^0.0.45",
7489
7491
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
7490
7492
  "@tscircuit/math-utils": "^0.0.12",
7491
- "@tscircuit/props": "^0.0.170",
7493
+ "@tscircuit/props": "^0.0.171",
7492
7494
  "@tscircuit/schematic-autolayout": "^0.0.6",
7493
7495
  "@tscircuit/soup-util": "^0.0.41",
7494
7496
  "circuit-json": "^0.0.153",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.366",
4
+ "version": "0.0.367",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -58,7 +58,7 @@
58
58
  "@tscircuit/circuit-json-util": "^0.0.45",
59
59
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
60
60
  "@tscircuit/math-utils": "^0.0.12",
61
- "@tscircuit/props": "^0.0.170",
61
+ "@tscircuit/props": "^0.0.171",
62
62
  "@tscircuit/schematic-autolayout": "^0.0.6",
63
63
  "@tscircuit/soup-util": "^0.0.41",
64
64
  "circuit-json": "^0.0.153",