@tscircuit/core 0.0.797 → 0.0.798
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 +15 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11287,6 +11287,17 @@ var Group_doInitialPcbLayoutPack = (group) => {
|
|
|
11287
11287
|
});
|
|
11288
11288
|
}
|
|
11289
11289
|
}
|
|
11290
|
+
let bounds;
|
|
11291
|
+
if (props.width !== void 0 && props.height !== void 0) {
|
|
11292
|
+
const widthMm = length4.parse(props.width);
|
|
11293
|
+
const heightMm = length4.parse(props.height);
|
|
11294
|
+
bounds = {
|
|
11295
|
+
minX: -widthMm / 2,
|
|
11296
|
+
maxX: widthMm / 2,
|
|
11297
|
+
minY: -heightMm / 2,
|
|
11298
|
+
maxY: heightMm / 2
|
|
11299
|
+
};
|
|
11300
|
+
}
|
|
11290
11301
|
const packInput = {
|
|
11291
11302
|
...convertPackOutputToPackInput(
|
|
11292
11303
|
convertCircuitJsonToPackOutput(filteredCircuitJson, {
|
|
@@ -11299,7 +11310,8 @@ var Group_doInitialPcbLayoutPack = (group) => {
|
|
|
11299
11310
|
orderStrategy: packOrderStrategy ?? "largest_to_smallest",
|
|
11300
11311
|
placementStrategy: packPlacementStrategy ?? "minimum_sum_squared_distance_to_network",
|
|
11301
11312
|
minGap: gapMm,
|
|
11302
|
-
obstacles: obstaclesFromRelativelyPositionedComponents
|
|
11313
|
+
obstacles: obstaclesFromRelativelyPositionedComponents,
|
|
11314
|
+
bounds
|
|
11303
11315
|
};
|
|
11304
11316
|
const clusterMap = applyComponentConstraintClusters(group, packInput);
|
|
11305
11317
|
if (debug6.enabled) {
|
|
@@ -16915,7 +16927,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
16915
16927
|
var package_default = {
|
|
16916
16928
|
name: "@tscircuit/core",
|
|
16917
16929
|
type: "module",
|
|
16918
|
-
version: "0.0.
|
|
16930
|
+
version: "0.0.797",
|
|
16919
16931
|
types: "dist/index.d.ts",
|
|
16920
16932
|
main: "dist/index.js",
|
|
16921
16933
|
module: "dist/index.js",
|
|
@@ -17014,7 +17026,7 @@ var package_default = {
|
|
|
17014
17026
|
dependencies: {
|
|
17015
17027
|
"@flatten-js/core": "^1.6.2",
|
|
17016
17028
|
"@lume/kiwi": "^0.4.3",
|
|
17017
|
-
"calculate-packing": "0.0.
|
|
17029
|
+
"calculate-packing": "0.0.49",
|
|
17018
17030
|
"css-select": "5.1.0",
|
|
17019
17031
|
"format-si-unit": "^0.0.3",
|
|
17020
17032
|
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.798",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"@flatten-js/core": "^1.6.2",
|
|
102
102
|
"@lume/kiwi": "^0.4.3",
|
|
103
|
-
"calculate-packing": "0.0.
|
|
103
|
+
"calculate-packing": "0.0.49",
|
|
104
104
|
"css-select": "5.1.0",
|
|
105
105
|
"format-si-unit": "^0.0.3",
|
|
106
106
|
"nanoid": "^5.0.7",
|