Extracts a normalizeDisplayObject() method that removes undefined values and puts the keys in the desired order. It is used right before nodes are displayed and right before they are merged, so we don't have to worry about accidentally dirtying a DisplayObject in some intermediate operation.
Extracts a mergeDisplayObjects(a, b) so we don't have to remember to normalize the DisplayObjects every time we merge.
Improve typing of detail-view.ts so we don't rely so heavily on any
Moves utilities that were in util.ts but only relevant to the graph view or detail view into the files where they really belong.
Renames some types and constants, and adds some comments documenting types or constants whose purpose might be unclear.
Renames some methods
Related Issues
List any issues that are related to this pull request, such as bug reports or feature requests.
Checklist
[ ] I have tested these changes locally and they work as expected.
[ ] I have added or updated tests to cover any new functionality or bug fixes.
[ ] I have updated the documentation to reflect any changes or additions to the project.
Provide any additional information that might be helpful in understanding this pull request, such as screenshots, links to relevant research, or other context.
Description
normalizeDisplayObject()
method that removes undefined values and puts the keys in the desired order. It is used right before nodes are displayed and right before they are merged, so we don't have to worry about accidentally dirtying a DisplayObject in some intermediate operation.mergeDisplayObjects(a, b)
so we don't have to remember to normalize the DisplayObjects every time we merge.detail-view.ts
so we don't rely so heavily onany
util.ts
but only relevant to the graph view or detail view into the files where they really belong.Related Issues
List any issues that are related to this pull request, such as bug reports or feature requests.
Checklist
Additional Information
Provide any additional information that might be helpful in understanding this pull request, such as screenshots, links to relevant research, or other context.