@tscircuit/core 0.0.720 → 0.0.722
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 +22 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2845,6 +2845,19 @@ var createComponentsFromCircuitJson = ({
|
|
|
2845
2845
|
pcbHoleOffsetY: elm.hole_offset_y
|
|
2846
2846
|
})
|
|
2847
2847
|
);
|
|
2848
|
+
} else if (elm.shape === "pill" || elm.shape === "oval") {
|
|
2849
|
+
components.push(
|
|
2850
|
+
new PlatedHole({
|
|
2851
|
+
pcbX: elm.x,
|
|
2852
|
+
pcbY: elm.y,
|
|
2853
|
+
shape: elm.shape,
|
|
2854
|
+
holeWidth: elm.hole_width,
|
|
2855
|
+
holeHeight: elm.hole_height,
|
|
2856
|
+
outerWidth: elm.outer_width,
|
|
2857
|
+
outerHeight: elm.outer_height,
|
|
2858
|
+
portHints: elm.port_hints
|
|
2859
|
+
})
|
|
2860
|
+
);
|
|
2848
2861
|
}
|
|
2849
2862
|
} else if (elm.type === "pcb_keepout" && elm.shape === "circle") {
|
|
2850
2863
|
components.push(
|
|
@@ -12115,7 +12128,8 @@ var Group6 = class extends NormalComponent2 {
|
|
|
12115
12128
|
// lib/components/normal-components/Board.ts
|
|
12116
12129
|
import {
|
|
12117
12130
|
checkEachPcbPortConnectedToPcbTraces,
|
|
12118
|
-
checkEachPcbTraceNonOverlapping
|
|
12131
|
+
checkEachPcbTraceNonOverlapping,
|
|
12132
|
+
checkPcbComponentsOutOfBoard
|
|
12119
12133
|
} from "@tscircuit/checks";
|
|
12120
12134
|
var getRoundedRectOutline = (width, height, radius) => {
|
|
12121
12135
|
const r = Math.min(radius, width / 2, height / 2);
|
|
@@ -12369,6 +12383,10 @@ var Board = class extends Group6 {
|
|
|
12369
12383
|
for (const error of pcbPortNotConnectedErrors) {
|
|
12370
12384
|
db.pcb_port_not_connected_error.insert(error);
|
|
12371
12385
|
}
|
|
12386
|
+
const pcbComponentOutsideErrors = checkPcbComponentsOutOfBoard(db.toArray());
|
|
12387
|
+
for (const error of pcbComponentOutsideErrors) {
|
|
12388
|
+
db.pcb_component_outside_board_error.insert(error);
|
|
12389
|
+
}
|
|
12372
12390
|
}
|
|
12373
12391
|
_emitRenderLifecycleEvent(phase, startOrEnd) {
|
|
12374
12392
|
super._emitRenderLifecycleEvent(phase, startOrEnd);
|
|
@@ -14919,7 +14937,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
14919
14937
|
var package_default = {
|
|
14920
14938
|
name: "@tscircuit/core",
|
|
14921
14939
|
type: "module",
|
|
14922
|
-
version: "0.0.
|
|
14940
|
+
version: "0.0.721",
|
|
14923
14941
|
types: "dist/index.d.ts",
|
|
14924
14942
|
main: "dist/index.js",
|
|
14925
14943
|
module: "dist/index.js",
|
|
@@ -14949,7 +14967,7 @@ var package_default = {
|
|
|
14949
14967
|
devDependencies: {
|
|
14950
14968
|
"@biomejs/biome": "^1.8.3",
|
|
14951
14969
|
"@tscircuit/capacity-autorouter": "^0.0.107",
|
|
14952
|
-
"@tscircuit/checks": "^0.0.
|
|
14970
|
+
"@tscircuit/checks": "^0.0.75",
|
|
14953
14971
|
"@tscircuit/circuit-json-util": "^0.0.67",
|
|
14954
14972
|
"@tscircuit/footprinter": "^0.0.236",
|
|
14955
14973
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
@@ -14972,7 +14990,7 @@ var package_default = {
|
|
|
14972
14990
|
"bun-match-svg": "0.0.12",
|
|
14973
14991
|
"calculate-elbow": "^0.0.12",
|
|
14974
14992
|
"chokidar-cli": "^3.0.0",
|
|
14975
|
-
"circuit-json": "^0.0.
|
|
14993
|
+
"circuit-json": "^0.0.251",
|
|
14976
14994
|
"circuit-json-to-bpc": "^0.0.13",
|
|
14977
14995
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
14978
14996
|
"circuit-json-to-simple-3d": "^0.0.8",
|
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.722",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "^1.8.3",
|
|
33
33
|
"@tscircuit/capacity-autorouter": "^0.0.107",
|
|
34
|
-
"@tscircuit/checks": "^0.0.
|
|
34
|
+
"@tscircuit/checks": "^0.0.75",
|
|
35
35
|
"@tscircuit/circuit-json-util": "^0.0.67",
|
|
36
36
|
"@tscircuit/footprinter": "^0.0.236",
|
|
37
37
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"bun-match-svg": "0.0.12",
|
|
55
55
|
"calculate-elbow": "^0.0.12",
|
|
56
56
|
"chokidar-cli": "^3.0.0",
|
|
57
|
-
"circuit-json": "^0.0.
|
|
57
|
+
"circuit-json": "^0.0.251",
|
|
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.8",
|