@tscircuit/core 0.0.1083 → 0.0.1084
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.js +37 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3749,7 +3749,23 @@ function Trace_doInitialPcbTraceRender(trace) {
|
|
|
3749
3749
|
if (!subcircuit._shouldUseTraceByTraceRouting()) {
|
|
3750
3750
|
return;
|
|
3751
3751
|
}
|
|
3752
|
-
|
|
3752
|
+
let allPortsFound;
|
|
3753
|
+
let ports;
|
|
3754
|
+
try {
|
|
3755
|
+
const connectedPorts = trace._findConnectedPorts();
|
|
3756
|
+
allPortsFound = connectedPorts.allPortsFound;
|
|
3757
|
+
ports = connectedPorts.ports ?? [];
|
|
3758
|
+
} catch (error) {
|
|
3759
|
+
if (error instanceof TraceConnectionError) {
|
|
3760
|
+
db.source_trace_not_connected_error.insert({
|
|
3761
|
+
...error.errorData,
|
|
3762
|
+
error_type: "source_trace_not_connected_error"
|
|
3763
|
+
});
|
|
3764
|
+
trace._couldNotFindPort = true;
|
|
3765
|
+
return;
|
|
3766
|
+
}
|
|
3767
|
+
throw error;
|
|
3768
|
+
}
|
|
3753
3769
|
const portsConnectedOnPcbViaNet = [];
|
|
3754
3770
|
if (!allPortsFound) return;
|
|
3755
3771
|
const portsWithoutMatchedPcbPrimitive = [];
|
|
@@ -4155,7 +4171,25 @@ function Trace_doInitialPcbManualTraceRender(trace) {
|
|
|
4155
4171
|
const hasPcbPath = props.pcbPath !== void 0;
|
|
4156
4172
|
const wantsStraightLine = Boolean(props.pcbStraightLine);
|
|
4157
4173
|
if (!hasPcbPath && !wantsStraightLine) return;
|
|
4158
|
-
|
|
4174
|
+
let allPortsFound;
|
|
4175
|
+
let ports;
|
|
4176
|
+
let portsWithSelectors;
|
|
4177
|
+
try {
|
|
4178
|
+
const connectedPorts = trace._findConnectedPorts();
|
|
4179
|
+
allPortsFound = connectedPorts.allPortsFound;
|
|
4180
|
+
ports = connectedPorts.ports ?? [];
|
|
4181
|
+
portsWithSelectors = connectedPorts.portsWithSelectors ?? [];
|
|
4182
|
+
} catch (error) {
|
|
4183
|
+
if (error instanceof TraceConnectionError) {
|
|
4184
|
+
db.source_trace_not_connected_error.insert({
|
|
4185
|
+
...error.errorData,
|
|
4186
|
+
error_type: "source_trace_not_connected_error"
|
|
4187
|
+
});
|
|
4188
|
+
trace._couldNotFindPort = true;
|
|
4189
|
+
return;
|
|
4190
|
+
}
|
|
4191
|
+
throw error;
|
|
4192
|
+
}
|
|
4159
4193
|
if (!allPortsFound) return;
|
|
4160
4194
|
const portsWithoutMatchedPcbPrimitive = [];
|
|
4161
4195
|
for (const port of ports) {
|
|
@@ -18134,7 +18168,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
18134
18168
|
var package_default = {
|
|
18135
18169
|
name: "@tscircuit/core",
|
|
18136
18170
|
type: "module",
|
|
18137
|
-
version: "0.0.
|
|
18171
|
+
version: "0.0.1083",
|
|
18138
18172
|
types: "dist/index.d.ts",
|
|
18139
18173
|
main: "dist/index.js",
|
|
18140
18174
|
module: "dist/index.js",
|