@tscircuit/core 0.0.933 → 0.0.934

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
@@ -12,6 +12,7 @@ import { Matrix } from 'transformation-matrix';
12
12
  import { CircuitJsonUtilObjects } from '@tscircuit/circuit-json-util';
13
13
  import { PackSolver2 } from 'calculate-packing';
14
14
  import { AutoroutingPipelineSolver, AssignableViaAutoroutingPipelineSolver } from '@tscircuit/capacity-autorouter';
15
+ import { CopperPourPipelineSolver } from '@tscircuit/copper-pour-solver';
15
16
  import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
16
17
  import { GraphicsObject } from 'graphics-debug';
17
18
 
@@ -127,6 +128,7 @@ declare const SOLVERS: {
127
128
  PackSolver2: typeof PackSolver2;
128
129
  AutoroutingPipelineSolver: typeof AutoroutingPipelineSolver;
129
130
  AssignableViaAutoroutingPipelineSolver: typeof AssignableViaAutoroutingPipelineSolver;
131
+ CopperPourPipelineSolver: typeof CopperPourPipelineSolver;
130
132
  };
131
133
  type SolverName = keyof typeof SOLVERS;
132
134
 
package/dist/index.js CHANGED
@@ -9563,10 +9563,12 @@ import {
9563
9563
  AutoroutingPipelineSolver,
9564
9564
  AssignableViaAutoroutingPipelineSolver
9565
9565
  } from "@tscircuit/capacity-autorouter";
9566
+ import { CopperPourPipelineSolver } from "@tscircuit/copper-pour-solver";
9566
9567
  var SOLVERS = {
9567
9568
  PackSolver2,
9568
9569
  AutoroutingPipelineSolver,
9569
- AssignableViaAutoroutingPipelineSolver
9570
+ AssignableViaAutoroutingPipelineSolver,
9571
+ CopperPourPipelineSolver
9570
9572
  };
9571
9573
 
9572
9574
  // lib/utils/autorouting/CapacityMeshAutorouter.ts
@@ -18188,7 +18190,7 @@ var Via = class extends PrimitiveComponent2 {
18188
18190
  // lib/components/primitive-components/CopperPour/CopperPour.ts
18189
18191
  import { copperPourProps } from "@tscircuit/props";
18190
18192
  import {
18191
- CopperPourPipelineSolver,
18193
+ CopperPourPipelineSolver as CopperPourPipelineSolver2,
18192
18194
  convertCircuitJsonToInputProblem
18193
18195
  } from "@tscircuit/copper-pour-solver";
18194
18196
  var CopperPour = class extends PrimitiveComponent2 {
@@ -18229,7 +18231,12 @@ var CopperPour = class extends PrimitiveComponent2 {
18229
18231
  board_edge_margin: props.boardEdgeMargin ?? clearance,
18230
18232
  cutout_margin: props.cutoutMargin ?? clearance
18231
18233
  });
18232
- const solver = new CopperPourPipelineSolver(inputProblem);
18234
+ const solver = new CopperPourPipelineSolver2(inputProblem);
18235
+ this.root.emit("solver:started", {
18236
+ solverName: "CopperPourPipelineSolver",
18237
+ solverParams: inputProblem,
18238
+ componentName: this.props.name
18239
+ });
18233
18240
  const { brep_shapes } = solver.getOutput();
18234
18241
  const coveredWithSolderMask = props.coveredWithSolderMask ?? false;
18235
18242
  for (const brep_shape of brep_shapes) {
@@ -19660,7 +19667,7 @@ import { identity as identity5 } from "transformation-matrix";
19660
19667
  var package_default = {
19661
19668
  name: "@tscircuit/core",
19662
19669
  type: "module",
19663
- version: "0.0.932",
19670
+ version: "0.0.933",
19664
19671
  types: "dist/index.d.ts",
19665
19672
  main: "dist/index.js",
19666
19673
  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.933",
4
+ "version": "0.0.934",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",