@tscircuit/core 0.0.665 → 0.0.666
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 +4 -3
- package/package.json +1 -1
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 && !
|
|
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
|
|
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.
|
|
13851
|
+
version: "0.0.665",
|
|
13851
13852
|
types: "dist/index.d.ts",
|
|
13852
13853
|
main: "dist/index.js",
|
|
13853
13854
|
module: "dist/index.js",
|