@tscircuit/core 0.0.850 → 0.0.852

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
@@ -2190,6 +2190,7 @@ declare class Board extends Group<typeof boardProps> {
2190
2190
  }> | undefined;
2191
2191
  pcbWidth?: number | undefined;
2192
2192
  pcbHeight?: number | undefined;
2193
+ minTraceWidth?: number | undefined;
2193
2194
  schWidth?: number | undefined;
2194
2195
  schHeight?: number | undefined;
2195
2196
  pcbLayout?: {
@@ -2310,17 +2311,6 @@ declare class Board extends Group<typeof boardProps> {
2310
2311
  } | undefined;
2311
2312
  routingDisabled?: boolean | undefined;
2312
2313
  defaultTraceWidth?: number | undefined;
2313
- minTraceWidth?: number | undefined;
2314
- pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
2315
- autorouter?: _tscircuit_props.AutorouterProp | undefined;
2316
- circuitJson?: any[] | undefined;
2317
- schAutoLayoutEnabled?: boolean | undefined;
2318
- schTraceAutoLabelEnabled?: boolean | undefined;
2319
- schMaxTraceDistance?: number | undefined;
2320
- partsEngine?: _tscircuit_props.PartsEngine | undefined;
2321
- square?: boolean | undefined;
2322
- emptyArea?: string | undefined;
2323
- filledArea?: string | undefined;
2324
2314
  pcbGrid?: boolean | undefined;
2325
2315
  pcbGridCols?: string | number | undefined;
2326
2316
  pcbGridRows?: string | number | undefined;
@@ -2359,12 +2349,22 @@ declare class Board extends Group<typeof boardProps> {
2359
2349
  schGap?: string | number | undefined;
2360
2350
  schPack?: boolean | undefined;
2361
2351
  schMatchAdapt?: boolean | undefined;
2352
+ schAutoLayoutEnabled?: boolean | undefined;
2353
+ schTraceAutoLabelEnabled?: boolean | undefined;
2354
+ schMaxTraceDistance?: number | undefined;
2355
+ partsEngine?: _tscircuit_props.PartsEngine | undefined;
2356
+ pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
2357
+ autorouter?: _tscircuit_props.AutorouterProp | undefined;
2358
+ square?: boolean | undefined;
2359
+ emptyArea?: string | undefined;
2360
+ filledArea?: string | undefined;
2362
2361
  outline?: {
2363
2362
  x: number;
2364
2363
  y: number;
2365
2364
  }[] | undefined;
2366
2365
  outlineOffsetX?: number | undefined;
2367
2366
  outlineOffsetY?: number | undefined;
2367
+ circuitJson?: any[] | undefined;
2368
2368
  title?: string | undefined;
2369
2369
  borderRadius?: number | undefined;
2370
2370
  thickness?: number | undefined;
@@ -2494,6 +2494,7 @@ declare class Board extends Group<typeof boardProps> {
2494
2494
  }> | undefined;
2495
2495
  pcbWidth?: string | number | undefined;
2496
2496
  pcbHeight?: string | number | undefined;
2497
+ minTraceWidth?: string | number | undefined;
2497
2498
  schWidth?: string | number | undefined;
2498
2499
  schHeight?: string | number | undefined;
2499
2500
  pcbLayout?: {
@@ -2616,17 +2617,6 @@ declare class Board extends Group<typeof boardProps> {
2616
2617
  } | undefined;
2617
2618
  routingDisabled?: boolean | undefined;
2618
2619
  defaultTraceWidth?: string | number | undefined;
2619
- minTraceWidth?: string | number | undefined;
2620
- pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
2621
- autorouter?: _tscircuit_props.AutorouterProp | undefined;
2622
- circuitJson?: any[] | undefined;
2623
- schAutoLayoutEnabled?: boolean | undefined;
2624
- schTraceAutoLabelEnabled?: boolean | undefined;
2625
- schMaxTraceDistance?: string | number | undefined;
2626
- partsEngine?: _tscircuit_props.PartsEngine | undefined;
2627
- square?: boolean | undefined;
2628
- emptyArea?: string | undefined;
2629
- filledArea?: string | undefined;
2630
2620
  pcbGrid?: boolean | undefined;
2631
2621
  pcbGridCols?: string | number | undefined;
2632
2622
  pcbGridRows?: string | number | undefined;
@@ -2665,12 +2655,22 @@ declare class Board extends Group<typeof boardProps> {
2665
2655
  schGap?: string | number | undefined;
2666
2656
  schPack?: boolean | undefined;
2667
2657
  schMatchAdapt?: boolean | undefined;
2658
+ schAutoLayoutEnabled?: boolean | undefined;
2659
+ schTraceAutoLabelEnabled?: boolean | undefined;
2660
+ schMaxTraceDistance?: string | number | undefined;
2661
+ partsEngine?: _tscircuit_props.PartsEngine | undefined;
2662
+ pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
2663
+ autorouter?: _tscircuit_props.AutorouterProp | undefined;
2664
+ square?: boolean | undefined;
2665
+ emptyArea?: string | undefined;
2666
+ filledArea?: string | undefined;
2668
2667
  outline?: {
2669
2668
  x: string | number;
2670
2669
  y: string | number;
2671
2670
  }[] | undefined;
2672
2671
  outlineOffsetX?: string | number | undefined;
2673
2672
  outlineOffsetY?: string | number | undefined;
2673
+ circuitJson?: any[] | undefined;
2674
2674
  title?: string | undefined;
2675
2675
  material?: "fr4" | "fr1" | undefined;
2676
2676
  layers?: 2 | 4 | undefined;
@@ -2822,6 +2822,7 @@ declare class Panel extends Group<typeof panelProps> {
2822
2822
  schMatchAdapt: zod.ZodOptional<zod.ZodBoolean>;
2823
2823
  pcbWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2824
2824
  pcbHeight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2825
+ minTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2825
2826
  schWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2826
2827
  schHeight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2827
2828
  pcbLayout: zod.ZodOptional<zod.ZodObject<{
@@ -3345,6 +3346,7 @@ declare class Panel extends Group<typeof panelProps> {
3345
3346
  }> | undefined;
3346
3347
  pcbWidth?: number | undefined;
3347
3348
  pcbHeight?: number | undefined;
3349
+ minTraceWidth?: number | undefined;
3348
3350
  schWidth?: number | undefined;
3349
3351
  schHeight?: number | undefined;
3350
3352
  pcbLayout?: {
@@ -3590,6 +3592,7 @@ declare class Panel extends Group<typeof panelProps> {
3590
3592
  }> | undefined;
3591
3593
  pcbWidth?: string | number | undefined;
3592
3594
  pcbHeight?: string | number | undefined;
3595
+ minTraceWidth?: string | number | undefined;
3593
3596
  schWidth?: string | number | undefined;
3594
3597
  schHeight?: string | number | undefined;
3595
3598
  pcbLayout?: {
@@ -24656,6 +24659,7 @@ declare class CopperPour extends PrimitiveComponent<typeof copperPourProps> {
24656
24659
  traceMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
24657
24660
  clearance: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
24658
24661
  boardEdgeMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
24662
+ cutoutMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
24659
24663
  coveredWithSolderMask: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
24660
24664
  }, "strip", zod.ZodTypeAny, {
24661
24665
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -24666,6 +24670,7 @@ declare class CopperPour extends PrimitiveComponent<typeof copperPourProps> {
24666
24670
  traceMargin?: number | undefined;
24667
24671
  clearance?: number | undefined;
24668
24672
  boardEdgeMargin?: number | undefined;
24673
+ cutoutMargin?: number | undefined;
24669
24674
  }, {
24670
24675
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
24671
24676
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -24677,6 +24682,7 @@ declare class CopperPour extends PrimitiveComponent<typeof copperPourProps> {
24677
24682
  traceMargin?: string | number | undefined;
24678
24683
  clearance?: string | number | undefined;
24679
24684
  boardEdgeMargin?: string | number | undefined;
24685
+ cutoutMargin?: string | number | undefined;
24680
24686
  }>;
24681
24687
  };
24682
24688
  getPcbSize(): {
package/dist/index.js CHANGED
@@ -12814,6 +12814,12 @@ ${spiceString}`);
12814
12814
  group._markDirty("SimulationSpiceEngineRender");
12815
12815
  } catch (error) {
12816
12816
  debug10(`Simulation failed for engine ${engineName}: ${error}`);
12817
+ const simulationExperiment = root.db.simulation_experiment.list()[0];
12818
+ root.db.simulation_unknown_experiment_error.insert({
12819
+ simulation_experiment_id: simulationExperiment?.simulation_experiment_id,
12820
+ error_type: "simulation_unknown_experiment_error",
12821
+ message: error instanceof Error ? error.message : String(error)
12822
+ });
12817
12823
  }
12818
12824
  });
12819
12825
  }
@@ -16363,7 +16369,8 @@ var CopperPour = class extends PrimitiveComponent2 {
16363
16369
  pour_connectivity_key: sourceNet.subcircuit_connectivity_map_key || "",
16364
16370
  pad_margin: props.padMargin ?? clearance,
16365
16371
  trace_margin: props.traceMargin ?? clearance,
16366
- board_edge_margin: props.boardEdgeMargin ?? clearance
16372
+ board_edge_margin: props.boardEdgeMargin ?? clearance,
16373
+ cutout_margin: props.cutoutMargin ?? clearance
16367
16374
  });
16368
16375
  const solver = new CopperPourPipelineSolver(inputProblem);
16369
16376
  const { brep_shapes } = solver.getOutput();
@@ -17618,7 +17625,7 @@ import { identity as identity6 } from "transformation-matrix";
17618
17625
  var package_default = {
17619
17626
  name: "@tscircuit/core",
17620
17627
  type: "module",
17621
- version: "0.0.849",
17628
+ version: "0.0.851",
17622
17629
  types: "dist/index.d.ts",
17623
17630
  main: "dist/index.js",
17624
17631
  module: "dist/index.js",
@@ -17653,7 +17660,7 @@ var package_default = {
17653
17660
  "@tscircuit/checks": "^0.0.85",
17654
17661
  "@tscircuit/circuit-json-util": "^0.0.72",
17655
17662
  "@tscircuit/common": "^0.0.20",
17656
- "@tscircuit/copper-pour-solver": "^0.0.6",
17663
+ "@tscircuit/copper-pour-solver": "^0.0.12",
17657
17664
  "@tscircuit/footprinter": "^0.0.236",
17658
17665
  "@tscircuit/import-snippet": "^0.0.4",
17659
17666
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
@@ -17662,7 +17669,7 @@ var package_default = {
17662
17669
  "@tscircuit/math-utils": "^0.0.29",
17663
17670
  "@tscircuit/miniflex": "^0.0.4",
17664
17671
  "@tscircuit/ngspice-spice-engine": "^0.0.2",
17665
- "@tscircuit/props": "^0.0.394",
17672
+ "@tscircuit/props": "^0.0.396",
17666
17673
  "@tscircuit/schematic-autolayout": "^0.0.6",
17667
17674
  "@tscircuit/schematic-match-adapt": "^0.0.16",
17668
17675
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.850",
4
+ "version": "0.0.852",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "@tscircuit/checks": "^0.0.85",
37
37
  "@tscircuit/circuit-json-util": "^0.0.72",
38
38
  "@tscircuit/common": "^0.0.20",
39
- "@tscircuit/copper-pour-solver": "^0.0.6",
39
+ "@tscircuit/copper-pour-solver": "^0.0.12",
40
40
  "@tscircuit/footprinter": "^0.0.236",
41
41
  "@tscircuit/import-snippet": "^0.0.4",
42
42
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
@@ -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.2",
48
- "@tscircuit/props": "^0.0.394",
48
+ "@tscircuit/props": "^0.0.396",
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",