@tscircuit/core 0.0.1097 → 0.0.1099

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 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.props.portHints) {
6274
+ if (!this._parsedProps.portHints) {
6275
6275
  return;
6276
6276
  }
6277
6277
  for (const port of parentPorts) {
6278
- if (port.isMatchingAnyOf(this.props.portHints)) {
6278
+ if (port.isMatchingAnyOf(this._parsedProps.portHints)) {
6279
6279
  this.matchedPort = port;
6280
6280
  port.registerMatch(this);
6281
6281
  return;
@@ -11155,6 +11155,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
11155
11155
  // lib/components/normal-components/Board.ts
11156
11156
  import {
11157
11157
  runAllNetlistChecks,
11158
+ runAllPinSpecificationChecks,
11158
11159
  runAllPlacementChecks,
11159
11160
  runAllRoutingChecks
11160
11161
  } from "@tscircuit/checks";
@@ -18210,7 +18211,7 @@ import { identity as identity5 } from "transformation-matrix";
18210
18211
  var package_default = {
18211
18212
  name: "@tscircuit/core",
18212
18213
  type: "module",
18213
- version: "0.0.1096",
18214
+ version: "0.0.1098",
18214
18215
  types: "dist/index.d.ts",
18215
18216
  main: "dist/index.js",
18216
18217
  module: "dist/index.js",
@@ -18243,7 +18244,7 @@ var package_default = {
18243
18244
  "@resvg/resvg-js": "^2.6.2",
18244
18245
  "@tscircuit/alphabet": "0.0.18",
18245
18246
  "@tscircuit/capacity-autorouter": "^0.0.320",
18246
- "@tscircuit/checks": "0.0.104",
18247
+ "@tscircuit/checks": "0.0.107",
18247
18248
  "@tscircuit/circuit-json-util": "^0.0.82",
18248
18249
  "@tscircuit/common": "^0.0.20",
18249
18250
  "@tscircuit/copper-pour-solver": "^0.0.20",
@@ -18255,7 +18256,7 @@ var package_default = {
18255
18256
  "@tscircuit/math-utils": "^0.0.29",
18256
18257
  "@tscircuit/miniflex": "^0.0.4",
18257
18258
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
18258
- "@tscircuit/props": "^0.0.490",
18259
+ "@tscircuit/props": "^0.0.494",
18259
18260
  "@tscircuit/schematic-match-adapt": "^0.0.16",
18260
18261
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
18261
18262
  "@tscircuit/solver-utils": "^0.0.3",
@@ -19132,9 +19133,13 @@ var Board = class extends Group6 {
19132
19133
  const pcbDisabled = this.root?.pcbDisabled;
19133
19134
  const drcChecksDisabled = this.root?.platform?.drcChecksDisabled ?? this.getInheritedProperty("drcChecksDisabled");
19134
19135
  const netlistDrcChecksDisabled = this.root?.platform?.netlistDrcChecksDisabled ?? this.getInheritedProperty("netlistDrcChecksDisabled");
19136
+ const pinSpecificationDrcChecksDisabled = this.getInheritedProperty(
19137
+ "pinSpecificationDrcChecksDisabled"
19138
+ );
19135
19139
  const placementDrcChecksDisabled = this.root?.platform?.placementDrcChecksDisabled ?? this.getInheritedProperty("placementDrcChecksDisabled");
19136
19140
  const routingDrcChecksDisabled = this.root?.platform?.routingDrcChecksDisabled ?? this.getInheritedProperty("routingDrcChecksDisabled");
19137
19141
  const shouldRunNetlistChecks = !drcChecksDisabled && !netlistDrcChecksDisabled;
19142
+ const shouldRunPinSpecificationChecks = !drcChecksDisabled && !pinSpecificationDrcChecksDisabled;
19138
19143
  const shouldRunPlacementChecks = !drcChecksDisabled && !pcbDisabled && !placementDrcChecksDisabled;
19139
19144
  const shouldRunRoutingChecks = !drcChecksDisabled && !pcbDisabled && !routingDisabled && !routingDrcChecksDisabled;
19140
19145
  if (shouldRunRoutingChecks && this._hasIncompleteAsyncEffectsInSubtreeForPhase("PcbTraceRender"))
@@ -19160,6 +19165,11 @@ var Board = class extends Group6 {
19160
19165
  runAllNetlistChecks(circuitJson)
19161
19166
  );
19162
19167
  }
19168
+ if (shouldRunPinSpecificationChecks) {
19169
+ checksToRun.push(
19170
+ runAllPinSpecificationChecks(circuitJson)
19171
+ );
19172
+ }
19163
19173
  const checkResults = await Promise.all(checksToRun);
19164
19174
  db.insertAll(checkResults.flat());
19165
19175
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1097",
4
+ "version": "0.0.1099",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "@resvg/resvg-js": "^2.6.2",
35
35
  "@tscircuit/alphabet": "0.0.18",
36
36
  "@tscircuit/capacity-autorouter": "^0.0.320",
37
- "@tscircuit/checks": "0.0.104",
37
+ "@tscircuit/checks": "0.0.107",
38
38
  "@tscircuit/circuit-json-util": "^0.0.82",
39
39
  "@tscircuit/common": "^0.0.20",
40
40
  "@tscircuit/copper-pour-solver": "^0.0.20",
@@ -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.490",
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",