Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] TreeViewPlugin sortNodes fix #1711

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

xeolabs
Copy link
Member

@xeolabs xeolabs commented Oct 25, 2024

This PR fixes spatial sorting of TreeViewPlugin nodes that represent IfcBuildingStorey elements.

Sorting is disabled by default, but can be enabled like this:

    new TreeViewPlugin(viewer, {
        containerElement: document.getElementById("treeViewContainer"),
        autoExpandDepth: 3, // Initially expand tree three storeys deep
        hierarchy: "containment",
        sortNodes: true
    });
    ````

@xeolabs xeolabs merged commit 0702bb3 into master Oct 25, 2024
2 of 3 checks passed
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>xeokit Example</title>
<link href="../css/pageStyle.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script>

Check warning

Code scanning / CodeQL

Inclusion of functionality from an untrusted source Medium

Script loaded from content delivery network with no integrity check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant