@tscircuit/core 0.0.704 → 0.0.705

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.d.ts CHANGED
@@ -1089,6 +1089,7 @@ declare class NormalComponent<ZodProps extends z.ZodType = any, PortNames extend
1089
1089
  * the width/height of the component
1090
1090
  */
1091
1091
  doInitialPcbComponentSizeCalculation(): void;
1092
+ updatePcbComponentSizeCalculation(): void;
1092
1093
  _renderReactSubtree(element: ReactElement): ReactSubtree;
1093
1094
  doInitialInitializePortsFromChildren(): void;
1094
1095
  doInitialReactSubtreesRender(): void;
@@ -2295,6 +2296,7 @@ declare class Board extends Group<typeof boardProps> {
2295
2296
  get allLayers(): readonly ["top", "bottom", "inner1", "inner2"] | readonly ["top", "bottom"];
2296
2297
  _getSubcircuitLayerCount(): number;
2297
2298
  doInitialPcbBoardAutoSize(): void;
2299
+ updatePcbBoardAutoSize(): void;
2298
2300
  /**
2299
2301
  * Update the board information silkscreen text if platform config is set and
2300
2302
  * the project name, version, or url is set.
package/dist/index.js CHANGED
@@ -7188,6 +7188,9 @@ var NormalComponent2 = class extends PrimitiveComponent2 {
7188
7188
  height: bounds.height
7189
7189
  });
7190
7190
  }
7191
+ updatePcbComponentSizeCalculation() {
7192
+ this.doInitialPcbComponentSizeCalculation();
7193
+ }
7191
7194
  _renderReactSubtree(element) {
7192
7195
  return {
7193
7196
  element,
@@ -11718,6 +11721,10 @@ var Board = class extends Group6 {
11718
11721
  center
11719
11722
  });
11720
11723
  }
11724
+ // Recompute autosize after child components update (e.g., async footprints)
11725
+ updatePcbBoardAutoSize() {
11726
+ this.doInitialPcbBoardAutoSize();
11727
+ }
11721
11728
  /**
11722
11729
  * Update the board information silkscreen text if platform config is set and
11723
11730
  * the project name, version, or url is set.
@@ -14365,7 +14372,7 @@ import { identity as identity6 } from "transformation-matrix";
14365
14372
  var package_default = {
14366
14373
  name: "@tscircuit/core",
14367
14374
  type: "module",
14368
- version: "0.0.703",
14375
+ version: "0.0.704",
14369
14376
  types: "dist/index.d.ts",
14370
14377
  main: "dist/index.js",
14371
14378
  module: "dist/index.js",
@@ -14404,7 +14411,7 @@ var package_default = {
14404
14411
  "@tscircuit/matchpack": "^0.0.16",
14405
14412
  "@tscircuit/math-utils": "^0.0.21",
14406
14413
  "@tscircuit/miniflex": "^0.0.4",
14407
- "@tscircuit/props": "0.0.298",
14414
+ "@tscircuit/props": "0.0.300",
14408
14415
  "@tscircuit/schematic-autolayout": "^0.0.6",
14409
14416
  "@tscircuit/schematic-match-adapt": "^0.0.16",
14410
14417
  "@tscircuit/schematic-trace-solver": "^0.0.35",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.704",
4
+ "version": "0.0.705",
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.298",
43
+ "@tscircuit/props": "0.0.300",
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.35",