@tscircuit/core 0.0.796 → 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 +16 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8293,6 +8293,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
8293
8293
|
}
|
|
8294
8294
|
doInitialCadModelRender() {
|
|
8295
8295
|
if (this._isCadModelChild) return;
|
|
8296
|
+
if (this.props.doNotPlace) return;
|
|
8296
8297
|
const { db } = this.root;
|
|
8297
8298
|
const { boardThickness = 0 } = this.root?._getBoard() ?? {};
|
|
8298
8299
|
const cadModelProp = this._parsedProps.cadModel;
|
|
@@ -11286,6 +11287,17 @@ var Group_doInitialPcbLayoutPack = (group) => {
|
|
|
11286
11287
|
});
|
|
11287
11288
|
}
|
|
11288
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
|
+
}
|
|
11289
11301
|
const packInput = {
|
|
11290
11302
|
...convertPackOutputToPackInput(
|
|
11291
11303
|
convertCircuitJsonToPackOutput(filteredCircuitJson, {
|
|
@@ -11298,7 +11310,8 @@ var Group_doInitialPcbLayoutPack = (group) => {
|
|
|
11298
11310
|
orderStrategy: packOrderStrategy ?? "largest_to_smallest",
|
|
11299
11311
|
placementStrategy: packPlacementStrategy ?? "minimum_sum_squared_distance_to_network",
|
|
11300
11312
|
minGap: gapMm,
|
|
11301
|
-
obstacles: obstaclesFromRelativelyPositionedComponents
|
|
11313
|
+
obstacles: obstaclesFromRelativelyPositionedComponents,
|
|
11314
|
+
bounds
|
|
11302
11315
|
};
|
|
11303
11316
|
const clusterMap = applyComponentConstraintClusters(group, packInput);
|
|
11304
11317
|
if (debug6.enabled) {
|
|
@@ -16914,7 +16927,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
16914
16927
|
var package_default = {
|
|
16915
16928
|
name: "@tscircuit/core",
|
|
16916
16929
|
type: "module",
|
|
16917
|
-
version: "0.0.
|
|
16930
|
+
version: "0.0.797",
|
|
16918
16931
|
types: "dist/index.d.ts",
|
|
16919
16932
|
main: "dist/index.js",
|
|
16920
16933
|
module: "dist/index.js",
|
|
@@ -17013,7 +17026,7 @@ var package_default = {
|
|
|
17013
17026
|
dependencies: {
|
|
17014
17027
|
"@flatten-js/core": "^1.6.2",
|
|
17015
17028
|
"@lume/kiwi": "^0.4.3",
|
|
17016
|
-
"calculate-packing": "0.0.
|
|
17029
|
+
"calculate-packing": "0.0.49",
|
|
17017
17030
|
"css-select": "5.1.0",
|
|
17018
17031
|
"format-si-unit": "^0.0.3",
|
|
17019
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",
|