@tscircuit/core 0.0.665 → 0.0.667

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 +5 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -6999,8 +6999,9 @@ var NormalComponent = class extends PrimitiveComponent2 {
6999
6999
  const { db } = this.root;
7000
7000
  const { boardThickness = 0 } = this.root?._getBoard() ?? {};
7001
7001
  const cadModel = this._parsedProps.cadModel;
7002
+ const footprint = this.props.footprint ?? this._getImpliedFootprintString();
7002
7003
  if (!this.pcb_component_id) return;
7003
- if (!cadModel && !this.props.footprint) return;
7004
+ if (!cadModel && !footprint) return;
7004
7005
  if (cadModel === null) return;
7005
7006
  const bounds = this._getPcbCircuitJsonBounds();
7006
7007
  const pcb_component = db.pcb_component.get(this.pcb_component_id);
@@ -7037,7 +7038,7 @@ var NormalComponent = class extends PrimitiveComponent2 {
7037
7038
  model_stl_url: "stlUrl" in (cadModel ?? {}) ? this._addCachebustToModelUrl(cadModel.stlUrl) : void 0,
7038
7039
  model_obj_url: "objUrl" in (cadModel ?? {}) ? this._addCachebustToModelUrl(cadModel.objUrl) : void 0,
7039
7040
  model_jscad: "jscad" in (cadModel ?? {}) ? cadModel.jscad : void 0,
7040
- footprinter_string: typeof this.props.footprint === "string" && !cadModel ? this.props.footprint : void 0
7041
+ footprinter_string: typeof footprint === "string" && !cadModel ? footprint : void 0
7041
7042
  });
7042
7043
  }
7043
7044
  _addCachebustToModelUrl(url) {
@@ -13847,7 +13848,7 @@ import { identity as identity5 } from "transformation-matrix";
13847
13848
  var package_default = {
13848
13849
  name: "@tscircuit/core",
13849
13850
  type: "module",
13850
- version: "0.0.664",
13851
+ version: "0.0.666",
13851
13852
  types: "dist/index.d.ts",
13852
13853
  main: "dist/index.js",
13853
13854
  module: "dist/index.js",
@@ -13912,7 +13913,7 @@ var package_default = {
13912
13913
  howfat: "^0.3.8",
13913
13914
  "live-server": "^1.2.2",
13914
13915
  "looks-same": "^9.0.1",
13915
- minicssgrid: "^0.0.8",
13916
+ minicssgrid: "^0.0.9",
13916
13917
  "pkg-pr-new": "^0.0.37",
13917
13918
  react: "^19.1.0",
13918
13919
  "react-dom": "^19.1.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.665",
4
+ "version": "0.0.667",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -66,7 +66,7 @@
66
66
  "howfat": "^0.3.8",
67
67
  "live-server": "^1.2.2",
68
68
  "looks-same": "^9.0.1",
69
- "minicssgrid": "^0.0.8",
69
+ "minicssgrid": "^0.0.9",
70
70
  "pkg-pr-new": "^0.0.37",
71
71
  "react": "^19.1.0",
72
72
  "react-dom": "^19.1.0",