@tscircuit/core 0.0.875 → 0.0.877

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 +21 -8
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -3902,12 +3902,20 @@ var Port = class extends PrimitiveComponent2 {
3902
3902
  const parentNormalComponent = this.getParentNormalComponent();
3903
3903
  const parentWithSourceId = this.parent?.source_component_id ? this.parent : parentNormalComponent;
3904
3904
  const source_component_id = parentWithSourceId?.source_component_id ?? null;
3905
+ const pinAttributes = this._getMatchingPinAttributes();
3906
+ const portAttributesFromParent = {};
3907
+ for (const attributes of pinAttributes) {
3908
+ if (attributes.mustBeConnected !== void 0) {
3909
+ portAttributesFromParent.must_be_connected = attributes.mustBeConnected;
3910
+ }
3911
+ }
3905
3912
  const source_port = db.source_port.insert({
3906
3913
  name: props.name,
3907
3914
  pin_number: props.pinNumber,
3908
3915
  port_hints,
3909
3916
  source_component_id,
3910
- subcircuit_id: this.getSubcircuit()?.subcircuit_id
3917
+ subcircuit_id: this.getSubcircuit()?.subcircuit_id,
3918
+ ...portAttributesFromParent
3911
3919
  });
3912
3920
  this.source_port_id = source_port.source_port_id;
3913
3921
  }
@@ -14042,7 +14050,8 @@ import {
14042
14050
  checkPcbTracesOutOfBoard,
14043
14051
  checkDifferentNetViaSpacing,
14044
14052
  checkSameNetViaSpacing,
14045
- checkPcbComponentOverlap
14053
+ checkPcbComponentOverlap,
14054
+ checkPinMustBeConnected
14046
14055
  } from "@tscircuit/checks";
14047
14056
  import { getBoundsFromPoints as getBoundsFromPoints4 } from "@tscircuit/math-utils";
14048
14057
  var MIN_EFFECTIVE_BORDER_RADIUS_MM = 0.01;
@@ -14362,6 +14371,10 @@ var Board = class extends Group6 {
14362
14371
  for (const error of pcbComponentOverlapErrors) {
14363
14372
  db.pcb_footprint_overlap_error.insert(error);
14364
14373
  }
14374
+ const sourcePinMustBeConnectedErrors = checkPinMustBeConnected(db.toArray());
14375
+ for (const error of sourcePinMustBeConnectedErrors) {
14376
+ db.source_pin_must_be_connected_error.insert(error);
14377
+ }
14365
14378
  }
14366
14379
  _emitRenderLifecycleEvent(phase, startOrEnd) {
14367
14380
  super._emitRenderLifecycleEvent(phase, startOrEnd);
@@ -18575,7 +18588,7 @@ import { identity as identity6 } from "transformation-matrix";
18575
18588
  var package_default = {
18576
18589
  name: "@tscircuit/core",
18577
18590
  type: "module",
18578
- version: "0.0.874",
18591
+ version: "0.0.876",
18579
18592
  types: "dist/index.d.ts",
18580
18593
  main: "dist/index.js",
18581
18594
  module: "dist/index.js",
@@ -18607,7 +18620,7 @@ var package_default = {
18607
18620
  "@biomejs/biome": "^1.8.3",
18608
18621
  "@resvg/resvg-js": "^2.6.2",
18609
18622
  "@tscircuit/capacity-autorouter": "^0.0.140",
18610
- "@tscircuit/checks": "^0.0.85",
18623
+ "@tscircuit/checks": "^0.0.87",
18611
18624
  "@tscircuit/circuit-json-util": "^0.0.72",
18612
18625
  "@tscircuit/common": "^0.0.20",
18613
18626
  "@tscircuit/copper-pour-solver": "^0.0.14",
@@ -18618,7 +18631,7 @@ var package_default = {
18618
18631
  "@tscircuit/matchpack": "^0.0.16",
18619
18632
  "@tscircuit/math-utils": "^0.0.29",
18620
18633
  "@tscircuit/miniflex": "^0.0.4",
18621
- "@tscircuit/ngspice-spice-engine": "^0.0.3",
18634
+ "@tscircuit/ngspice-spice-engine": "^0.0.4",
18622
18635
  "@tscircuit/props": "^0.0.410",
18623
18636
  "@tscircuit/schematic-autolayout": "^0.0.6",
18624
18637
  "@tscircuit/schematic-match-adapt": "^0.0.16",
@@ -18633,13 +18646,13 @@ var package_default = {
18633
18646
  "bun-match-svg": "0.0.12",
18634
18647
  "calculate-elbow": "^0.0.12",
18635
18648
  "chokidar-cli": "^3.0.0",
18636
- "circuit-json": "^0.0.319",
18649
+ "circuit-json": "^0.0.321",
18637
18650
  "circuit-json-to-bpc": "^0.0.13",
18638
18651
  "circuit-json-to-connectivity-map": "^0.0.22",
18639
18652
  "circuit-json-to-gltf": "^0.0.31",
18640
18653
  "circuit-json-to-simple-3d": "^0.0.9",
18641
- "circuit-json-to-spice": "^0.0.24",
18642
- "circuit-to-svg": "^0.0.275",
18654
+ "circuit-json-to-spice": "^0.0.25",
18655
+ "circuit-to-svg": "^0.0.277",
18643
18656
  concurrently: "^9.1.2",
18644
18657
  "connectivity-map": "^1.0.0",
18645
18658
  debug: "^4.3.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.875",
4
+ "version": "0.0.877",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "@biomejs/biome": "^1.8.3",
34
34
  "@resvg/resvg-js": "^2.6.2",
35
35
  "@tscircuit/capacity-autorouter": "^0.0.140",
36
- "@tscircuit/checks": "^0.0.85",
36
+ "@tscircuit/checks": "^0.0.87",
37
37
  "@tscircuit/circuit-json-util": "^0.0.72",
38
38
  "@tscircuit/common": "^0.0.20",
39
39
  "@tscircuit/copper-pour-solver": "^0.0.14",
@@ -44,7 +44,7 @@
44
44
  "@tscircuit/matchpack": "^0.0.16",
45
45
  "@tscircuit/math-utils": "^0.0.29",
46
46
  "@tscircuit/miniflex": "^0.0.4",
47
- "@tscircuit/ngspice-spice-engine": "^0.0.3",
47
+ "@tscircuit/ngspice-spice-engine": "^0.0.4",
48
48
  "@tscircuit/props": "^0.0.410",
49
49
  "@tscircuit/schematic-autolayout": "^0.0.6",
50
50
  "@tscircuit/schematic-match-adapt": "^0.0.16",
@@ -59,13 +59,13 @@
59
59
  "bun-match-svg": "0.0.12",
60
60
  "calculate-elbow": "^0.0.12",
61
61
  "chokidar-cli": "^3.0.0",
62
- "circuit-json": "^0.0.319",
62
+ "circuit-json": "^0.0.321",
63
63
  "circuit-json-to-bpc": "^0.0.13",
64
64
  "circuit-json-to-connectivity-map": "^0.0.22",
65
65
  "circuit-json-to-gltf": "^0.0.31",
66
66
  "circuit-json-to-simple-3d": "^0.0.9",
67
- "circuit-json-to-spice": "^0.0.24",
68
- "circuit-to-svg": "^0.0.275",
67
+ "circuit-json-to-spice": "^0.0.25",
68
+ "circuit-to-svg": "^0.0.277",
69
69
  "concurrently": "^9.1.2",
70
70
  "connectivity-map": "^1.0.0",
71
71
  "debug": "^4.3.6",