@tscircuit/core 0.0.429 → 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.
Files changed (2) hide show
  1. package/dist/index.js +16 -4
  2. 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" && elm.shape === "circle") {
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(
@@ -8644,7 +8656,7 @@ import { identity as identity4 } from "transformation-matrix";
8644
8656
  var package_default = {
8645
8657
  name: "@tscircuit/core",
8646
8658
  type: "module",
8647
- version: "0.0.428",
8659
+ version: "0.0.429",
8648
8660
  types: "dist/index.d.ts",
8649
8661
  main: "dist/index.js",
8650
8662
  module: "dist/index.js",
@@ -8670,7 +8682,7 @@ var package_default = {
8670
8682
  "@tscircuit/capacity-autorouter": "^0.0.67",
8671
8683
  "@tscircuit/checks": "^0.0.46",
8672
8684
  "@tscircuit/circuit-json-util": "^0.0.47",
8673
- "@tscircuit/footprinter": "^0.0.159",
8685
+ "@tscircuit/footprinter": "^0.0.169",
8674
8686
  "@tscircuit/import-snippet": "^0.0.4",
8675
8687
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
8676
8688
  "@tscircuit/layout": "^0.0.28",
@@ -8688,7 +8700,7 @@ var package_default = {
8688
8700
  "circuit-json": "^0.0.190",
8689
8701
  "circuit-json-to-connectivity-map": "^0.0.22",
8690
8702
  "circuit-json-to-simple-3d": "^0.0.2",
8691
- "circuit-to-svg": "^0.0.127",
8703
+ "circuit-to-svg": "^0.0.132",
8692
8704
  concurrently: "^9.1.2",
8693
8705
  debug: "^4.3.6",
8694
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.429",
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.159",
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.127",
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",