-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve how the root container is displayed and handled in the bluepr…
…int tree (#4989) ### What This PR changes how the root container is displayed and handled: - It's labeled as "Viewport", since it defines the top-level organisation of the viewport. - It's not collapsible, so it doesn't have a triangle. This reduces the right-ward drift. - It (still) cannot be dragged (but now the difference with other containers is more obvious). It now behaves better when dragged over though. - It cannot be removed. Other than that, it still behaves mostly as other containers (in particular, it can be selected and edited). Some changes were needed in the drag-and-drop code, making the "if-statement-of-death" incrementally more complicated, sadly. * Fixes #4909 <img width="221" alt="image" src="https://github.com/rerun-io/rerun/assets/49431240/dc97a103-463d-4190-ba7c-03f6ddb502a4"> ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using newly built examples: [app.rerun.io](https://app.rerun.io/pr/4989/index.html) * Using examples from latest `main` build: [app.rerun.io](https://app.rerun.io/pr/4989/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [app.rerun.io](https://app.rerun.io/pr/4989/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/4989) - [Docs preview](https://rerun.io/preview/f0e2e0f5a8b95c99a75fa09038187289ff3a3173/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/f0e2e0f5a8b95c99a75fa09038187289ff3a3173/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
- Loading branch information
Showing
3 changed files
with
271 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.