@tscircuit/core 0.0.1089 → 0.0.1091

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 +4 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -8997,7 +8997,7 @@ var CadModel = class extends PrimitiveComponent2 {
8997
8997
  if (!parent) return;
8998
8998
  if (!parent.pcb_component_id) return;
8999
8999
  const { db } = this.root;
9000
- const { boardThickness = 0 } = this.root?._getBoard() ?? {};
9000
+ const { boardThickness = 0 } = parent._getBoard() ?? {};
9001
9001
  const bounds = parent._getPcbCircuitJsonBounds();
9002
9002
  const pcb_component = db.pcb_component.get(parent.pcb_component_id);
9003
9003
  const props = this._parsedProps;
@@ -10870,7 +10870,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
10870
10870
  if (this._isCadModelChild) return;
10871
10871
  if (this.props.doNotPlace) return;
10872
10872
  const { db } = this.root;
10873
- const { boardThickness = 0 } = this.root?._getBoard() ?? {};
10873
+ const { boardThickness = 0 } = this._getBoard() ?? {};
10874
10874
  const cadModelProp = this._parsedProps.cadModel;
10875
10875
  const cadModel = cadModelProp === void 0 ? this._asyncFootprintCadModel : cadModelProp;
10876
10876
  const footprint = this.getFootprinterString() ?? this._getImpliedFootprintString();
@@ -18200,7 +18200,7 @@ import { identity as identity5 } from "transformation-matrix";
18200
18200
  var package_default = {
18201
18201
  name: "@tscircuit/core",
18202
18202
  type: "module",
18203
- version: "0.0.1088",
18203
+ version: "0.0.1090",
18204
18204
  types: "dist/index.d.ts",
18205
18205
  main: "dist/index.js",
18206
18206
  module: "dist/index.js",
@@ -18233,7 +18233,7 @@ var package_default = {
18233
18233
  "@resvg/resvg-js": "^2.6.2",
18234
18234
  "@tscircuit/alphabet": "0.0.18",
18235
18235
  "@tscircuit/capacity-autorouter": "^0.0.317",
18236
- "@tscircuit/checks": "0.0.103",
18236
+ "@tscircuit/checks": "0.0.104",
18237
18237
  "@tscircuit/circuit-json-util": "^0.0.82",
18238
18238
  "@tscircuit/common": "^0.0.20",
18239
18239
  "@tscircuit/copper-pour-solver": "^0.0.20",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1089",
4
+ "version": "0.0.1091",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "@resvg/resvg-js": "^2.6.2",
35
35
  "@tscircuit/alphabet": "0.0.18",
36
36
  "@tscircuit/capacity-autorouter": "^0.0.317",
37
- "@tscircuit/checks": "0.0.103",
37
+ "@tscircuit/checks": "0.0.104",
38
38
  "@tscircuit/circuit-json-util": "^0.0.82",
39
39
  "@tscircuit/common": "^0.0.20",
40
40
  "@tscircuit/copper-pour-solver": "^0.0.20",