Understanding @atrilabs/canvas-runtime-utils
API
#550
cruxcode
started this conversation in
Guides: Atri Framework Reference
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@atrilabs/canvas-runtime-utils
packageSome important utility functions:
createSortedParentChildMap
- It returns an object with parentId as the key and an array of child ids as value. The array of child ids is sorted in the order in which they exist inside their parent component. As of now the root node's id isbody
which might be changed toroot
in future.createReverseMap
- Same ascreateSortedParentChildMap
with the only difference that child node ids might not be sorted in the order in which they exist inside the parent component.Beta Was this translation helpful? Give feedback.
All reactions