@tscircuit/core 0.0.399 → 0.0.401
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 +3 -2
- package/dist/index.js +11 -2
- package/package.json +1 -1
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> {
|
|
@@ -11822,7 +11823,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
|
|
|
11822
11823
|
}
|
|
11823
11824
|
|
|
11824
11825
|
declare class SchematicText extends PrimitiveComponent<typeof schematicTextProps> {
|
|
11825
|
-
|
|
11826
|
+
isSchematicPrimitive: boolean;
|
|
11826
11827
|
get config(): {
|
|
11827
11828
|
componentName: string;
|
|
11828
11829
|
zodProps: zod.ZodObject<{
|
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
|
|
@@ -8123,7 +8132,7 @@ var Switch = class extends NormalComponent {
|
|
|
8123
8132
|
// lib/components/primitive-components/SchematicText.ts
|
|
8124
8133
|
import { schematicTextProps } from "@tscircuit/props";
|
|
8125
8134
|
var SchematicText = class extends PrimitiveComponent2 {
|
|
8126
|
-
|
|
8135
|
+
isSchematicPrimitive = true;
|
|
8127
8136
|
get config() {
|
|
8128
8137
|
return {
|
|
8129
8138
|
componentName: "SchematicText",
|
|
@@ -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.
|
|
8169
|
+
version: "0.0.400",
|
|
8161
8170
|
types: "dist/index.d.ts",
|
|
8162
8171
|
main: "dist/index.js",
|
|
8163
8172
|
module: "dist/index.js",
|