@tscircuit/core 0.0.714 → 0.0.716

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 CHANGED
@@ -2382,7 +2382,9 @@ var PlatedHole = class extends PrimitiveComponent2 {
2382
2382
  y: position.y,
2383
2383
  layers: ["top", "bottom"],
2384
2384
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
2385
- pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
2385
+ pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0,
2386
+ hole_offset_x: props.pcbHoleOffsetX ?? 0,
2387
+ hole_offset_y: props.pcbHoleOffsetY ?? 0
2386
2388
  });
2387
2389
  this.pcb_plated_hole_id = pcb_plated_hole.pcb_plated_hole_id;
2388
2390
  } else if (props.shape === "pill_hole_with_rect_pad") {
@@ -2826,7 +2828,9 @@ var createComponentsFromCircuitJson = ({
2826
2828
  holeDiameter: elm.hole_diameter,
2827
2829
  rectPadHeight: elm.rect_pad_height,
2828
2830
  rectPadWidth: elm.rect_pad_width,
2829
- portHints: elm.port_hints
2831
+ portHints: elm.port_hints,
2832
+ pcbHoleOffsetX: elm.hole_offset_x,
2833
+ pcbHoleOffsetY: elm.hole_offset_y
2830
2834
  })
2831
2835
  );
2832
2836
  }
@@ -7514,6 +7518,7 @@ var NormalComponent2 = class extends PrimitiveComponent2 {
7514
7518
  model_step_url: "stepUrl" in (cadModel ?? {}) ? this._addCachebustToModelUrl(cadModel.stepUrl) : void 0,
7515
7519
  model_wrl_url: "wrlUrl" in (cadModel ?? {}) ? this._addCachebustToModelUrl(cadModel.wrlUrl) : void 0,
7516
7520
  model_jscad: "jscad" in (cadModel ?? {}) ? cadModel.jscad : void 0,
7521
+ model_unit_to_mm_scale_factor: typeof cadModel?.modelUnitToMmScale === "number" ? cadModel.modelUnitToMmScale : void 0,
7517
7522
  footprinter_string: typeof footprint === "string" && !cadModel ? footprint : void 0
7518
7523
  });
7519
7524
  this.cad_component_id = cad_model.cad_component_id;
@@ -14706,7 +14711,7 @@ import { identity as identity6 } from "transformation-matrix";
14706
14711
  var package_default = {
14707
14712
  name: "@tscircuit/core",
14708
14713
  type: "module",
14709
- version: "0.0.713",
14714
+ version: "0.0.715",
14710
14715
  types: "dist/index.d.ts",
14711
14716
  main: "dist/index.js",
14712
14717
  module: "dist/index.js",
@@ -14745,7 +14750,7 @@ var package_default = {
14745
14750
  "@tscircuit/matchpack": "^0.0.16",
14746
14751
  "@tscircuit/math-utils": "^0.0.21",
14747
14752
  "@tscircuit/miniflex": "^0.0.4",
14748
- "@tscircuit/props": "0.0.311",
14753
+ "@tscircuit/props": "0.0.315",
14749
14754
  "@tscircuit/schematic-autolayout": "^0.0.6",
14750
14755
  "@tscircuit/schematic-match-adapt": "^0.0.16",
14751
14756
  "@tscircuit/schematic-trace-solver": "^0.0.36",
@@ -14759,11 +14764,11 @@ var package_default = {
14759
14764
  "bun-match-svg": "0.0.12",
14760
14765
  "calculate-elbow": "^0.0.12",
14761
14766
  "chokidar-cli": "^3.0.0",
14762
- "circuit-json": "^0.0.247",
14767
+ "circuit-json": "^0.0.250",
14763
14768
  "circuit-json-to-bpc": "^0.0.13",
14764
14769
  "circuit-json-to-connectivity-map": "^0.0.22",
14765
14770
  "circuit-json-to-simple-3d": "^0.0.6",
14766
- "circuit-to-svg": "^0.0.185",
14771
+ "circuit-to-svg": "^0.0.189",
14767
14772
  concurrently: "^9.1.2",
14768
14773
  "connectivity-map": "^1.0.0",
14769
14774
  debug: "^4.3.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.714",
4
+ "version": "0.0.716",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "@tscircuit/matchpack": "^0.0.16",
41
41
  "@tscircuit/math-utils": "^0.0.21",
42
42
  "@tscircuit/miniflex": "^0.0.4",
43
- "@tscircuit/props": "0.0.311",
43
+ "@tscircuit/props": "0.0.315",
44
44
  "@tscircuit/schematic-autolayout": "^0.0.6",
45
45
  "@tscircuit/schematic-match-adapt": "^0.0.16",
46
46
  "@tscircuit/schematic-trace-solver": "^0.0.36",
@@ -54,11 +54,11 @@
54
54
  "bun-match-svg": "0.0.12",
55
55
  "calculate-elbow": "^0.0.12",
56
56
  "chokidar-cli": "^3.0.0",
57
- "circuit-json": "^0.0.247",
57
+ "circuit-json": "^0.0.250",
58
58
  "circuit-json-to-bpc": "^0.0.13",
59
59
  "circuit-json-to-connectivity-map": "^0.0.22",
60
60
  "circuit-json-to-simple-3d": "^0.0.6",
61
- "circuit-to-svg": "^0.0.185",
61
+ "circuit-to-svg": "^0.0.189",
62
62
  "concurrently": "^9.1.2",
63
63
  "connectivity-map": "^1.0.0",
64
64
  "debug": "^4.3.6",