Skip to content

When mouse-zooming with 3d orthographic projection, no exposed property is updated #4274

Description

@emmanuelle

See the codepen https://codepen.io/emmanuelle-plotly/pen/QWWyjxg?editors=0011 and try to zoom using the mouse wheel. One would expect one property of the figure to be updated, such as scene.camera.eye or scene.aspectratio, but none of them changes.

In perspective projection, the scene.camera.eye is updated when wheel-zooming.

At the moment it is not possible to dump to JSON a figure which has been zoomed and then to reproduce it because the information about the zoom is not included.

Activity

  1. self-assigned this
    on Oct 11, 2019
  2. archmoj commented on Oct 18, 2019

    @archmoj
    Contributor

    @emmanuelle the codepen now works with the wheel zoom: demo.

    Wondering is we should apply those changes to _fullLayout.scene.aspectratio?

  3. alexcjohnson commented on Oct 19, 2019

    @alexcjohnson
    Collaborator

    Yes, it’s a good idea to keep fullLayout in sync with layout, for the sake of Plotly.react

  4. emmanuelle commented on Oct 19, 2019

    @emmanuelle
    ContributorAuthor

    Thank you @archmoj ! At the moment is there any way to retrieve this property in Dash? Using a clientside callbck in Javascript maybe? (I'm not familiar with this, just asking)

  5. etpinard commented on Oct 21, 2019

    @etpinard
    Contributor

    At the moment is there any way to retrieve this property in Dash?

    We should add this as part of a plotly_relayout event data object.

    Here's what happens currently with the default (perspective) projection: https://codepen.io/etpinard/pen/MWWJoQM (open the console and start scrolling)

  6. archmoj commented on Oct 23, 2019

    @archmoj
    Contributor

    orthographic demo

  7. added this to the v1.51.0 milestone on Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions