@tscircuit/core 0.0.1090 → 0.0.1092
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 +16 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8321,9 +8321,19 @@ var Port = class extends PrimitiveComponent2 {
|
|
|
8321
8321
|
}
|
|
8322
8322
|
if (pcbMatches.length > 1) {
|
|
8323
8323
|
if (!areAllPcbPrimitivesOverlapping(pcbMatches)) {
|
|
8324
|
-
|
|
8325
|
-
|
|
8324
|
+
const portName = this.props.name;
|
|
8325
|
+
const componentName = this.getParentNormalComponent()?.props.name ?? "unknown";
|
|
8326
|
+
const altAliases = this.getNameAndAliases().filter(
|
|
8327
|
+
(h) => h !== portName
|
|
8326
8328
|
);
|
|
8329
|
+
const altMsg = altAliases.length > 0 ? ` (consider using alternate aliases: ${altAliases.join(", ")})` : "";
|
|
8330
|
+
db.source_ambiguous_port_reference.insert({
|
|
8331
|
+
error_type: "source_ambiguous_port_reference",
|
|
8332
|
+
message: `${componentName}.${portName} is ambiguous: ${componentName}.${portName} references multiple non-overlapping pads: ${pcbMatches.map((c) => c.getString()).join(", ")}${altMsg}`,
|
|
8333
|
+
source_port_id: this.source_port_id ?? void 0,
|
|
8334
|
+
source_component_id: this.getParentNormalComponent()?.source_component_id ?? void 0
|
|
8335
|
+
});
|
|
8336
|
+
return;
|
|
8327
8337
|
}
|
|
8328
8338
|
matchCenter = getCenterOfPcbPrimitives(pcbMatches);
|
|
8329
8339
|
}
|
|
@@ -8997,7 +9007,7 @@ var CadModel = class extends PrimitiveComponent2 {
|
|
|
8997
9007
|
if (!parent) return;
|
|
8998
9008
|
if (!parent.pcb_component_id) return;
|
|
8999
9009
|
const { db } = this.root;
|
|
9000
|
-
const { boardThickness = 0 } =
|
|
9010
|
+
const { boardThickness = 0 } = parent._getBoard() ?? {};
|
|
9001
9011
|
const bounds = parent._getPcbCircuitJsonBounds();
|
|
9002
9012
|
const pcb_component = db.pcb_component.get(parent.pcb_component_id);
|
|
9003
9013
|
const props = this._parsedProps;
|
|
@@ -10870,7 +10880,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
10870
10880
|
if (this._isCadModelChild) return;
|
|
10871
10881
|
if (this.props.doNotPlace) return;
|
|
10872
10882
|
const { db } = this.root;
|
|
10873
|
-
const { boardThickness = 0 } = this.
|
|
10883
|
+
const { boardThickness = 0 } = this._getBoard() ?? {};
|
|
10874
10884
|
const cadModelProp = this._parsedProps.cadModel;
|
|
10875
10885
|
const cadModel = cadModelProp === void 0 ? this._asyncFootprintCadModel : cadModelProp;
|
|
10876
10886
|
const footprint = this.getFootprinterString() ?? this._getImpliedFootprintString();
|
|
@@ -18200,7 +18210,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
18200
18210
|
var package_default = {
|
|
18201
18211
|
name: "@tscircuit/core",
|
|
18202
18212
|
type: "module",
|
|
18203
|
-
version: "0.0.
|
|
18213
|
+
version: "0.0.1091",
|
|
18204
18214
|
types: "dist/index.d.ts",
|
|
18205
18215
|
main: "dist/index.js",
|
|
18206
18216
|
module: "dist/index.js",
|
|
@@ -18259,7 +18269,7 @@ var package_default = {
|
|
|
18259
18269
|
"bun-match-svg": "0.0.12",
|
|
18260
18270
|
"calculate-elbow": "^0.0.12",
|
|
18261
18271
|
"chokidar-cli": "^3.0.0",
|
|
18262
|
-
"circuit-json": "^0.0.
|
|
18272
|
+
"circuit-json": "^0.0.393",
|
|
18263
18273
|
"circuit-json-to-bpc": "^0.0.13",
|
|
18264
18274
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
18265
18275
|
"circuit-json-to-gltf": "^0.0.73",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1092",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"bun-match-svg": "0.0.12",
|
|
61
61
|
"calculate-elbow": "^0.0.12",
|
|
62
62
|
"chokidar-cli": "^3.0.0",
|
|
63
|
-
"circuit-json": "^0.0.
|
|
63
|
+
"circuit-json": "^0.0.393",
|
|
64
64
|
"circuit-json-to-bpc": "^0.0.13",
|
|
65
65
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
66
66
|
"circuit-json-to-gltf": "^0.0.73",
|