@tscircuit/core 0.0.1406 → 0.0.1408
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 +22 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15395,11 +15395,11 @@ var TscircuitAutorouter = class {
|
|
|
15395
15395
|
solverName = "AutoroutingPipeline1_OriginalUnravel";
|
|
15396
15396
|
} else if (autorouterVersion2 === "v3") {
|
|
15397
15397
|
solverName = "AutoroutingPipelineSolver3_HgPortPointPathing";
|
|
15398
|
-
} else if (autorouterVersion2 === "v4"
|
|
15398
|
+
} else if (autorouterVersion2 === "v4") {
|
|
15399
15399
|
solverName = "AutoroutingPipelineSolver4";
|
|
15400
15400
|
} else if (autorouterVersion2 === "v5") {
|
|
15401
15401
|
solverName = "AutoroutingPipelineSolver5";
|
|
15402
|
-
} else if (autorouterVersion2 === "v6") {
|
|
15402
|
+
} else if (autorouterVersion2 === "v6" || autorouterVersion2 === "latest") {
|
|
15403
15403
|
solverName = "AutoroutingPipelineSolver7_MultiGraph";
|
|
15404
15404
|
} else if (useLaserPrefabSolver) {
|
|
15405
15405
|
solverName = "AutoroutingPipelineSolver8";
|
|
@@ -15408,7 +15408,7 @@ var TscircuitAutorouter = class {
|
|
|
15408
15408
|
} else if (useAssignableSolver) {
|
|
15409
15409
|
solverName = "AssignableAutoroutingPipeline2";
|
|
15410
15410
|
} else {
|
|
15411
|
-
solverName = "
|
|
15411
|
+
solverName = "AutoroutingPipelineSolver7_MultiGraph";
|
|
15412
15412
|
}
|
|
15413
15413
|
const SolverClass = SOLVERS[solverName];
|
|
15414
15414
|
this.solver = new SolverClass(input, {
|
|
@@ -19926,6 +19926,16 @@ function schematicTextToTextBox(text, options = {}) {
|
|
|
19926
19926
|
};
|
|
19927
19927
|
}
|
|
19928
19928
|
|
|
19929
|
+
// lib/components/primitive-components/Group/Group_doInitialSchematicTraceRender/getSchematicPortSelector.ts
|
|
19930
|
+
var getSchematicPortSelector = ({
|
|
19931
|
+
componentName,
|
|
19932
|
+
schematicPort,
|
|
19933
|
+
sourcePort
|
|
19934
|
+
}) => {
|
|
19935
|
+
const pinIdentifier = schematicPort.pin_number ?? sourcePort?.name ?? sourcePort?.port_hints?.[0];
|
|
19936
|
+
return `${componentName}.${pinIdentifier ?? schematicPort.schematic_port_id}`;
|
|
19937
|
+
};
|
|
19938
|
+
|
|
19929
19939
|
// lib/components/primitive-components/Group/Group_doInitialSchematicTraceRender/createSchematicTraceSolverInputProblem.ts
|
|
19930
19940
|
var DEFAULT_MAX_MSP_PAIR_DISTANCE = 2.4;
|
|
19931
19941
|
var SCHEMATIC_RAIL_NET_LABEL_HEIGHT = 0.42;
|
|
@@ -19985,9 +19995,14 @@ function createSchematicTraceSolverInputProblem(group) {
|
|
|
19985
19995
|
schematic_component_id: schematicComponent.schematic_component_id
|
|
19986
19996
|
});
|
|
19987
19997
|
for (const schematicPort of schematicPorts) {
|
|
19988
|
-
const
|
|
19989
|
-
|
|
19990
|
-
|
|
19998
|
+
const sourcePort = db.source_port.get(schematicPort.source_port_id);
|
|
19999
|
+
const selector = getSchematicPortSelector({
|
|
20000
|
+
componentName: sourceComponent?.name ?? schematicComponent.schematic_component_id,
|
|
20001
|
+
schematicPort,
|
|
20002
|
+
sourcePort
|
|
20003
|
+
});
|
|
20004
|
+
pinIdToSchematicPortId.set(selector, schematicPort.schematic_port_id);
|
|
20005
|
+
schematicPortIdToPinId.set(schematicPort.schematic_port_id, selector);
|
|
19991
20006
|
}
|
|
19992
20007
|
for (const schematicPort of schematicPorts) {
|
|
19993
20008
|
const pinId = schematicPortIdToPinId.get(schematicPort.schematic_port_id);
|
|
@@ -25338,7 +25353,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
25338
25353
|
var package_default = {
|
|
25339
25354
|
name: "@tscircuit/core",
|
|
25340
25355
|
type: "module",
|
|
25341
|
-
version: "0.0.
|
|
25356
|
+
version: "0.0.1407",
|
|
25342
25357
|
types: "dist/index.d.ts",
|
|
25343
25358
|
main: "dist/index.js",
|
|
25344
25359
|
module: "dist/index.js",
|