@tscircuit/cli 0.1.1838 → 0.1.1839
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.
|
@@ -12139,7 +12139,9 @@ class AutorouterDiagnostics {
|
|
|
12139
12139
|
};
|
|
12140
12140
|
if (this.options.enabled && !this.hasWrittenPlacementSnapshot) {
|
|
12141
12141
|
const placementCircuitJson = this.getCurrentCircuitJson().filter((element) => !this.isRouteElement(element));
|
|
12142
|
-
this.writePngSnapshot("placement-unrouted.png", placementCircuitJson
|
|
12142
|
+
this.writePngSnapshot("placement-unrouted.png", placementCircuitJson, {
|
|
12143
|
+
shouldDrawRatsNest: true
|
|
12144
|
+
});
|
|
12143
12145
|
this.hasWrittenPlacementSnapshot = true;
|
|
12144
12146
|
}
|
|
12145
12147
|
if (this.options.enabled) {
|
|
@@ -12387,9 +12389,9 @@ class AutorouterDiagnostics {
|
|
|
12387
12389
|
this.logArtifact(filePath);
|
|
12388
12390
|
return filePath;
|
|
12389
12391
|
}
|
|
12390
|
-
writePngSnapshot(fileName, circuitJson) {
|
|
12392
|
+
writePngSnapshot(fileName, circuitJson, options) {
|
|
12391
12393
|
try {
|
|
12392
|
-
const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson);
|
|
12394
|
+
const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson, options);
|
|
12393
12395
|
const png = convertSvgToPngBuffer(pcbSvg);
|
|
12394
12396
|
const debugDir = path2.resolve(this.options.debugDir ?? DEFAULT_DEBUG_DIR);
|
|
12395
12397
|
fs2.mkdirSync(debugDir, { recursive: true });
|
package/dist/cli/main.js
CHANGED
|
@@ -135252,7 +135252,7 @@ var import_perfect_cli = __toESM2(require_dist2(), 1);
|
|
|
135252
135252
|
// lib/getVersion.ts
|
|
135253
135253
|
import { createRequire as createRequire2 } from "node:module";
|
|
135254
135254
|
// package.json
|
|
135255
|
-
var version = "0.1.
|
|
135255
|
+
var version = "0.1.1838";
|
|
135256
135256
|
var package_default = {
|
|
135257
135257
|
name: "@tscircuit/cli",
|
|
135258
135258
|
version,
|
|
@@ -139683,7 +139683,9 @@ class AutorouterDiagnostics {
|
|
|
139683
139683
|
};
|
|
139684
139684
|
if (this.options.enabled && !this.hasWrittenPlacementSnapshot) {
|
|
139685
139685
|
const placementCircuitJson = this.getCurrentCircuitJson().filter((element) => !this.isRouteElement(element));
|
|
139686
|
-
this.writePngSnapshot("placement-unrouted.png", placementCircuitJson
|
|
139686
|
+
this.writePngSnapshot("placement-unrouted.png", placementCircuitJson, {
|
|
139687
|
+
shouldDrawRatsNest: true
|
|
139688
|
+
});
|
|
139687
139689
|
this.hasWrittenPlacementSnapshot = true;
|
|
139688
139690
|
}
|
|
139689
139691
|
if (this.options.enabled) {
|
|
@@ -139931,9 +139933,9 @@ class AutorouterDiagnostics {
|
|
|
139931
139933
|
this.logArtifact(filePath);
|
|
139932
139934
|
return filePath;
|
|
139933
139935
|
}
|
|
139934
|
-
writePngSnapshot(fileName, circuitJson) {
|
|
139936
|
+
writePngSnapshot(fileName, circuitJson, options) {
|
|
139935
139937
|
try {
|
|
139936
|
-
const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson);
|
|
139938
|
+
const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson, options);
|
|
139937
139939
|
const png = convertSvgToPngBuffer(pcbSvg);
|
|
139938
139940
|
const debugDir = path17.resolve(this.options.debugDir ?? DEFAULT_DEBUG_DIR);
|
|
139939
139941
|
fs17.mkdirSync(debugDir, { recursive: true });
|
|
@@ -3087,7 +3087,9 @@ class AutorouterDiagnostics {
|
|
|
3087
3087
|
};
|
|
3088
3088
|
if (this.options.enabled && !this.hasWrittenPlacementSnapshot) {
|
|
3089
3089
|
const placementCircuitJson = this.getCurrentCircuitJson().filter((element) => !this.isRouteElement(element));
|
|
3090
|
-
this.writePngSnapshot("placement-unrouted.png", placementCircuitJson
|
|
3090
|
+
this.writePngSnapshot("placement-unrouted.png", placementCircuitJson, {
|
|
3091
|
+
shouldDrawRatsNest: true
|
|
3092
|
+
});
|
|
3091
3093
|
this.hasWrittenPlacementSnapshot = true;
|
|
3092
3094
|
}
|
|
3093
3095
|
if (this.options.enabled) {
|
|
@@ -3335,9 +3337,9 @@ class AutorouterDiagnostics {
|
|
|
3335
3337
|
this.logArtifact(filePath);
|
|
3336
3338
|
return filePath;
|
|
3337
3339
|
}
|
|
3338
|
-
writePngSnapshot(fileName, circuitJson) {
|
|
3340
|
+
writePngSnapshot(fileName, circuitJson, options) {
|
|
3339
3341
|
try {
|
|
3340
|
-
const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson);
|
|
3342
|
+
const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson, options);
|
|
3341
3343
|
const png = convertSvgToPngBuffer(pcbSvg);
|
|
3342
3344
|
const debugDir = path2.resolve(this.options.debugDir ?? DEFAULT_DEBUG_DIR);
|
|
3343
3345
|
fs2.mkdirSync(debugDir, { recursive: true });
|
package/dist/lib/index.js
CHANGED
|
@@ -65757,7 +65757,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
65757
65757
|
}));
|
|
65758
65758
|
};
|
|
65759
65759
|
// package.json
|
|
65760
|
-
var version = "0.1.
|
|
65760
|
+
var version = "0.1.1838";
|
|
65761
65761
|
var package_default = {
|
|
65762
65762
|
name: "@tscircuit/cli",
|
|
65763
65763
|
version,
|