Visual studio code collapse all folders1/13/2024 ![]() To enable folding, create a new instance of FoldingManager. See the section Folding Revisited for more details. Of the master graph to elements in the view graph and vice versa. To make sure that the state of both graphs is correctly synchronized, yFiles provides the typesĪ FoldingManager stores the master graph and serves as a factory for the folding views.Īn IFoldingView stores the view graph and manages the mapping from elements More details are provided in Working with Master and View. When the group node is expanded again, new child nodes are added to the view graph so any references to the 'old' child When a group node is collapsed, all its child nodes are removed from the view graph while the master graph doesn’t change. reference comparisons between master graph items and view graph items will fail. The FoldingManager synchronizes these items, but e.g. ![]() Note that items in the view graph are actually copies of items in the master graph. That supports collapsing and expanding is a (modified) copy of the master graph. Nodes, all groups, all edges, and all of their labels and ports. The master graph is the complete unfolded graph: it contains all normal To properly hide children when collapsing and restore the contents when expanding, folding works with In the remainder of this chapter, we explain specific aspects and underlying concepts of folding in more detail. Introduce the predefined style for collapsible groups,Īnd describe how to enable user interaction. In the following, we first explain the basics of working with folding, Initialization is important so make sure to read the knowledge base article about Using Filtering and Folding Together. In some use cases it is useful to combine the Folding with the Filtering feature. In particular, if suchĬonnections are present in the master graph, they will be preserved but they are not shown in any folding views. Note that theĬonnections from these nodes to the outer nodes are not part of this diagram.Įdge-to-edge connections are not supported in a folding-enabled graph. ![]() Since the children are hidden, the edges from the outer nodes to the nodes 3 and 4 now connect to the folder node.ĭiagram (3) shows the content of the group as a separate diagram. In diagram (2) the group is collapsed and the children are hidden.Ī different size, and even a different label (“Folder”) to emphasize its different state. The above figure illustrates that concept: Diagram (1) shows a group node (labeled “Group”) with two children, Concepts of folding (1) Group node (expanded) (2) Folder node (collapsed group) (3) Content of the group displaying their contents as separate graph. Additionally, the yFiles for HTML folding support allows browsing into For clarification, we refer to collapsed group nodesĪs folder nodes or folders. Collapsing a group node means that its content is hidden and the group node It adds the functionality of collapsing (closing) and expanding To fully understand this chapter it is important to be familiar with the concept of grouping or group nodesĪs introduced in the graph model chapter.įolding is an extension to the grouping concept. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |