Skip to content

@h5web/lib zoomed area changes when visDomain is updated #1812

@CPrescher

Description

@CPrescher

Hi,

when zoomed into a plot and the visDomain of the abscissa or the ordinate is updated (e.g. due to a new dataset being added and therefore the limits being changed), the zoomed area changes.

I guess this is because currently zooming works on the basis of fractions of the total visDomain.

For other plot libraries this is typically not the default behavior and zoomed area stays constant in terms of x and y range.

So far, I found a workaround using a component which tracks whether the camera is zoomed (similar to the component and only update the visDomain when it is not zoomed in. However, I think this is a bit weird and needs extra redraws when zooming out again.

Best wishes,
Clemens

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions