@tscircuit/core 0.0.200 → 0.0.202

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
@@ -42,6 +42,8 @@ declare abstract class Renderable implements IRenderable {
42
42
  protected _markDirty(phase: RenderPhase): void;
43
43
  protected _queueAsyncEffect(effect: () => Promise<void>): void;
44
44
  _hasIncompleteAsyncEffects(): boolean;
45
+ getCurrentRenderPhase(): RenderPhase | null;
46
+ getRenderGraph(): Record<string, any>;
45
47
  runRenderCycle(): void;
46
48
  /**
47
49
  * This runs all the render methods for a given phase, calling one of:
package/dist/index.js CHANGED
@@ -146,6 +146,21 @@ var Renderable = class {
146
146
  _hasIncompleteAsyncEffects() {
147
147
  return this._asyncEffects.some((effect) => !effect.complete);
148
148
  }
149
+ getCurrentRenderPhase() {
150
+ return this._currentRenderPhase;
151
+ }
152
+ getRenderGraph() {
153
+ const graph = {
154
+ id: this._renderId,
155
+ currentPhase: this._currentRenderPhase,
156
+ renderPhaseStates: this.renderPhaseStates,
157
+ shouldBeRemoved: this.shouldBeRemoved,
158
+ children: this.children.map(
159
+ (child) => child.getRenderGraph()
160
+ )
161
+ };
162
+ return graph;
163
+ }
149
164
  runRenderCycle() {
150
165
  for (const renderPhase of orderedRenderPhases) {
151
166
  this.runRenderPhaseForChildren(renderPhase);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.200",
4
+ "version": "0.0.202",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "@types/debug": "^4.1.12",
26
26
  "@types/react": "^18.3.3",
27
27
  "@types/react-reconciler": "^0.28.8",
28
- "bun-match-svg": "0.0.2",
28
+ "bun-match-svg": "0.0.8",
29
29
  "circuit-to-svg": "^0.0.84",
30
30
  "debug": "^4.3.6",
31
31
  "howfat": "^0.3.8",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@lume/kiwi": "^0.4.3",
41
- "@tscircuit/footprinter": "^0.0.77",
41
+ "@tscircuit/footprinter": "^0.0.89",
42
42
  "@tscircuit/infgrid-ijump-astar": "^0.0.24",
43
43
  "@tscircuit/math-utils": "^0.0.5",
44
44
  "@tscircuit/props": "^0.0.105",