@tscircuit/core 0.0.166 → 0.0.168

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
@@ -1246,6 +1246,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
1246
1246
  symbolName: zod.ZodOptional<zod.ZodString>;
1247
1247
  }>, {
1248
1248
  capacitance: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
1249
+ polarized: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
1249
1250
  decouplingFor: zod.ZodOptional<zod.ZodString>;
1250
1251
  decouplingTo: zod.ZodOptional<zod.ZodString>;
1251
1252
  bypassFor: zod.ZodOptional<zod.ZodString>;
@@ -1253,6 +1254,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
1253
1254
  }>, "strip", zod.ZodTypeAny, {
1254
1255
  name: string;
1255
1256
  capacitance: number;
1257
+ polarized: boolean;
1256
1258
  pcbX?: number | undefined;
1257
1259
  pcbY?: number | undefined;
1258
1260
  pcbRotation?: number | undefined;
@@ -1392,6 +1394,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
1392
1394
  } | undefined;
1393
1395
  children?: any;
1394
1396
  symbolName?: string | undefined;
1397
+ polarized?: boolean | undefined;
1395
1398
  decouplingFor?: string | undefined;
1396
1399
  decouplingTo?: string | undefined;
1397
1400
  bypassFor?: string | undefined;
package/dist/index.js CHANGED
@@ -2912,7 +2912,14 @@ var NormalComponent = class extends PrimitiveComponent {
2912
2912
  const source_component = db.source_component.get(this.source_component_id);
2913
2913
  if (!source_component) return;
2914
2914
  if (source_component.supplier_part_numbers) return;
2915
- const supplierPartNumbersMaybePromise = partsEngine.findPart(source_component);
2915
+ let footprinterString;
2916
+ if (this.props.footprint && typeof this.props.footprint === "string") {
2917
+ footprinterString = this.props.footprint;
2918
+ }
2919
+ const supplierPartNumbersMaybePromise = partsEngine.findPart({
2920
+ sourceComponent: source_component,
2921
+ footprinterString
2922
+ });
2916
2923
  if (!(supplierPartNumbersMaybePromise instanceof Promise)) {
2917
2924
  db.source_component.update(this.source_component_id, {
2918
2925
  supplier_part_numbers: supplierPartNumbersMaybePromise
@@ -3554,7 +3561,7 @@ var pushEdgesOfSchematicTraceToPreventOverlap = ({
3554
3561
  [mySegment.from, mySegment.to],
3555
3562
  [otherEdge.from, otherEdge.to],
3556
3563
  {
3557
- lineThickness: 0.01
3564
+ lineThickness: 0.05
3558
3565
  }
3559
3566
  )
3560
3567
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.166",
4
+ "version": "0.0.168",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -40,9 +40,9 @@
40
40
  "@tscircuit/footprinter": "^0.0.77",
41
41
  "@tscircuit/infgrid-ijump-astar": "^0.0.24",
42
42
  "@tscircuit/math-utils": "^0.0.4",
43
- "@tscircuit/props": "^0.0.91",
44
- "@tscircuit/soup-util": "^0.0.40",
43
+ "@tscircuit/props": "^0.0.93",
45
44
  "@tscircuit/schematic-autolayout": "^0.0.6",
45
+ "@tscircuit/soup-util": "^0.0.40",
46
46
  "circuit-json": "^0.0.99",
47
47
  "circuit-json-to-connectivity-map": "^0.0.17",
48
48
  "circuit-to-svg": "^0.0.71",