@tscircuit/circuit-json-util 0.0.50 → 0.0.51

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
@@ -5586,4 +5586,10 @@ declare const findBoundsAndCenter: (elements: AnyCircuitElement[]) => {
5586
5586
 
5587
5587
  declare const getPrimaryId: (element: AnyCircuitElement) => string;
5588
5588
 
5589
- export { type CircuitJsonInputUtilObjects, type CircuitJsonOps, type CircuitJsonUtilObjects, type CircuitJsonUtilOptions, type GetCircuitJsonUtilFn, type GetIndexedCircuitJsonUtilFn, type IndexedCircuitJsonUtilOptions, applySelector, applySelectorAST, cju, cjuIndexed, directionToVec, findBoundsAndCenter, getBoundsOfPcbElements, getElementById, getElementId, getPrimaryId, getReadableNameForElement, getReadableNameForPcbPort, getReadableNameForPcbSmtpad, getReadableNameForPcbTrace, oppositeDirection, oppositeSide, rotateClockwise, rotateCounterClockwise, rotateDirection, su, transformPCBElement, transformPCBElements, transformSchematicElement, transformSchematicElements, vecToDirection };
5589
+ type SubtreeOptions = {
5590
+ subcircuit_id?: string;
5591
+ source_group_id?: string;
5592
+ };
5593
+ declare function buildSubtree(soup: AnyCircuitElement[], opts: SubtreeOptions): AnyCircuitElement[];
5594
+
5595
+ export { type CircuitJsonInputUtilObjects, type CircuitJsonOps, type CircuitJsonUtilObjects, type CircuitJsonUtilOptions, type GetCircuitJsonUtilFn, type GetIndexedCircuitJsonUtilFn, type IndexedCircuitJsonUtilOptions, type SubtreeOptions, applySelector, applySelectorAST, buildSubtree, cju, cjuIndexed, directionToVec, findBoundsAndCenter, getBoundsOfPcbElements, getElementById, getElementId, getPrimaryId, getReadableNameForElement, getReadableNameForPcbPort, getReadableNameForPcbSmtpad, getReadableNameForPcbTrace, oppositeDirection, oppositeSide, rotateClockwise, rotateCounterClockwise, rotateDirection, su, transformPCBElement, transformPCBElements, transformSchematicElement, transformSchematicElements, vecToDirection };
package/dist/index.js CHANGED
@@ -1389,6 +1389,7 @@ var getPrimaryId = (element) => {
1389
1389
  export {
1390
1390
  applySelector,
1391
1391
  applySelectorAST,
1392
+ buildSubtree,
1392
1393
  cju_default as cju,
1393
1394
  cju_indexed_default as cjuIndexed,
1394
1395
  directionToVec,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/circuit-json-util",
3
3
  "type": "module",
4
- "version": "0.0.50",
4
+ "version": "0.0.51",
5
5
  "description": "Utility library for working with tscircuit circuit json",
6
6
  "files": [
7
7
  "dist"