@tscircuit/core 0.0.1933 → 0.0.1935
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 +11 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13856,7 +13856,8 @@ var analyzeSupplierPartOrientation = async ({
|
|
|
13856
13856
|
return analysis;
|
|
13857
13857
|
};
|
|
13858
13858
|
var NormalComponent_doInitialPartOrientationAnalysis = (component) => {
|
|
13859
|
-
if (!component.root
|
|
13859
|
+
if (!component.root) return;
|
|
13860
|
+
if (component.root.platform?.enablePartOrientationAnalysis === false) return;
|
|
13860
13861
|
if (component.root.pcbDisabled || component.props.doNotPlace) return;
|
|
13861
13862
|
if (!component.pcb_component_id) return;
|
|
13862
13863
|
const { db } = component.root;
|
|
@@ -13868,6 +13869,7 @@ var NormalComponent_doInitialPartOrientationAnalysis = (component) => {
|
|
|
13868
13869
|
pcb_component_id: component.pcb_component_id
|
|
13869
13870
|
})
|
|
13870
13871
|
];
|
|
13872
|
+
if (pcbElements.length === 0) return;
|
|
13871
13873
|
const localPin1Location = getExplicitPcbPin1Location(component.resolveFootprint()) ?? analyzePcbPin1Location(
|
|
13872
13874
|
getUnrotatedLocalPcbElements({
|
|
13873
13875
|
component,
|
|
@@ -53752,7 +53754,8 @@ var getBusesForSimpleRouteJson = ({
|
|
|
53752
53754
|
buses,
|
|
53753
53755
|
sourceTraces,
|
|
53754
53756
|
subcircuitId,
|
|
53755
|
-
planeTerminatedSourceTraceLayers
|
|
53757
|
+
planeTerminatedSourceTraceLayers,
|
|
53758
|
+
preservedSourceTraceIds
|
|
53756
53759
|
}) => {
|
|
53757
53760
|
const declaredSrjBuses = [];
|
|
53758
53761
|
for (const bus of buses) {
|
|
@@ -53768,6 +53771,7 @@ var getBusesForSimpleRouteJson = ({
|
|
|
53768
53771
|
busSourceTraces,
|
|
53769
53772
|
traceNameOrPortSelector
|
|
53770
53773
|
});
|
|
53774
|
+
if (preservedSourceTraceIds?.has(sourceTraceId)) return [];
|
|
53771
53775
|
return getBusSrjConnectionNamesOrThrow({
|
|
53772
53776
|
srjConnections,
|
|
53773
53777
|
bus,
|
|
@@ -53781,6 +53785,7 @@ var getBusesForSimpleRouteJson = ({
|
|
|
53781
53785
|
`Bus "${bus.name}" resolves multiple entries to one trace`
|
|
53782
53786
|
);
|
|
53783
53787
|
}
|
|
53788
|
+
if (connectionNames.length === 0) continue;
|
|
53784
53789
|
declaredSrjBuses.push({
|
|
53785
53790
|
busId: bus.name,
|
|
53786
53791
|
name: bus.name,
|
|
@@ -54693,7 +54698,8 @@ var getSimpleRouteJsonFromCircuitJson = ({
|
|
|
54693
54698
|
buses,
|
|
54694
54699
|
sourceTraces: db.source_trace.list(),
|
|
54695
54700
|
subcircuitId: subcircuit_id,
|
|
54696
|
-
planeTerminatedSourceTraceLayers
|
|
54701
|
+
planeTerminatedSourceTraceLayers,
|
|
54702
|
+
preservedSourceTraceIds: sourceTraceIdsAlreadyPreservedAsSrjTraces
|
|
54697
54703
|
});
|
|
54698
54704
|
if (subcircuit_id) {
|
|
54699
54705
|
const pointIdToConn = /* @__PURE__ */ new Map();
|
|
@@ -63354,7 +63360,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
63354
63360
|
var package_default = {
|
|
63355
63361
|
name: "@tscircuit/core",
|
|
63356
63362
|
type: "module",
|
|
63357
|
-
version: "0.0.
|
|
63363
|
+
version: "0.0.1934",
|
|
63358
63364
|
types: "dist/index.d.ts",
|
|
63359
63365
|
main: "dist/index.js",
|
|
63360
63366
|
module: "dist/index.js",
|
|
@@ -63390,7 +63396,7 @@ var package_default = {
|
|
|
63390
63396
|
"@tscircuit/bga-fanout-solver": "github:tscircuit/bga-fanout-solver#247c835cb8d69b65e53891dcf869731079415b39",
|
|
63391
63397
|
"@tscircuit/bus-lanes-solver": "github:tscircuit/bus-lanes-solver#0bc8d071241b18a3e7465a878881abe4998f6384",
|
|
63392
63398
|
"@tscircuit/capacity-autorouter": "^0.0.900",
|
|
63393
|
-
"@tscircuit/checks": "^0.0.
|
|
63399
|
+
"@tscircuit/checks": "^0.0.200",
|
|
63394
63400
|
"@tscircuit/circuit-json-util": "^0.0.114",
|
|
63395
63401
|
"@tscircuit/common": "^0.0.20",
|
|
63396
63402
|
"@tscircuit/copper-pour-solver": "^0.0.54",
|
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.1935",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@tscircuit/bga-fanout-solver": "github:tscircuit/bga-fanout-solver#247c835cb8d69b65e53891dcf869731079415b39",
|
|
38
38
|
"@tscircuit/bus-lanes-solver": "github:tscircuit/bus-lanes-solver#0bc8d071241b18a3e7465a878881abe4998f6384",
|
|
39
39
|
"@tscircuit/capacity-autorouter": "^0.0.900",
|
|
40
|
-
"@tscircuit/checks": "^0.0.
|
|
40
|
+
"@tscircuit/checks": "^0.0.200",
|
|
41
41
|
"@tscircuit/circuit-json-util": "^0.0.114",
|
|
42
42
|
"@tscircuit/common": "^0.0.20",
|
|
43
43
|
"@tscircuit/copper-pour-solver": "^0.0.54",
|