@tscircuit/core 0.0.2021 → 0.0.2023
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 +7 -21
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3732,12 +3732,13 @@ var getObstaclesFromCircuitJson = (circuitJson, connMap) => {
|
|
|
3732
3732
|
height: element.outer_diameter,
|
|
3733
3733
|
connectedTo: withNetId([element.pcb_plated_hole_id])
|
|
3734
3734
|
});
|
|
3735
|
-
} else if (element.shape === "pill_hole_with_rect_pad" || element.shape === "rotated_pill_hole_with_rect_pad") {
|
|
3735
|
+
} else if (element.shape === "circular_hole_with_rect_pad" || element.shape === "pill_hole_with_rect_pad" || element.shape === "rotated_pill_hole_with_rect_pad") {
|
|
3736
|
+
const rect_ccw_rotation = element.shape === "pill_hole_with_rect_pad" ? 0 : element.rect_ccw_rotation ?? 0;
|
|
3736
3737
|
const rotatedRect = {
|
|
3737
3738
|
center: { x: element.x, y: element.y },
|
|
3738
3739
|
width: element.rect_pad_width,
|
|
3739
3740
|
height: element.rect_pad_height,
|
|
3740
|
-
rotation:
|
|
3741
|
+
rotation: rect_ccw_rotation
|
|
3741
3742
|
};
|
|
3742
3743
|
const axisAlignedRect = getAxisAlignedRectFromRotatedRect(rotatedRect);
|
|
3743
3744
|
const rect = axisAlignedRect ?? rotatedRect;
|
|
@@ -3752,21 +3753,6 @@ var getObstaclesFromCircuitJson = (circuitJson, connMap) => {
|
|
|
3752
3753
|
ccwRotationDegrees: axisAlignedRect ? void 0 : rotatedRect.rotation,
|
|
3753
3754
|
connectedTo: withNetId([element.pcb_plated_hole_id])
|
|
3754
3755
|
});
|
|
3755
|
-
} else if (element.shape === "circular_hole_with_rect_pad") {
|
|
3756
|
-
obstacles.push({
|
|
3757
|
-
circuitJsonMetadata: pcbPlatedHoleCircuitJsonMetadata,
|
|
3758
|
-
componentId: pcbComponentId,
|
|
3759
|
-
// @ts-ignore
|
|
3760
|
-
type: "rect",
|
|
3761
|
-
layers: everyLayer,
|
|
3762
|
-
center: {
|
|
3763
|
-
x: element.x,
|
|
3764
|
-
y: element.y
|
|
3765
|
-
},
|
|
3766
|
-
width: element.rect_pad_width,
|
|
3767
|
-
height: element.rect_pad_height,
|
|
3768
|
-
connectedTo: withNetId([element.pcb_plated_hole_id])
|
|
3769
|
-
});
|
|
3770
3756
|
} else if (element.shape === "oval") {
|
|
3771
3757
|
obstacles.push({
|
|
3772
3758
|
circuitJsonMetadata: pcbPlatedHoleCircuitJsonMetadata,
|
|
@@ -14695,7 +14681,7 @@ var getUnrotatedLocalPcbElements = ({
|
|
|
14695
14681
|
var getSupplierPartOrientationCacheKey = ({
|
|
14696
14682
|
supplierName,
|
|
14697
14683
|
supplierPartNumber
|
|
14698
|
-
}) => `part-orientation-analysis:
|
|
14684
|
+
}) => `part-orientation-analysis:v4:${supplierName}:${supplierPartNumber}`;
|
|
14699
14685
|
var readCachedSupplierPartOrientationAnalysis = async ({
|
|
14700
14686
|
cacheKey,
|
|
14701
14687
|
component
|
|
@@ -64566,7 +64552,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
64566
64552
|
var package_default = {
|
|
64567
64553
|
name: "@tscircuit/core",
|
|
64568
64554
|
type: "module",
|
|
64569
|
-
version: "0.0.
|
|
64555
|
+
version: "0.0.2022",
|
|
64570
64556
|
types: "dist/index.d.ts",
|
|
64571
64557
|
main: "dist/index.js",
|
|
64572
64558
|
module: "dist/index.js",
|
|
@@ -64603,7 +64589,7 @@ var package_default = {
|
|
|
64603
64589
|
"@tscircuit/bus-lanes-solver": "github:tscircuit/bus-lanes-solver#0bc8d071241b18a3e7465a878881abe4998f6384",
|
|
64604
64590
|
"@tscircuit/capacity-autorouter": "^0.0.941",
|
|
64605
64591
|
"@tscircuit/checks": "^0.0.230",
|
|
64606
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
64592
|
+
"@tscircuit/circuit-json-util": "^0.0.117",
|
|
64607
64593
|
"@tscircuit/common": "^0.0.20",
|
|
64608
64594
|
"@tscircuit/copper-pour-solver": "^0.0.62",
|
|
64609
64595
|
"@tscircuit/create-fdm-enclosure": "0.0.4",
|
|
@@ -64699,7 +64685,7 @@ var package_default = {
|
|
|
64699
64685
|
zod: "^3.25.67"
|
|
64700
64686
|
},
|
|
64701
64687
|
overrides: {
|
|
64702
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
64688
|
+
"@tscircuit/circuit-json-util": "^0.0.117",
|
|
64703
64689
|
"@tscircuit/props": "^0.0.672",
|
|
64704
64690
|
"circuit-json": "^0.0.507"
|
|
64705
64691
|
}
|
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.2023",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@tscircuit/bus-lanes-solver": "github:tscircuit/bus-lanes-solver#0bc8d071241b18a3e7465a878881abe4998f6384",
|
|
39
39
|
"@tscircuit/capacity-autorouter": "^0.0.941",
|
|
40
40
|
"@tscircuit/checks": "^0.0.230",
|
|
41
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
41
|
+
"@tscircuit/circuit-json-util": "^0.0.117",
|
|
42
42
|
"@tscircuit/common": "^0.0.20",
|
|
43
43
|
"@tscircuit/copper-pour-solver": "^0.0.62",
|
|
44
44
|
"@tscircuit/create-fdm-enclosure": "0.0.4",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"zod": "^3.25.67"
|
|
135
135
|
},
|
|
136
136
|
"overrides": {
|
|
137
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
137
|
+
"@tscircuit/circuit-json-util": "^0.0.117",
|
|
138
138
|
"@tscircuit/props": "^0.0.672",
|
|
139
139
|
"circuit-json": "^0.0.507"
|
|
140
140
|
}
|