@tscircuit/core 0.0.332 → 0.0.333
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 +1 -1
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ interface SchematicBoxDimensions {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
type RootCircuitEventName = "asyncEffect:start" | "asyncEffect:end" | "renderable:renderLifecycle:anyEvent" | `renderable:renderLifecycle:${RenderPhase}:start` | `renderable:renderLifecycle:${RenderPhase}:end` | "external:evalError" | "autorouting:start" | "autorouting:end" | "autorouting:progress";
|
|
107
|
+
type RootCircuitEventName = "asyncEffect:start" | "asyncEffect:end" | "renderable:renderLifecycle:anyEvent" | `renderable:renderLifecycle:${RenderPhase}:start` | `renderable:renderLifecycle:${RenderPhase}:end` | "external:evalError" | "autorouting:start" | "autorouting:end" | "autorouting:progress" | "renderComplete";
|
|
108
108
|
declare class RootCircuit {
|
|
109
109
|
firstChild: PrimitiveComponent | null;
|
|
110
110
|
children: PrimitiveComponent[];
|
package/dist/index.js
CHANGED
|
@@ -5836,6 +5836,13 @@ var Group = class extends NormalComponent {
|
|
|
5836
5836
|
});
|
|
5837
5837
|
}
|
|
5838
5838
|
);
|
|
5839
|
+
autorouter.on("progress", (event) => {
|
|
5840
|
+
this.root?.emit("autorouting:progress", {
|
|
5841
|
+
subcircuit_id: this.subcircuit_id,
|
|
5842
|
+
componentDisplayName: this.getString(),
|
|
5843
|
+
...event
|
|
5844
|
+
});
|
|
5845
|
+
});
|
|
5839
5846
|
autorouter.start();
|
|
5840
5847
|
try {
|
|
5841
5848
|
const traces = await routingPromise;
|
|
@@ -7276,6 +7283,7 @@ var RootCircuit = class {
|
|
|
7276
7283
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
7277
7284
|
this.render();
|
|
7278
7285
|
}
|
|
7286
|
+
this.emit("renderComplete");
|
|
7279
7287
|
}
|
|
7280
7288
|
_hasIncompleteAsyncEffects() {
|
|
7281
7289
|
return this.children.some((child) => {
|