简体   繁体   中英

What is the exact meaning of the perpendicularLinks attribute?

In JointJS there is a perpendicularLinks parameter which "make links tend to get perpendicular to their associated objects".

This is not so clear for me. Anyone knows what is this option ?

The perpendicularLinks option determines wether the last segment of the link should point to the center of the target object or be a horizontal/vertical line rather than a diagonal one. If perpendicularLinks is true , the link does not necessarily points to the center of the target object but to the closest point on the boundary of the target object where the last segment of the link is perpendicular.

Better than words, see the following images:

perpendicularLinks : false

在此处输入图片说明

perpendicularLinks : true

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM