@tscircuit/core 0.0.1052 → 0.0.1054

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 {
@@ -1365,6 +1369,7 @@ declare class Port extends PrimitiveComponent<typeof portProps> {
1365
1369
  source_port_id: string | null;
1366
1370
  pcb_port_id: string | null;
1367
1371
  schematic_port_id: string | null;
1372
+ schematic_stem_line_id: string | null;
1368
1373
  schematicSymbolPortDef: SchSymbol["ports"][number] | null;
1369
1374
  matchedComponents: PrimitiveComponent[];
1370
1375
  facingDirection: "up" | "down" | "left" | "right" | null;
@@ -1484,6 +1489,7 @@ declare class Port extends PrimitiveComponent<typeof portProps> {
1484
1489
  */
1485
1490
  _getBestDisplayPinLabel(): string | undefined;
1486
1491
  doInitialSchematicPortRender(): void;
1492
+ doInitialSchematicSymbolResize(): void;
1487
1493
  _getSubcircuitConnectivityKey(): string | undefined;
1488
1494
  _setPositionFromLayout(newCenter: {
1489
1495
  x: number;
@@ -3275,6 +3281,18 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
3275
3281
  */
3276
3282
  private _addBoardInformationToSilkscreen;
3277
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;
3278
3296
  doInitialInflateSubcircuitCircuitJson(): void;
3279
3297
  doInitialPcbComponentRender(): void;
3280
3298
  removePcbComponentRender(): void;
@@ -3299,10 +3317,6 @@ declare class Subcircuit extends Group<typeof subcircuitProps> implements Subcir
3299
3317
  * Render this subcircuit in isolation if _subcircuitCachingEnabled is set.
3300
3318
  * This phase runs before InflateSubcircuitCircuitJson to prepare the
3301
3319
  * isolated circuit JSON that will be inflated.
3302
- *
3303
- * The rendering is synchronous - it loops until all async effects in the
3304
- * isolated circuit are complete, ensuring the cache is populated before
3305
- * processing the next subcircuit with potentially the same props.
3306
3320
  */
3307
3321
  doInitialRenderIsolatedSubcircuits(): void;
3308
3322
  /**