-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move legend position & visibility to its own archetype (#5006)
### What * Part of #4818 Introduces new system of sub archetypes: Each space view has its own small tree of properties. Used this to move over the already existing plot options (no functional change in this PR!), but all remaining plot properties can then be moved to this new more versatile system. Draft: * ~~[ ] use component editors for visibility and legend position~~ * Punting for future UI unification * ~~[ ] make cloning of space views work (this now needs to copy the entire blueprint subtree)~~ * Will address in: #4977 * [x] test it out a bit more, self review ### 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/5006/index.html) * Using examples from latest `main` build: [app.rerun.io](https://app.rerun.io/pr/5006/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/5006/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/5006) - [Docs preview](https://rerun.io/preview/1bea7468aa745f6322c7e1873b15787ffc11a920/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/1bea7468aa745f6322c7e1873b15787ffc11a920/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) --------- Co-authored-by: Jeremy Leibs <jeremy@rerun.io>
- Loading branch information
Showing
43 changed files
with
974 additions
and
769 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
30 changes: 30 additions & 0 deletions
30
crates/re_types/definitions/rerun/blueprint/archetypes/plot_legend.fbs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
include "arrow/attributes.fbs"; | ||
include "python/attributes.fbs"; | ||
include "rust/attributes.fbs"; | ||
|
||
include "rerun/datatypes.fbs"; | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.blueprint.archetypes; | ||
|
||
|
||
// --- | ||
|
||
/// Configuration for the legend of a plot. | ||
table PlotLegend ( | ||
"attr.docs.unreleased", | ||
"attr.rerun.scope": "blueprint", | ||
"attr.rust.derive": "Default" | ||
) { | ||
// --- Optional --- | ||
|
||
/// To what corner the legend is aligned. | ||
/// | ||
/// Defaults to the right bottom corner. | ||
corner: rerun.blueprint.components.Corner2D ("attr.rerun.component_optional", nullable, order: 2100); | ||
|
||
/// Whether the legend is shown at all. | ||
/// | ||
/// True by default. | ||
visible: rerun.blueprint.components.Visible ("attr.rerun.component_optional", nullable, order: 2200); | ||
} |
24 changes: 0 additions & 24 deletions
24
crates/re_types/definitions/rerun/blueprint/archetypes/time_series.fbs
This file was deleted.
Oops, something went wrong.
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.