@tscircuit/core 0.0.1096 → 0.0.1098
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 +421 -2
- package/dist/index.js +20 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -6271,11 +6271,11 @@ var PlatedHole = class extends PrimitiveComponent2 {
|
|
|
6271
6271
|
const parentPorts = this.getPrimitiveContainer()?.selectAll(
|
|
6272
6272
|
"port"
|
|
6273
6273
|
);
|
|
6274
|
-
if (!this.
|
|
6274
|
+
if (!this._parsedProps.portHints) {
|
|
6275
6275
|
return;
|
|
6276
6276
|
}
|
|
6277
6277
|
for (const port of parentPorts) {
|
|
6278
|
-
if (port.isMatchingAnyOf(this.
|
|
6278
|
+
if (port.isMatchingAnyOf(this._parsedProps.portHints)) {
|
|
6279
6279
|
this.matchedPort = port;
|
|
6280
6280
|
port.registerMatch(this);
|
|
6281
6281
|
return;
|
|
@@ -18210,7 +18210,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
18210
18210
|
var package_default = {
|
|
18211
18211
|
name: "@tscircuit/core",
|
|
18212
18212
|
type: "module",
|
|
18213
|
-
version: "0.0.
|
|
18213
|
+
version: "0.0.1097",
|
|
18214
18214
|
types: "dist/index.d.ts",
|
|
18215
18215
|
main: "dist/index.js",
|
|
18216
18216
|
module: "dist/index.js",
|
|
@@ -18255,7 +18255,7 @@ var package_default = {
|
|
|
18255
18255
|
"@tscircuit/math-utils": "^0.0.29",
|
|
18256
18256
|
"@tscircuit/miniflex": "^0.0.4",
|
|
18257
18257
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
18258
|
-
"@tscircuit/props": "^0.0.
|
|
18258
|
+
"@tscircuit/props": "^0.0.494",
|
|
18259
18259
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
18260
18260
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
|
18261
18261
|
"@tscircuit/solver-utils": "^0.0.3",
|
|
@@ -20642,6 +20642,14 @@ var VoltageSource = class extends NormalComponent3 {
|
|
|
20642
20642
|
}
|
|
20643
20643
|
}
|
|
20644
20644
|
doInitialPcbComponentRender() {
|
|
20645
|
+
const hasExplicitPcbPosition = this._hasUserDefinedPcbPosition();
|
|
20646
|
+
if (!this._parsedProps.footprint) {
|
|
20647
|
+
if (!hasExplicitPcbPosition) return;
|
|
20648
|
+
throw new Error(
|
|
20649
|
+
"VoltageSource requires a footprint when pcbX/pcbY or pcb edge position props are used"
|
|
20650
|
+
);
|
|
20651
|
+
}
|
|
20652
|
+
super.doInitialPcbComponentRender();
|
|
20645
20653
|
}
|
|
20646
20654
|
initPorts() {
|
|
20647
20655
|
super.initPorts({
|
|
@@ -20725,6 +20733,14 @@ var CurrentSource = class extends NormalComponent3 {
|
|
|
20725
20733
|
}
|
|
20726
20734
|
}
|
|
20727
20735
|
doInitialPcbComponentRender() {
|
|
20736
|
+
const hasExplicitPcbPosition = this._hasUserDefinedPcbPosition();
|
|
20737
|
+
if (!this._parsedProps.footprint) {
|
|
20738
|
+
if (!hasExplicitPcbPosition) return;
|
|
20739
|
+
throw new Error(
|
|
20740
|
+
"CurrentSource requires a footprint when pcbX/pcbY or pcb edge position props are used"
|
|
20741
|
+
);
|
|
20742
|
+
}
|
|
20743
|
+
super.doInitialPcbComponentRender();
|
|
20728
20744
|
}
|
|
20729
20745
|
initPorts() {
|
|
20730
20746
|
super.initPorts({
|
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.1098",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@tscircuit/math-utils": "^0.0.29",
|
|
47
47
|
"@tscircuit/miniflex": "^0.0.4",
|
|
48
48
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
49
|
-
"@tscircuit/props": "^0.0.
|
|
49
|
+
"@tscircuit/props": "^0.0.494",
|
|
50
50
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
51
51
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
|
52
52
|
"@tscircuit/solver-utils": "^0.0.3",
|