Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Splitting a GoJs Group

$
0
0

@Abhishek wrote:

I am looking for a functionality to split a group in 2 when a polyline is drawn over a group which starts from one of the edges of the group and ends at the same or any other edge of the group. The original group can be a polygon or a rectangle. Also the two newly created groups after the split can also be of either shapes. Something like below –

split_group

image

The steps can be –
first, check if the polyline has two intersections with group edges, which basically suffices the condition for the split.
second, if first point is true, remove the older group and create two new groups with a little offset.
OR
restructure the older group to create two new groups.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles