@tscircuit/core 0.0.808 → 0.0.810
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 +17 -7
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -13454,16 +13454,25 @@ import {
|
|
|
13454
13454
|
checkPcbComponentOverlap
|
|
13455
13455
|
} from "@tscircuit/checks";
|
|
13456
13456
|
import { getBoundsFromPoints as getBoundsFromPoints4 } from "@tscircuit/math-utils";
|
|
13457
|
+
var MIN_EFFECTIVE_BORDER_RADIUS_MM = 0.01;
|
|
13457
13458
|
var getRoundedRectOutline = (width, height, radius) => {
|
|
13458
|
-
const
|
|
13459
|
+
const w2 = width / 2;
|
|
13460
|
+
const h2 = height / 2;
|
|
13461
|
+
const r = Math.min(radius, w2, h2);
|
|
13462
|
+
if (r < MIN_EFFECTIVE_BORDER_RADIUS_MM) {
|
|
13463
|
+
return [
|
|
13464
|
+
{ x: -w2, y: -h2 },
|
|
13465
|
+
{ x: w2, y: -h2 },
|
|
13466
|
+
{ x: w2, y: h2 },
|
|
13467
|
+
{ x: -w2, y: h2 }
|
|
13468
|
+
];
|
|
13469
|
+
}
|
|
13459
13470
|
const maxArcLengthPerSegment = 0.1;
|
|
13460
13471
|
const segments = Math.max(
|
|
13461
13472
|
1,
|
|
13462
13473
|
Math.ceil(Math.PI / 2 * r / maxArcLengthPerSegment)
|
|
13463
13474
|
);
|
|
13464
13475
|
const step = Math.PI / 2 / segments;
|
|
13465
|
-
const w2 = width / 2;
|
|
13466
|
-
const h2 = height / 2;
|
|
13467
13476
|
const outline = [];
|
|
13468
13477
|
outline.push({ x: -w2 + r, y: -h2 });
|
|
13469
13478
|
outline.push({ x: w2 - r, y: -h2 });
|
|
@@ -17211,7 +17220,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
17211
17220
|
var package_default = {
|
|
17212
17221
|
name: "@tscircuit/core",
|
|
17213
17222
|
type: "module",
|
|
17214
|
-
version: "0.0.
|
|
17223
|
+
version: "0.0.809",
|
|
17215
17224
|
types: "dist/index.d.ts",
|
|
17216
17225
|
main: "dist/index.js",
|
|
17217
17226
|
module: "dist/index.js",
|
|
@@ -17240,6 +17249,7 @@ var package_default = {
|
|
|
17240
17249
|
},
|
|
17241
17250
|
devDependencies: {
|
|
17242
17251
|
"@biomejs/biome": "^1.8.3",
|
|
17252
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
17243
17253
|
"@tscircuit/capacity-autorouter": "^0.0.132",
|
|
17244
17254
|
"@tscircuit/checks": "^0.0.85",
|
|
17245
17255
|
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
@@ -17267,10 +17277,10 @@ var package_default = {
|
|
|
17267
17277
|
"circuit-json": "^0.0.288",
|
|
17268
17278
|
"circuit-json-to-bpc": "^0.0.13",
|
|
17269
17279
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
17270
|
-
"circuit-json-to-gltf": "^0.0.
|
|
17280
|
+
"circuit-json-to-gltf": "^0.0.27",
|
|
17271
17281
|
"circuit-json-to-simple-3d": "^0.0.9",
|
|
17272
|
-
"circuit-to-svg": "^0.0.250",
|
|
17273
17282
|
"circuit-json-to-spice": "^0.0.15",
|
|
17283
|
+
"circuit-to-svg": "^0.0.250",
|
|
17274
17284
|
concurrently: "^9.1.2",
|
|
17275
17285
|
"connectivity-map": "^1.0.0",
|
|
17276
17286
|
debug: "^4.3.6",
|
|
@@ -17281,7 +17291,7 @@ var package_default = {
|
|
|
17281
17291
|
"looks-same": "^9.0.1",
|
|
17282
17292
|
minicssgrid: "^0.0.9",
|
|
17283
17293
|
"pkg-pr-new": "^0.0.37",
|
|
17284
|
-
poppygl: "^0.0.
|
|
17294
|
+
poppygl: "^0.0.16",
|
|
17285
17295
|
react: "^19.1.0",
|
|
17286
17296
|
"react-dom": "^19.1.0",
|
|
17287
17297
|
"schematic-symbols": "^0.0.202",
|
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.810",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "^1.8.3",
|
|
33
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
33
34
|
"@tscircuit/capacity-autorouter": "^0.0.132",
|
|
34
35
|
"@tscircuit/checks": "^0.0.85",
|
|
35
36
|
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
@@ -57,10 +58,10 @@
|
|
|
57
58
|
"circuit-json": "^0.0.288",
|
|
58
59
|
"circuit-json-to-bpc": "^0.0.13",
|
|
59
60
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
60
|
-
"circuit-json-to-gltf": "^0.0.
|
|
61
|
+
"circuit-json-to-gltf": "^0.0.27",
|
|
61
62
|
"circuit-json-to-simple-3d": "^0.0.9",
|
|
62
|
-
"circuit-to-svg": "^0.0.250",
|
|
63
63
|
"circuit-json-to-spice": "^0.0.15",
|
|
64
|
+
"circuit-to-svg": "^0.0.250",
|
|
64
65
|
"concurrently": "^9.1.2",
|
|
65
66
|
"connectivity-map": "^1.0.0",
|
|
66
67
|
"debug": "^4.3.6",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"looks-same": "^9.0.1",
|
|
72
73
|
"minicssgrid": "^0.0.9",
|
|
73
74
|
"pkg-pr-new": "^0.0.37",
|
|
74
|
-
"poppygl": "^0.0.
|
|
75
|
+
"poppygl": "^0.0.16",
|
|
75
76
|
"react": "^19.1.0",
|
|
76
77
|
"react-dom": "^19.1.0",
|
|
77
78
|
"schematic-symbols": "^0.0.202",
|