Closed M-Wicenec closed 4 days ago
This PR focuses on optimizing node display in the graph by removing the collapse/expand functionality and implementing a new sizing system for data nodes. The changes include removing unused code related to node collapsing and header offsets, while introducing a smaller fixed size for data nodes.
classDiagram
class Node {
- expanded : ko.Observable<boolean>
- keepExpanded : ko.Observable<boolean>
- peek : ko.Observable<boolean>
- color : ko.Observable<string>
- drawOrderHint : ko.Observable<number>
- radius : ko.Observable<number>
+ Node(category: string)
+ getId() NodeId
+ isData() boolean
+ isBranch() boolean
+ isGroup() boolean
+ isStreaming() boolean
+ reset()
+ getGitHTML() ko.PureComputed<string>
}
note for Node "Removed collapsed related attributes and methods"
note for Node "Introduced conditional radius setting based on node type"
Change | Details | Files |
---|---|---|
Removed node collapse/expand functionality |
|
src/Node.ts src/Eagle.ts src/KeyboardShortcut.ts templates/navbar.html |
Implemented new node sizing system |
|
src/EagleConfig.ts src/Node.ts templates/basic_node.html |
Cleaned up category data structure |
|
src/Category.ts src/CategoryData.ts |
ive schrunk the size of data nodes in the graph
there is also a lot of unused/ old code that ive removed
additionally ive removed some of the variable that were being saved in graphs unnecessarily that ive removed from there as well.
Summary by Sourcery
Shrink the size of data nodes in the graph and clean up unused code related to node collapsing and radius settings.
Enhancements:
Chores: