@tscircuit/core 0.0.385 → 0.0.386

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 +59 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1663,6 +1663,21 @@ var SmtPad = class extends PrimitiveComponent2 {
1663
1663
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
1664
1664
  pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1665
1665
  });
1666
+ if (pcb_smtpad.shape === "rotated_rect")
1667
+ db.pcb_solder_paste.insert({
1668
+ layer: pcb_smtpad.layer,
1669
+ shape: "rotated_rect",
1670
+ // @ts-ignore: no idea why this is triggering
1671
+ width: pcb_smtpad.width * 0.7,
1672
+ height: pcb_smtpad.height * 0.7,
1673
+ x: pcb_smtpad.x,
1674
+ y: pcb_smtpad.y,
1675
+ ccw_rotation: parentRotation,
1676
+ pcb_component_id: pcb_smtpad.pcb_component_id,
1677
+ pcb_smtpad_id: pcb_smtpad.pcb_smtpad_id,
1678
+ subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
1679
+ pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1680
+ });
1666
1681
  }
1667
1682
  if (pcb_smtpad) {
1668
1683
  this.pcb_smtpad_id = pcb_smtpad.pcb_smtpad_id;
@@ -1896,6 +1911,26 @@ var PlatedHole = class extends PrimitiveComponent2 {
1896
1911
  pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1897
1912
  });
1898
1913
  this.pcb_plated_hole_id = pcb_plated_hole.pcb_plated_hole_id;
1914
+ db.pcb_solder_paste.insert({
1915
+ layer: "top",
1916
+ shape: "circle",
1917
+ // @ts-ignore: no idea why this is triggering
1918
+ radius: props.outerDiameter / 2,
1919
+ x: position.x,
1920
+ y: position.y,
1921
+ subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
1922
+ pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1923
+ });
1924
+ db.pcb_solder_paste.insert({
1925
+ layer: "bottom",
1926
+ shape: "circle",
1927
+ // @ts-ignore: no idea why this is triggering
1928
+ radius: props.outerDiameter / 2,
1929
+ x: position.x,
1930
+ y: position.y,
1931
+ subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
1932
+ pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1933
+ });
1899
1934
  } else if (props.shape === "pill" || props.shape === "oval") {
1900
1935
  const pcb_plated_hole = db.pcb_plated_hole.insert({
1901
1936
  pcb_component_id,
@@ -1914,6 +1949,28 @@ var PlatedHole = class extends PrimitiveComponent2 {
1914
1949
  // NOTE: currently PcbPlatedHoleOval erroneously includes both the shape "pill" and "oval"
1915
1950
  });
1916
1951
  this.pcb_plated_hole_id = pcb_plated_hole.pcb_plated_hole_id;
1952
+ db.pcb_solder_paste.insert({
1953
+ layer: "top",
1954
+ shape: props.shape,
1955
+ // @ts-ignore: no idea why this is triggering
1956
+ width: props.outerWidth,
1957
+ height: props.outerHeight,
1958
+ x: position.x,
1959
+ y: position.y,
1960
+ subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
1961
+ pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1962
+ });
1963
+ db.pcb_solder_paste.insert({
1964
+ layer: "bottom",
1965
+ shape: props.shape,
1966
+ // @ts-ignore: no idea why this is triggering
1967
+ width: props.outerWidth,
1968
+ height: props.outerHeight,
1969
+ x: position.x,
1970
+ y: position.y,
1971
+ subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
1972
+ pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1973
+ });
1917
1974
  }
1918
1975
  }
1919
1976
  doInitialPcbPortAttachment() {
@@ -7743,7 +7800,7 @@ import { identity as identity4 } from "transformation-matrix";
7743
7800
  var package_default = {
7744
7801
  name: "@tscircuit/core",
7745
7802
  type: "module",
7746
- version: "0.0.384",
7803
+ version: "0.0.385",
7747
7804
  types: "dist/index.d.ts",
7748
7805
  main: "dist/index.js",
7749
7806
  module: "dist/index.js",
@@ -7803,7 +7860,7 @@ var package_default = {
7803
7860
  "@tscircuit/math-utils": "^0.0.14",
7804
7861
  "@tscircuit/props": "^0.0.172",
7805
7862
  "@tscircuit/schematic-autolayout": "^0.0.6",
7806
- "circuit-json": "0.0.159",
7863
+ "circuit-json": "0.0.160",
7807
7864
  "circuit-json-to-connectivity-map": "^0.0.20",
7808
7865
  "css-select": "^5.1.0",
7809
7866
  "format-si-unit": "^0.0.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.385",
4
+ "version": "0.0.386",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -61,7 +61,7 @@
61
61
  "@tscircuit/math-utils": "^0.0.14",
62
62
  "@tscircuit/props": "^0.0.172",
63
63
  "@tscircuit/schematic-autolayout": "^0.0.6",
64
- "circuit-json": "0.0.159",
64
+ "circuit-json": "0.0.160",
65
65
  "circuit-json-to-connectivity-map": "^0.0.20",
66
66
  "css-select": "^5.1.0",
67
67
  "format-si-unit": "^0.0.3",