This is a migrated thread and some comments may be shown as answers.

Shape selection according to bounding box

5 Answers 113 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Marina
Top achievements
Rank 1
Marina asked on 09 Aug 2016, 10:05 AM

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

5 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 10 Aug 2016, 10:22 AM
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.
 
0
Marina
Top achievements
Rank 1
answered on 10 Aug 2016, 10:35 AM

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.

0
Vessy
Telerik team
answered on 11 Aug 2016, 01:05 PM
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.
 
0
Marina
Top achievements
Rank 1
answered on 14 Aug 2016, 10:56 AM
Will it be possible to add support for that ? Should we open a feature request ?
0
Vessy
Telerik team
answered on 15 Aug 2016, 12:30 PM
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.
 
Tags
Diagram
Asked by
Marina
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Marina
Top achievements
Rank 1
Share this question
or