@elyx-code/project-logic-tree 0.0.6752 → 0.0.6754
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.cjs +63 -63
- package/dist/index.d.ts +24 -4
- package/dist/index.js +2978 -2950
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14263,6 +14263,25 @@ export declare function flattenLoopAsync(entity: ILoop | ILoopTransfer | ILoopSh
|
|
|
14263
14263
|
allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
|
|
14264
14264
|
} & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
|
|
14265
14265
|
|
|
14266
|
+
/**
|
|
14267
|
+
* In the draggable canvas, entities are groups as nodes.
|
|
14268
|
+
* Some entity types represent the top nodes, and the rest are nested within them.
|
|
14269
|
+
* With the exception of built-in entities, all entities can be traced up the tree to a top-level draggable node.
|
|
14270
|
+
* This function takes a node entity and flattens it and all its nested entities into a record of entities by their IDs.
|
|
14271
|
+
*
|
|
14272
|
+
* @param entity
|
|
14273
|
+
* @param allKnownEntities
|
|
14274
|
+
* @param seenEntities
|
|
14275
|
+
* @param options
|
|
14276
|
+
* @returns {Record<EntityId, DraggableElementTransfer | DraggableElement | DraggableElementShallowTransfer | CanvasEntityState>}
|
|
14277
|
+
*/
|
|
14278
|
+
export declare function flattenNodeAsRecord(entity: DraggableElementTransfer | DraggableElement | DraggableElementShallowTransfer | CanvasEntityState, allKnownEntities: Record<EntityId, DraggableElementTransfer | DraggableElement | DraggableElementShallowTransfer | CanvasEntityState>, seenEntities?: Set<EntityId>, options?: {
|
|
14279
|
+
ignoreBuiltInBaseEntities?: boolean;
|
|
14280
|
+
allBuiltInEntityIds?: Set<EntityId>;
|
|
14281
|
+
entityMaps?: Map<string, string>;
|
|
14282
|
+
debug?: boolean;
|
|
14283
|
+
}): Record<EntityId, UserManagedElementTransfer | UserManagedElement | UserManagedElementShallowTransfer | UserManagedEntityState>;
|
|
14284
|
+
|
|
14266
14285
|
export declare function flattenOneLevel(list: unknown): any[];
|
|
14267
14286
|
|
|
14268
14287
|
export declare function flattenOperation(entity: IOperation | IOperationTransfer | IOperationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
@@ -29546,13 +29565,13 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
29546
29565
|
dataTypes: DataTypeState[];
|
|
29547
29566
|
project: ProjectState;
|
|
29548
29567
|
instances: {
|
|
29549
|
-
[id: EntityId]:
|
|
29568
|
+
[id: EntityId]: UserManagedEntityState;
|
|
29550
29569
|
};
|
|
29551
29570
|
builtInInstances: {
|
|
29552
29571
|
[id: EntityId]: EntityState;
|
|
29553
29572
|
};
|
|
29554
29573
|
deletedInstances: {
|
|
29555
|
-
[id: EntityId]:
|
|
29574
|
+
[id: EntityId]: UserManagedEntityState;
|
|
29556
29575
|
};
|
|
29557
29576
|
errors: EntityError[];
|
|
29558
29577
|
references: IGenericReference[];
|
|
@@ -29662,13 +29681,14 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
29662
29681
|
isLoopDeclaration(entity: ActionDescriptorState): boolean;
|
|
29663
29682
|
isConditionDeclaration(entity: ActionDescriptorState): boolean;
|
|
29664
29683
|
initChildren(changeSet?: ChangeSet | null): ProjectState;
|
|
29665
|
-
subscribeInstance(instance:
|
|
29666
|
-
subscribeDeletedInstance(instance:
|
|
29684
|
+
subscribeInstance(instance: UserManagedEntityState): ProjectState;
|
|
29685
|
+
subscribeDeletedInstance(instance: UserManagedEntityState): ProjectState;
|
|
29667
29686
|
subscribeBuiltInInstance(instance: EntityState): ProjectState;
|
|
29668
29687
|
subscribe(): ProjectState;
|
|
29669
29688
|
unsubscribe(): ProjectState;
|
|
29670
29689
|
unsubscribeInstance(entity: EntityState): ProjectState;
|
|
29671
29690
|
unsubscribeDeletedInstance(entity: EntityState): ProjectState;
|
|
29691
|
+
unsubscribeBuiltInInstance(entity: EntityState): ProjectState;
|
|
29672
29692
|
findSubscribedBuiltInInstance(entity: Element_2 | ElementTransfer): EntityState | null;
|
|
29673
29693
|
get(entityId: EntityId): EntityState | null;
|
|
29674
29694
|
getDeleted(entityId: EntityId): EntityState | null;
|