@tscircuit/core 0.0.428 → 0.0.430
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 +19 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2350,7 +2350,7 @@ var createComponentsFromCircuitJson = ({
|
|
|
2350
2350
|
strokeWidth: elm.stroke_width
|
|
2351
2351
|
})
|
|
2352
2352
|
);
|
|
2353
|
-
} else if (elm.type === "pcb_plated_hole"
|
|
2353
|
+
} else if (elm.type === "pcb_plated_hole") {
|
|
2354
2354
|
if (elm.shape === "circle") {
|
|
2355
2355
|
components.push(
|
|
2356
2356
|
new PlatedHole({
|
|
@@ -2362,6 +2362,18 @@ var createComponentsFromCircuitJson = ({
|
|
|
2362
2362
|
portHints: elm.port_hints
|
|
2363
2363
|
})
|
|
2364
2364
|
);
|
|
2365
|
+
} else if (elm.shape === "circular_hole_with_rect_pad") {
|
|
2366
|
+
components.push(
|
|
2367
|
+
new PlatedHole({
|
|
2368
|
+
pcbX: elm.x,
|
|
2369
|
+
pcbY: elm.y,
|
|
2370
|
+
shape: "circular_hole_with_rect_pad",
|
|
2371
|
+
holeDiameter: elm.hole_diameter,
|
|
2372
|
+
rectPadHeight: elm.rect_pad_height,
|
|
2373
|
+
rectPadWidth: elm.rect_pad_width,
|
|
2374
|
+
portHints: elm.port_hints
|
|
2375
|
+
})
|
|
2376
|
+
);
|
|
2365
2377
|
}
|
|
2366
2378
|
} else if (elm.type === "pcb_keepout" && elm.shape === "circle") {
|
|
2367
2379
|
components.push(
|
|
@@ -5737,13 +5749,14 @@ var NormalComponent = class extends PrimitiveComponent2 {
|
|
|
5737
5749
|
footprinterString
|
|
5738
5750
|
})
|
|
5739
5751
|
);
|
|
5752
|
+
const supplierPartNumbers = result === "Not found" ? {} : result;
|
|
5740
5753
|
if (cacheEngine) {
|
|
5741
5754
|
try {
|
|
5742
|
-
await cacheEngine.setItem(cacheKey, JSON.stringify(
|
|
5755
|
+
await cacheEngine.setItem(cacheKey, JSON.stringify(supplierPartNumbers));
|
|
5743
5756
|
} catch {
|
|
5744
5757
|
}
|
|
5745
5758
|
}
|
|
5746
|
-
return
|
|
5759
|
+
return supplierPartNumbers;
|
|
5747
5760
|
}
|
|
5748
5761
|
doInitialPartsEngineRender() {
|
|
5749
5762
|
const partsEngine = this.getInheritedProperty("partsEngine");
|
|
@@ -8643,7 +8656,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
8643
8656
|
var package_default = {
|
|
8644
8657
|
name: "@tscircuit/core",
|
|
8645
8658
|
type: "module",
|
|
8646
|
-
version: "0.0.
|
|
8659
|
+
version: "0.0.429",
|
|
8647
8660
|
types: "dist/index.d.ts",
|
|
8648
8661
|
main: "dist/index.js",
|
|
8649
8662
|
module: "dist/index.js",
|
|
@@ -8669,7 +8682,7 @@ var package_default = {
|
|
|
8669
8682
|
"@tscircuit/capacity-autorouter": "^0.0.67",
|
|
8670
8683
|
"@tscircuit/checks": "^0.0.46",
|
|
8671
8684
|
"@tscircuit/circuit-json-util": "^0.0.47",
|
|
8672
|
-
"@tscircuit/footprinter": "^0.0.
|
|
8685
|
+
"@tscircuit/footprinter": "^0.0.169",
|
|
8673
8686
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
8674
8687
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
8675
8688
|
"@tscircuit/layout": "^0.0.28",
|
|
@@ -8687,7 +8700,7 @@ var package_default = {
|
|
|
8687
8700
|
"circuit-json": "^0.0.190",
|
|
8688
8701
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
8689
8702
|
"circuit-json-to-simple-3d": "^0.0.2",
|
|
8690
|
-
"circuit-to-svg": "^0.0.
|
|
8703
|
+
"circuit-to-svg": "^0.0.132",
|
|
8691
8704
|
concurrently: "^9.1.2",
|
|
8692
8705
|
debug: "^4.3.6",
|
|
8693
8706
|
"graphics-debug": "^0.0.4",
|
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.430",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@tscircuit/capacity-autorouter": "^0.0.67",
|
|
28
28
|
"@tscircuit/checks": "^0.0.46",
|
|
29
29
|
"@tscircuit/circuit-json-util": "^0.0.47",
|
|
30
|
-
"@tscircuit/footprinter": "^0.0.
|
|
30
|
+
"@tscircuit/footprinter": "^0.0.169",
|
|
31
31
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
32
32
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
33
33
|
"@tscircuit/layout": "^0.0.28",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"circuit-json": "^0.0.190",
|
|
46
46
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
47
47
|
"circuit-json-to-simple-3d": "^0.0.2",
|
|
48
|
-
"circuit-to-svg": "^0.0.
|
|
48
|
+
"circuit-to-svg": "^0.0.132",
|
|
49
49
|
"concurrently": "^9.1.2",
|
|
50
50
|
"debug": "^4.3.6",
|
|
51
51
|
"graphics-debug": "^0.0.4",
|