@tscircuit/core 0.0.1053 → 0.0.1055

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
@@ -392,6 +392,10 @@ interface ISubcircuit extends PrimitiveComponent {
392
392
  subcircuit_id: string | null;
393
393
  getNormalComponentNameMap?: () => Map<string, NormalComponent[]>;
394
394
  _isInflatedFromCircuitJson: boolean;
395
+ _isIsolatedSubcircuit: boolean;
396
+ _isolatedCircuitJson: AnyCircuitElement[] | null;
397
+ _normalComponentNameMap: Map<string, NormalComponent[]> | null;
398
+ getSubcircuitPropHash?(): string;
395
399
  }
396
400
 
397
401
  interface SchematicSymbolBounds {
@@ -3277,6 +3281,18 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
3277
3281
  */
3278
3282
  private _addBoardInformationToSilkscreen;
3279
3283
  doInitialSourceRender(): void;
3284
+ /**
3285
+ * Computes a hash of this board's props and children for caching.
3286
+ * Position/identity props are excluded so identical boards at
3287
+ * different locations share the same hash.
3288
+ */
3289
+ getSubcircuitPropHash(): string;
3290
+ /**
3291
+ * Render this board in isolation if _subcircuitCachingEnabled is set.
3292
+ * This phase runs before InflateSubcircuitCircuitJson to prepare the
3293
+ * isolated circuit JSON that will be inflated.
3294
+ */
3295
+ doInitialRenderIsolatedSubcircuits(): void;
3280
3296
  doInitialInflateSubcircuitCircuitJson(): void;
3281
3297
  doInitialPcbComponentRender(): void;
3282
3298
  removePcbComponentRender(): void;
@@ -3301,10 +3317,6 @@ declare class Subcircuit extends Group<typeof subcircuitProps> implements Subcir
3301
3317
  * Render this subcircuit in isolation if _subcircuitCachingEnabled is set.
3302
3318
  * This phase runs before InflateSubcircuitCircuitJson to prepare the
3303
3319
  * isolated circuit JSON that will be inflated.
3304
- *
3305
- * The rendering is synchronous - it loops until all async effects in the
3306
- * isolated circuit are complete, ensuring the cache is populated before
3307
- * processing the next subcircuit with potentially the same props.
3308
3320
  */
3309
3321
  doInitialRenderIsolatedSubcircuits(): void;
3310
3322
  /**