@tscircuit/core 0.0.399 → 0.0.400

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
@@ -156,7 +156,7 @@ interface SimpleRouteJson {
156
156
  traces?: SimplifiedPcbTrace[];
157
157
  }
158
158
 
159
- type RootCircuitEventName = "asyncEffect:start" | "asyncEffect:end" | "renderable:renderLifecycle:anyEvent" | `renderable:renderLifecycle:${RenderPhase}:start` | `renderable:renderLifecycle:${RenderPhase}:end` | "external:evalError" | "autorouting:start" | "autorouting:end" | "autorouting:error" | "autorouting:progress" | "renderComplete";
159
+ type RootCircuitEventName = "asyncEffect:start" | "asyncEffect:end" | "renderable:renderLifecycle:anyEvent" | `renderable:renderLifecycle:${RenderPhase}:start` | `renderable:renderLifecycle:${RenderPhase}:end` | `board:renderPhaseStarted` | "external:evalError" | "autorouting:start" | "autorouting:end" | "autorouting:error" | "autorouting:progress" | "renderComplete";
160
160
  interface AutoroutingStartEvent {
161
161
  type: "autorouting:start";
162
162
  subcircuit_id: string;
@@ -1686,6 +1686,7 @@ declare class Board extends Group<typeof boardProps> {
1686
1686
  _computePcbGlobalTransformBeforeLayout(): Matrix;
1687
1687
  doInitialPcbDesignRuleChecks(): void;
1688
1688
  updatePcbDesignRuleChecks(): void;
1689
+ _emitRenderLifecycleEvent(phase: RenderPhase, startOrEnd: "start" | "end"): void;
1689
1690
  }
1690
1691
 
1691
1692
  declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePorts> {
package/dist/index.js CHANGED
@@ -6938,6 +6938,15 @@ var Board = class extends Group {
6938
6938
  db.pcb_trace_error.insert(error);
6939
6939
  }
6940
6940
  }
6941
+ _emitRenderLifecycleEvent(phase, startOrEnd) {
6942
+ super._emitRenderLifecycleEvent(phase, startOrEnd);
6943
+ if (startOrEnd === "start") {
6944
+ this.root?.emit("board:renderPhaseStarted", {
6945
+ renderId: this._renderId,
6946
+ phase
6947
+ });
6948
+ }
6949
+ }
6941
6950
  };
6942
6951
 
6943
6952
  // lib/components/normal-components/Capacitor.ts
@@ -8157,7 +8166,7 @@ import { identity as identity4 } from "transformation-matrix";
8157
8166
  var package_default = {
8158
8167
  name: "@tscircuit/core",
8159
8168
  type: "module",
8160
- version: "0.0.398",
8169
+ version: "0.0.399",
8161
8170
  types: "dist/index.d.ts",
8162
8171
  main: "dist/index.js",
8163
8172
  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.399",
4
+ "version": "0.0.400",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",