-
Notifications
You must be signed in to change notification settings - Fork 373
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
Inline viewer improvements #6504
Conversation
@@ -73,12 +73,18 @@ impl WebHandle { | |||
} | |||
|
|||
#[wasm_bindgen] | |||
pub fn toggle_panel_overrides(&self) { | |||
pub fn toggle_panel_overrides(&self, value: Option<bool>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the existence of this API as a toggle (as opposed to just something like set_panel_overrides_active
) to be a bit unexpected.
I'm glad to see us turning it into a hybrid set/toggle, though the name as toggle still seems like it might hurt discoverability / expectation somewhat.
UICommand::ToggleSelectionPanel.format_shortcut_tooltip_suffix(ui.ctx()) | ||
)) | ||
.clicked() | ||
if !app_blueprint.selection_panel_overridden() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR since the logic probably adds too much complexity, but I think we may want to reconsider this at some point and have this be something like: !app_blueprint.selection_panel_hidden()
It would be nice if the state was determine by:
- If hidden, never show it -- no UI controls.
- If user has interacted with the controls, use that value.
- If overridden from JS, apply that value.
- If the blueprint has a value, apply that value.
What
web-viewer
package to TypeScript (from JS + JSDoc)WebViewer
:fullscreen
ready
Animations across updates to
position
don't really work that properly. I had to hack around it in this PR by usingsetTimeout
/requestAnimationFrame
to give the browser a chance to update theposition
CSS property before updating any other styles.Preview:
Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.