@tscircuit/core 0.0.1407 → 0.0.1409
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 +20 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -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.1408",
|
|
25342
25357
|
types: "dist/index.d.ts",
|
|
25343
25358
|
main: "dist/index.js",
|
|
25344
25359
|
module: "dist/index.js",
|
|
@@ -25386,7 +25401,7 @@ var package_default = {
|
|
|
25386
25401
|
"@tscircuit/matchpack": "^0.0.31",
|
|
25387
25402
|
"@tscircuit/math-utils": "^0.0.36",
|
|
25388
25403
|
"@tscircuit/miniflex": "^0.0.4",
|
|
25389
|
-
"@tscircuit/ngspice-spice-engine": "^0.0.
|
|
25404
|
+
"@tscircuit/ngspice-spice-engine": "^0.0.19",
|
|
25390
25405
|
"@tscircuit/props": "^0.0.567",
|
|
25391
25406
|
"@tscircuit/schematic-match-adapt": "^0.0.18",
|
|
25392
25407
|
"@tscircuit/schematic-trace-solver": "^0.0.91",
|
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.1409",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@tscircuit/matchpack": "^0.0.31",
|
|
50
50
|
"@tscircuit/math-utils": "^0.0.36",
|
|
51
51
|
"@tscircuit/miniflex": "^0.0.4",
|
|
52
|
-
"@tscircuit/ngspice-spice-engine": "^0.0.
|
|
52
|
+
"@tscircuit/ngspice-spice-engine": "^0.0.19",
|
|
53
53
|
"@tscircuit/props": "^0.0.567",
|
|
54
54
|
"@tscircuit/schematic-match-adapt": "^0.0.18",
|
|
55
55
|
"@tscircuit/schematic-trace-solver": "^0.0.91",
|