@tscircuit/core 0.0.367 → 0.0.368

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 CHANGED
@@ -1041,6 +1041,7 @@ declare class Group<Props extends z.ZodType<any, any, any> = typeof groupProps>
1041
1041
 
1042
1042
  declare class Board extends Group<typeof boardProps> {
1043
1043
  pcb_board_id: string | null;
1044
+ _drcChecksComplete: boolean;
1044
1045
  get isSubcircuit(): boolean;
1045
1046
  get config(): {
1046
1047
  componentName: string;
@@ -1667,6 +1668,7 @@ declare class Board extends Group<typeof boardProps> {
1667
1668
  removePcbComponentRender(): void;
1668
1669
  _computePcbGlobalTransformBeforeLayout(): Matrix;
1669
1670
  doInitialPcbDesignRuleChecks(): void;
1671
+ updatePcbDesignRuleChecks(): void;
1670
1672
  }
1671
1673
 
1672
1674
  declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePorts> {
package/dist/index.js CHANGED
@@ -6234,6 +6234,7 @@ var Group = class extends NormalComponent {
6234
6234
  import { checkEachPcbTraceNonOverlapping as checkEachPcbTraceNonOverlapping2 } from "@tscircuit/checks";
6235
6235
  var Board = class extends Group {
6236
6236
  pcb_board_id = null;
6237
+ _drcChecksComplete = false;
6237
6238
  get isSubcircuit() {
6238
6239
  return true;
6239
6240
  }
@@ -6331,8 +6332,15 @@ var Board = class extends Group {
6331
6332
  doInitialPcbDesignRuleChecks() {
6332
6333
  if (this.root?.pcbDisabled) return;
6333
6334
  if (this.getInheritedProperty("routingDisabled")) return;
6334
- const { db } = this.root;
6335
6335
  super.doInitialPcbDesignRuleChecks();
6336
+ }
6337
+ updatePcbDesignRuleChecks() {
6338
+ if (this.root?.pcbDisabled) return;
6339
+ if (this.getInheritedProperty("routingDisabled")) return;
6340
+ const { db } = this.root;
6341
+ if (!this._areChildSubcircuitsRouted()) return;
6342
+ if (this._drcChecksComplete) return;
6343
+ this._drcChecksComplete = true;
6336
6344
  const errors = checkEachPcbTraceNonOverlapping2(db.toArray());
6337
6345
  for (const error of errors) {
6338
6346
  db.pcb_trace_error.insert(error);
@@ -7433,7 +7441,7 @@ import { identity as identity4 } from "transformation-matrix";
7433
7441
  var package_default = {
7434
7442
  name: "@tscircuit/core",
7435
7443
  type: "module",
7436
- version: "0.0.366",
7444
+ version: "0.0.367",
7437
7445
  types: "dist/index.d.ts",
7438
7446
  main: "dist/index.js",
7439
7447
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.367",
4
+ "version": "0.0.368",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",