@tscircuit/core 0.0.659 → 0.0.661
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 +12 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3172,9 +3172,7 @@ var Port = class extends PrimitiveComponent2 {
|
|
|
3172
3172
|
const allSubcircuitTraces = this.getSubcircuit().selectAll(
|
|
3173
3173
|
"trace"
|
|
3174
3174
|
);
|
|
3175
|
-
const connectedTraces = allSubcircuitTraces.filter(
|
|
3176
|
-
(trace) => trace._isExplicitlyConnectedToPort(this)
|
|
3177
|
-
);
|
|
3175
|
+
const connectedTraces = allSubcircuitTraces.filter((trace) => !trace._couldNotFindPort).filter((trace) => trace._isExplicitlyConnectedToPort(this));
|
|
3178
3176
|
return connectedTraces;
|
|
3179
3177
|
}
|
|
3180
3178
|
doInitialSourceRender() {
|
|
@@ -9284,7 +9282,8 @@ var Group_doInitialPcbLayoutPack = (group) => {
|
|
|
9284
9282
|
const packInput = {
|
|
9285
9283
|
...convertPackOutputToPackInput(
|
|
9286
9284
|
convertCircuitJsonToPackOutput(db.toArray(), {
|
|
9287
|
-
source_group_id: group.source_group_id
|
|
9285
|
+
source_group_id: group.source_group_id,
|
|
9286
|
+
shouldAddInnerObstacles: true
|
|
9288
9287
|
})
|
|
9289
9288
|
),
|
|
9290
9289
|
// @ts-expect-error we're missing some pack order strategies
|
|
@@ -9292,6 +9291,13 @@ var Group_doInitialPcbLayoutPack = (group) => {
|
|
|
9292
9291
|
placementStrategy: packPlacementStrategy ?? "minimum_sum_squared_distance_to_network",
|
|
9293
9292
|
minGap: gapMm
|
|
9294
9293
|
};
|
|
9294
|
+
if (debug6.enabled) {
|
|
9295
|
+
global.debugOutputs?.add(
|
|
9296
|
+
`packInput-circuitjson-${group.name}`,
|
|
9297
|
+
JSON.stringify(db.toArray())
|
|
9298
|
+
);
|
|
9299
|
+
global.debugOutputs?.add(`packInput-${group.name}`, packInput);
|
|
9300
|
+
}
|
|
9295
9301
|
const packOutput = pack(packInput);
|
|
9296
9302
|
if (debug6.enabled) {
|
|
9297
9303
|
const graphics = getGraphicsFromPackOutput(packOutput);
|
|
@@ -13769,7 +13775,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
13769
13775
|
var package_default = {
|
|
13770
13776
|
name: "@tscircuit/core",
|
|
13771
13777
|
type: "module",
|
|
13772
|
-
version: "0.0.
|
|
13778
|
+
version: "0.0.660",
|
|
13773
13779
|
types: "dist/index.d.ts",
|
|
13774
13780
|
main: "dist/index.js",
|
|
13775
13781
|
module: "dist/index.js",
|
|
@@ -13863,7 +13869,7 @@ var package_default = {
|
|
|
13863
13869
|
dependencies: {
|
|
13864
13870
|
"@flatten-js/core": "^1.6.2",
|
|
13865
13871
|
"@lume/kiwi": "^0.4.3",
|
|
13866
|
-
"calculate-packing": "0.0.
|
|
13872
|
+
"calculate-packing": "0.0.29",
|
|
13867
13873
|
"css-select": "5.1.0",
|
|
13868
13874
|
"format-si-unit": "^0.0.3",
|
|
13869
13875
|
nanoid: "^5.0.7",
|
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.661",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@flatten-js/core": "^1.6.2",
|
|
97
97
|
"@lume/kiwi": "^0.4.3",
|
|
98
|
-
"calculate-packing": "0.0.
|
|
98
|
+
"calculate-packing": "0.0.29",
|
|
99
99
|
"css-select": "5.1.0",
|
|
100
100
|
"format-si-unit": "^0.0.3",
|
|
101
101
|
"nanoid": "^5.0.7",
|