@tscircuit/core 0.0.345 → 0.0.347
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 +2 -0
- package/dist/index.js +9 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ interface AutoroutingProgressEvent {
|
|
|
179
179
|
subcircuit_id: string;
|
|
180
180
|
componentDisplayName: string;
|
|
181
181
|
progress: number;
|
|
182
|
+
iterationsPerSecond?: number;
|
|
182
183
|
debugGraphics?: any;
|
|
183
184
|
}
|
|
184
185
|
interface AutoroutingEndEvent {
|
|
@@ -11139,6 +11140,7 @@ type AutorouterProgressEvent = {
|
|
|
11139
11140
|
steps: number;
|
|
11140
11141
|
progress: number;
|
|
11141
11142
|
phase?: string;
|
|
11143
|
+
iterationsPerSecond?: number;
|
|
11142
11144
|
debugGraphics?: GraphicsObject;
|
|
11143
11145
|
};
|
|
11144
11146
|
type AutorouterEvent = AutorouterCompleteEvent | AutorouterErrorEvent | AutorouterProgressEvent;
|
package/dist/index.js
CHANGED
|
@@ -5221,12 +5221,14 @@ var CapacityMeshAutorouter = class {
|
|
|
5221
5221
|
while (Date.now() - startTime < 250 && !this.solver.failed && !this.solver.solved) {
|
|
5222
5222
|
this.solver.step();
|
|
5223
5223
|
}
|
|
5224
|
+
const iterationsPerSecond = (this.solver.iterations - startIterations) / (Date.now() - startTime) * 1e3;
|
|
5224
5225
|
this.cycleCount++;
|
|
5225
5226
|
const debugGraphics = this.solver.activeSolver?.visualize() || void 0;
|
|
5226
5227
|
const progress = this.solver.progress;
|
|
5227
5228
|
this.emitEvent({
|
|
5228
5229
|
type: "progress",
|
|
5229
5230
|
steps: this.cycleCount,
|
|
5231
|
+
iterationsPerSecond,
|
|
5230
5232
|
progress,
|
|
5231
5233
|
phase: this.solver.getCurrentPhase(),
|
|
5232
5234
|
debugGraphics
|
|
@@ -5907,6 +5909,7 @@ var Group = class extends NormalComponent {
|
|
|
5907
5909
|
}
|
|
5908
5910
|
}
|
|
5909
5911
|
_startAsyncAutorouting() {
|
|
5912
|
+
if (this._hasStartedAsyncAutorouting) return;
|
|
5910
5913
|
this._hasStartedAsyncAutorouting = true;
|
|
5911
5914
|
if (this._getAutorouterConfig().local) {
|
|
5912
5915
|
this._queueAsyncEffect(
|
|
@@ -5987,6 +5990,10 @@ var Group = class extends NormalComponent {
|
|
|
5987
5990
|
const { db } = this.root;
|
|
5988
5991
|
for (const pcb_trace of output_pcb_traces) {
|
|
5989
5992
|
pcb_trace.subcircuit_id = this.subcircuit_id;
|
|
5993
|
+
if (pcb_trace.connection_name) {
|
|
5994
|
+
const sourceTraceId = pcb_trace.connection_name;
|
|
5995
|
+
pcb_trace.source_trace_id = sourceTraceId;
|
|
5996
|
+
}
|
|
5990
5997
|
db.pcb_trace.insert(pcb_trace);
|
|
5991
5998
|
}
|
|
5992
5999
|
for (const pcb_trace of output_pcb_traces) {
|
|
@@ -7257,7 +7264,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
7257
7264
|
var package_default = {
|
|
7258
7265
|
name: "@tscircuit/core",
|
|
7259
7266
|
type: "module",
|
|
7260
|
-
version: "0.0.
|
|
7267
|
+
version: "0.0.346",
|
|
7261
7268
|
types: "dist/index.d.ts",
|
|
7262
7269
|
main: "dist/index.js",
|
|
7263
7270
|
module: "dist/index.js",
|
|
@@ -7309,7 +7316,7 @@ var package_default = {
|
|
|
7309
7316
|
},
|
|
7310
7317
|
dependencies: {
|
|
7311
7318
|
"@lume/kiwi": "^0.4.3",
|
|
7312
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
7319
|
+
"@tscircuit/capacity-autorouter": "^0.0.17",
|
|
7313
7320
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
7314
7321
|
"@tscircuit/math-utils": "^0.0.9",
|
|
7315
7322
|
"@tscircuit/props": "^0.0.159",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.347",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@lume/kiwi": "^0.4.3",
|
|
56
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
56
|
+
"@tscircuit/capacity-autorouter": "^0.0.17",
|
|
57
57
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
58
58
|
"@tscircuit/math-utils": "^0.0.9",
|
|
59
59
|
"@tscircuit/props": "^0.0.159",
|