@tscircuit/core 0.0.684 → 0.0.686
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 +24 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1548,9 +1548,15 @@ var Net = class extends PrimitiveComponent2 {
|
|
|
1548
1548
|
doInitialSourceRender() {
|
|
1549
1549
|
const { db } = this.root;
|
|
1550
1550
|
const { _parsedProps: props } = this;
|
|
1551
|
+
const isGround = props.name.startsWith("GND");
|
|
1552
|
+
const isPositiveVoltageSource = props.name.startsWith("V");
|
|
1551
1553
|
const net = db.source_net.insert({
|
|
1552
1554
|
name: props.name,
|
|
1553
|
-
member_source_group_ids: []
|
|
1555
|
+
member_source_group_ids: [],
|
|
1556
|
+
is_ground: isGround,
|
|
1557
|
+
is_power: isPositiveVoltageSource,
|
|
1558
|
+
// @ts-ignore
|
|
1559
|
+
is_positive_voltage_source: isPositiveVoltageSource
|
|
1554
1560
|
});
|
|
1555
1561
|
this.source_net_id = net.source_net_id;
|
|
1556
1562
|
}
|
|
@@ -8321,6 +8327,7 @@ function convertTreeToInputProblem(tree, db, group) {
|
|
|
8321
8327
|
pinStrongConnMap: {},
|
|
8322
8328
|
netConnMap: {},
|
|
8323
8329
|
chipGap: 0.6,
|
|
8330
|
+
decouplingCapsGap: 0.4,
|
|
8324
8331
|
partitionGap: 1.2
|
|
8325
8332
|
};
|
|
8326
8333
|
debug5(
|
|
@@ -8397,7 +8404,10 @@ function convertTreeToInputProblem(tree, db, group) {
|
|
|
8397
8404
|
`[${group.name}] Group ${groupId} has ${groupComponents.length} components:`,
|
|
8398
8405
|
groupComponents.map((c) => c.source_component_id)
|
|
8399
8406
|
);
|
|
8400
|
-
let minX = Infinity
|
|
8407
|
+
let minX = Infinity;
|
|
8408
|
+
let maxX = -Infinity;
|
|
8409
|
+
let minY = Infinity;
|
|
8410
|
+
let maxY = -Infinity;
|
|
8401
8411
|
let hasValidBounds = false;
|
|
8402
8412
|
for (const comp of groupComponents) {
|
|
8403
8413
|
if (comp.center && comp.size) {
|
|
@@ -8590,8 +8600,15 @@ function convertTreeToInputProblem(tree, db, group) {
|
|
|
8590
8600
|
}
|
|
8591
8601
|
}
|
|
8592
8602
|
if (hasNetConnections) {
|
|
8603
|
+
const source_net = db.source_net.getWhere({
|
|
8604
|
+
subcircuit_connectivity_map_key: connectivityKey
|
|
8605
|
+
});
|
|
8606
|
+
const isGround = source_net?.is_ground ?? false;
|
|
8607
|
+
const isPositiveVoltageSource = source_net?.is_power ?? false;
|
|
8593
8608
|
problem.netMap[connectivityKey] = {
|
|
8594
|
-
netId: connectivityKey
|
|
8609
|
+
netId: connectivityKey,
|
|
8610
|
+
isGround,
|
|
8611
|
+
isPositiveVoltageSource
|
|
8595
8612
|
};
|
|
8596
8613
|
for (const pinId of pins) {
|
|
8597
8614
|
problem.netConnMap[`${pinId}-${connectivityKey}`] = true;
|
|
@@ -9953,7 +9970,7 @@ function createSchematicTraceSolverInputProblem(group) {
|
|
|
9953
9970
|
directConnections,
|
|
9954
9971
|
netConnections,
|
|
9955
9972
|
availableNetLabelOrientations,
|
|
9956
|
-
maxMspPairDistance: group._parsedProps.schMaxTraceDistance ??
|
|
9973
|
+
maxMspPairDistance: group._parsedProps.schMaxTraceDistance ?? 2.4
|
|
9957
9974
|
};
|
|
9958
9975
|
return {
|
|
9959
9976
|
inputProblem,
|
|
@@ -14056,7 +14073,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
14056
14073
|
var package_default = {
|
|
14057
14074
|
name: "@tscircuit/core",
|
|
14058
14075
|
type: "module",
|
|
14059
|
-
version: "0.0.
|
|
14076
|
+
version: "0.0.685",
|
|
14060
14077
|
types: "dist/index.d.ts",
|
|
14061
14078
|
main: "dist/index.js",
|
|
14062
14079
|
module: "dist/index.js",
|
|
@@ -14092,7 +14109,7 @@ var package_default = {
|
|
|
14092
14109
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
14093
14110
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
14094
14111
|
"@tscircuit/log-soup": "^1.0.2",
|
|
14095
|
-
"@tscircuit/matchpack": "^0.0.
|
|
14112
|
+
"@tscircuit/matchpack": "^0.0.16",
|
|
14096
14113
|
"@tscircuit/math-utils": "^0.0.18",
|
|
14097
14114
|
"@tscircuit/miniflex": "^0.0.4",
|
|
14098
14115
|
"@tscircuit/props": "0.0.292",
|
|
@@ -14113,7 +14130,7 @@ var package_default = {
|
|
|
14113
14130
|
"circuit-json-to-bpc": "^0.0.13",
|
|
14114
14131
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
14115
14132
|
"circuit-json-to-simple-3d": "^0.0.6",
|
|
14116
|
-
"circuit-to-svg": "^0.0.
|
|
14133
|
+
"circuit-to-svg": "^0.0.182",
|
|
14117
14134
|
concurrently: "^9.1.2",
|
|
14118
14135
|
"connectivity-map": "^1.0.0",
|
|
14119
14136
|
debug: "^4.3.6",
|
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.686",
|
|
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/import-snippet": "^0.0.4",
|
|
38
38
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
39
39
|
"@tscircuit/log-soup": "^1.0.2",
|
|
40
|
-
"@tscircuit/matchpack": "^0.0.
|
|
40
|
+
"@tscircuit/matchpack": "^0.0.16",
|
|
41
41
|
"@tscircuit/math-utils": "^0.0.18",
|
|
42
42
|
"@tscircuit/miniflex": "^0.0.4",
|
|
43
43
|
"@tscircuit/props": "0.0.292",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"circuit-json-to-bpc": "^0.0.13",
|
|
59
59
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
60
60
|
"circuit-json-to-simple-3d": "^0.0.6",
|
|
61
|
-
"circuit-to-svg": "^0.0.
|
|
61
|
+
"circuit-to-svg": "^0.0.182",
|
|
62
62
|
"concurrently": "^9.1.2",
|
|
63
63
|
"connectivity-map": "^1.0.0",
|
|
64
64
|
"debug": "^4.3.6",
|