Shape selection according to bounding box

6 posts, 0 answers
  1. Marina
    Marina avatar
    9 posts
    Member since:
    Feb 2015

    Posted 09 Aug Link to this post

    Hi,

    We have a shape design that consists of a large circled icon and a balloon style label above it. 

    The problem we're encountering, is that we have a hard time selecting shapes that are visible in the "empty" areas of the shape, since the diagram determines which shape is hovered according to the bounding box of the shape. In the case of a group, this is the bounding box that encompasses every shape inside the group. What makes things even worse, is that our graphical design dictates that there's no marking of a surrounding box.

    I've altered one of your Diagram example to resemble our situation, please play with it for a while and see what I'm talking about: http://dojo.telerik.com/IqAlI/8

    Can you please offer solutions, or consider changing the current implementation ?

     

    Thanks in advance

  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 10 Aug Link to this post

    Hi Marina,

    I am afraid that there is no way to change the current implementation of the diagram for selecting a shape. The Visual template ads the group (and all shape object inside it) to the current shape, thus they are not considered as different shapes and cannot be selected separately. The only possible way to achieve this would be to separate the circles and label-shapes in separate shape objects, which will decrease the selection size (respectively the free space selection).

    If this solution is not applicable for your scenario, though, i would advise that you submit a feature request for the desired functionality in our User Voice portal, so we will consider such implementation depending on the item's popularity.

    Regards,
    Vessy
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
  4. Marina
    Marina avatar
    9 posts
    Member since:
    Feb 2015

    Posted 10 Aug in reply to Vessy Link to this post

    Hi Vessy,

    We're not looking for separate selection of the shapes inside the group created in the visual content. 

    What we need is for mouse click between the shapes (in the "transparent" parts of the group) to select the shape behind it.

    Thanks.

  5. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 11 Aug Link to this post

    Hi Marina,

    I understood your requirement, but unfortunately it cannot be achieved with he current implementation of the diagram. The reason for that is that the diagram's default selection is a rectangle, the size of which depends on the width/height of the shape, but not its path. In other words, even if part of the shape is transparent it will still trigger shape selection as it is actually part of the shape.

    I hope this explanation will shed some light on the subject.

    Regards,
    Vessy
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  6. Marina
    Marina avatar
    9 posts
    Member since:
    Feb 2015

    Posted 14 Aug in reply to Vessy Link to this post

    Will it be possible to add support for that ? Should we open a feature request ?
  7. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 15 Aug Link to this post

    Hi,

    Sure, Marina - if you think that this should be a built-in functionality in the diagram, you can submit your requirements as a feature request in our User Voice portal, so we can evaluate it:
    http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback


    Regards,
    Vessy
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready