Zooming out not satisfactory

4 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 10 Apr 2013 Link to this post

    When I AutoFit() my diagram, I want all nodes to be visible on screen. However, this is impossible when the diagram is too large. The zooming restriction gets in the way.

    I want to be able to zoom out until all nodes are visible on screen, no matter the size of the diagram! It doesn't matter if the rendering of the nodes suffers. In a complex diagram, I must be able to see all nodes to get an overview of its structure. This is absolutely crucial for our application so please provide us with a patch/workaround! Thanks.

    I really don't understand why the zooming works this way. I get the same result if I set the Zoom to 0.1 or 0.05...
  2. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 10 Apr 2013 Link to this post

    Hi Kristoffer,

    Zoom property internally is coerced to a valid value. A valid value mean that it should be greater than zero and not infinity or NaN. In addition, RadDiagram performs a secondary coerce in order to support custom business scenarios (for example you could probably would like to restrict the users to zoom more than four times). The second coerce trims the value between DiagramConstants.MinimumZoom and DiagramConstants.MaximumZoom values.
    Having that said, you could set the DiagramConstants.MinimumZoom to a really small (but greater than zero value). A value of 0.001 for DiagramConstants.MinimumZoom means that you will be able to zoom out to a factor of thousand.

    Hope this helps. Please let us know if you need more info on the topic.
    Furthermore, it looks like you are using RadDiagram in quite complex scenario. We will be very glad if you share your comments (expectations of how the zoom out should work) in order to improve the zooming behavior? 

    Kind regards,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 10 Apr 2013 Link to this post

    Hi,

    Thanks. Setting these constants pretty much did the trick:

    DiagramConstants.ZoomFactor = 0.1;
    DiagramConstants.MinimumZoom = 0.1;

    However, when zooming using the scroll wheel it seems that the zoom steps are independent of the current zoom. This yields clumsy zooming when zoomed out. I believe you should perform the step-wise zooming in this way:

    ZoomOut => Zoom - (ZoomFactor * Zoom)
    ZoomIn => Zoom + (ZoomFactor * Zoom)


    This is what most image viewers use, and I think this would suit your diagram control too.
  5. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 15 Apr 2013 Link to this post

    Hello Kristoffer,

    Thank you very much about the feedback. I was afraid that zoom steps will become a showstopper. I am going to increase the priority of this issue (we already know about it) and let you know when we have a bit more clarity about it.
    I hope it is going to be resolve in our 2013 Q2 official release in June. However, let us know if you need it sooner.

    Regards,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top