@tscircuit/core 0.0.99 → 0.0.100

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 +22 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -952,6 +952,16 @@ var SmtPad = class extends PrimitiveComponent {
952
952
  x: position.x,
953
953
  y: position.y
954
954
  });
955
+ db.pcb_solder_paste.insert({
956
+ layer: pcb_smtpad.layer,
957
+ shape: "circle",
958
+ // @ts-ignore: no idea why this is triggering
959
+ radius: pcb_smtpad.radius * 0.7,
960
+ x: pcb_smtpad.x,
961
+ y: pcb_smtpad.y,
962
+ pcb_component_id: pcb_smtpad.pcb_component_id,
963
+ pcb_smtpad_id: pcb_smtpad.pcb_smtpad_id
964
+ });
955
965
  } else if (props.shape === "rect") {
956
966
  pcb_smtpad = db.pcb_smtpad.insert({
957
967
  pcb_component_id,
@@ -964,6 +974,18 @@ var SmtPad = class extends PrimitiveComponent {
964
974
  x: position.x,
965
975
  y: position.y
966
976
  });
977
+ if (pcb_smtpad.shape === "rect")
978
+ db.pcb_solder_paste.insert({
979
+ layer: pcb_smtpad.layer,
980
+ shape: "rect",
981
+ // @ts-ignore: no idea why this is triggering
982
+ width: pcb_smtpad.width * 0.7,
983
+ height: pcb_smtpad.height * 0.7,
984
+ x: pcb_smtpad.x,
985
+ y: pcb_smtpad.y,
986
+ pcb_component_id: pcb_smtpad.pcb_component_id,
987
+ pcb_smtpad_id: pcb_smtpad.pcb_smtpad_id
988
+ });
967
989
  }
968
990
  if (pcb_smtpad) {
969
991
  this.pcb_smtpad_id = pcb_smtpad.pcb_smtpad_id;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.99",
4
+ "version": "0.0.100",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -38,9 +38,9 @@
38
38
  "@lume/kiwi": "^0.4.3",
39
39
  "@tscircuit/infgrid-ijump-astar": "^0.0.21",
40
40
  "@tscircuit/math-utils": "^0.0.4",
41
- "@tscircuit/props": "^0.0.67",
41
+ "@tscircuit/props": "^0.0.68",
42
42
  "@tscircuit/soup-util": "^0.0.31",
43
- "circuit-json": "^0.0.82",
43
+ "circuit-json": "^0.0.83",
44
44
  "circuit-json-to-connectivity-map": "^0.0.17",
45
45
  "footprinter": "^0.0.44",
46
46
  "nanoid": "^5.0.7",