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

Scene object events for XRayed, Highlighted and Selected #930

Merged
merged 4 commits into from
Sep 16, 2022
Merged

Scene object events for XRayed, Highlighted and Selected #930

merged 4 commits into from
Sep 16, 2022

Conversation

mlankamp
Copy link
Contributor

Enabled the scene to fire events when an entity is x-rayed, highlighted or selected. This behavior is similar to the visibility updated event.

The TreeViewPlugin has been updated to listen to the objectXRayed event, this allows the treeview to use a different styling for x-rayed entities. As soon as this is merged, the following can be added to the xeokit-bim-viewer stylesheet:

.xeokit-objectsTab .xrayed-node,
.xeokit-storeysTab .xrayed-node,
.xeokit-classesTab .xrayed-node { /* Appearance of xrayed node */
    color: rgba(0, 0, 0, 0.3);
}

Typescript typing also updated

@ghost
Copy link

ghost commented Sep 16, 2022

👇 Click on the image for a new way to code review
  • Make big changes easier — review code in small groups of related files

  • Know where to start — see the whole change at a glance

  • Take a code tour — explore the change with an interactive tour

  • Make comments and review — all fully sync’ed with github

    Try it now!

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

@xeolabs xeolabs merged commit 210fdc7 into xeokit:master Sep 16, 2022
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.

2 participants