@tscircuit/core 0.0.1886 → 0.0.1888

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 +29 -11
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -16578,6 +16578,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
16578
16578
  // lib/components/normal-components/Board.ts
16579
16579
  import {
16580
16580
  dedupePcbDrcErrors as dedupePcbDrcErrors2,
16581
+ consolidatePcbOverlapErrors as consolidatePcbOverlapErrors2,
16581
16582
  runAllNetlistChecks,
16582
16583
  runAllPinSpecificationChecks,
16583
16584
  runAllPlacementChecks as runAllPlacementChecks2,
@@ -61596,7 +61597,7 @@ function Group_getRoutingPhasePlans(group) {
61596
61597
  var package_default = {
61597
61598
  name: "@tscircuit/core",
61598
61599
  type: "module",
61599
- version: "0.0.1885",
61600
+ version: "0.0.1887",
61600
61601
  types: "dist/index.d.ts",
61601
61602
  main: "dist/index.js",
61602
61603
  module: "dist/index.js",
@@ -61630,8 +61631,8 @@ var package_default = {
61630
61631
  "@tsci/tscircuit.ti": "github:tscircuit/ti#57e314be4b2b06bc546d4def7453e619604d1157",
61631
61632
  "@tscircuit/alphabet": "0.0.25",
61632
61633
  "@tscircuit/bga-fanout-solver": "github:tscircuit/bga-fanout-solver#247c835cb8d69b65e53891dcf869731079415b39",
61633
- "@tscircuit/capacity-autorouter": "^0.0.892",
61634
- "@tscircuit/checks": "^0.0.188",
61634
+ "@tscircuit/capacity-autorouter": "^0.0.899",
61635
+ "@tscircuit/checks": "^0.0.189",
61635
61636
  "@tscircuit/circuit-json-util": "^0.0.113",
61636
61637
  "@tscircuit/common": "^0.0.20",
61637
61638
  "@tscircuit/copper-pour-solver": "^0.0.54",
@@ -67324,7 +67325,10 @@ var Board_doInitialPcbCopperPourCleanup = (board) => {
67324
67325
  };
67325
67326
 
67326
67327
  // lib/components/normal-components/Board_doInitialPcbPlacementDesignRuleChecks.ts
67327
- import { runAllPlacementChecks } from "@tscircuit/checks";
67328
+ import {
67329
+ consolidatePcbOverlapErrors,
67330
+ runAllPlacementChecks
67331
+ } from "@tscircuit/checks";
67328
67332
  var resetPcbTraceRenderInSubtree = (renderable) => {
67329
67333
  if (renderable._pcbTraceRenderWaitingForPlacementChecks) {
67330
67334
  renderable.renderPhaseStates.PcbTraceRender.initialized = false;
@@ -67353,10 +67357,14 @@ var Board_doInitialPcbPlacementDesignRuleChecks = (board) => {
67353
67357
  board._queueAsyncEffect("board:pre-route-placement-checks", async () => {
67354
67358
  try {
67355
67359
  const placementCheckResults = await runAllPlacementChecks(
67356
- subcircuitCircuitJson
67360
+ subcircuitCircuitJson,
67361
+ { consolidateOverlaps: false }
67357
67362
  );
67358
- const relevantPlacementCheckResults = placementCheckResults.filter(
67359
- (result) => !board._isExpectedCastellatedHoleDrcError(result)
67363
+ const relevantPlacementCheckResults = consolidatePcbOverlapErrors(
67364
+ subcircuitCircuitJson,
67365
+ placementCheckResults.filter(
67366
+ (result) => !board._isExpectedCastellatedHoleDrcError(result)
67367
+ )
67360
67368
  );
67361
67369
  const newPlacementDiagnostics = relevantPlacementCheckResults.filter(
67362
67370
  (result) => !existingPlacementDiagnostics.some(
@@ -67959,9 +67967,14 @@ var Board = class extends Group5 {
67959
67967
  if (shouldRunPlacementChecks) {
67960
67968
  const existingPlacementDiagnostics = db.toArray();
67961
67969
  checksToRun.push(
67962
- runAllPlacementChecks2(circuitJson).then(
67963
- (results) => results.filter(
67964
- (result) => !this._isExpectedCastellatedHoleDrcError(result)
67970
+ runAllPlacementChecks2(circuitJson, {
67971
+ consolidateOverlaps: false
67972
+ }).then(
67973
+ (results) => consolidatePcbOverlapErrors2(
67974
+ circuitJson,
67975
+ results.filter(
67976
+ (result) => !this._isExpectedCastellatedHoleDrcError(result)
67977
+ )
67965
67978
  ).filter(
67966
67979
  (result) => !existingPlacementDiagnostics.some(
67967
67980
  (existing) => existing.type === result.type && "message" in existing && existing.message === result.message
@@ -67991,7 +68004,12 @@ var Board = class extends Group5 {
67991
68004
  }
67992
68005
  }
67993
68006
  const checkResults = await Promise.all(checksToRun);
67994
- db.insertAll(dedupePcbDrcErrors2(checkResults.flat()));
68007
+ db.insertAll(
68008
+ consolidatePcbOverlapErrors2(
68009
+ circuitJson,
68010
+ dedupePcbDrcErrors2(checkResults.flat())
68011
+ )
68012
+ );
67995
68013
  };
67996
68014
  const subcircuit = db.subtree({ subcircuit_id: this.subcircuit_id });
67997
68015
  const subcircuitCircuitJson = subcircuit.toArray();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1886",
4
+ "version": "0.0.1888",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -35,8 +35,8 @@
35
35
  "@tsci/tscircuit.ti": "github:tscircuit/ti#57e314be4b2b06bc546d4def7453e619604d1157",
36
36
  "@tscircuit/alphabet": "0.0.25",
37
37
  "@tscircuit/bga-fanout-solver": "github:tscircuit/bga-fanout-solver#247c835cb8d69b65e53891dcf869731079415b39",
38
- "@tscircuit/capacity-autorouter": "^0.0.892",
39
- "@tscircuit/checks": "^0.0.188",
38
+ "@tscircuit/capacity-autorouter": "^0.0.899",
39
+ "@tscircuit/checks": "^0.0.189",
40
40
  "@tscircuit/circuit-json-util": "^0.0.113",
41
41
  "@tscircuit/common": "^0.0.20",
42
42
  "@tscircuit/copper-pour-solver": "^0.0.54",