View unanswered posts | View active topics It is currently 2019-10-19 1:17



Reply to topic  [ 2 posts ] 
 能否判断2个节点是否覆盖,有方法吗 
Author Message
初级会员

Joined: 2017-10-25 14:53
Posts: 61
Post 能否判断2个节点是否覆盖,有方法吗
如题


2019-08-16 10:48
Profile
新手上路

Joined: 2019-04-23 11:02
Posts: 16
Post Re: 能否判断2个节点是否覆盖,有方法吗
twaver.vector.Network.getElementsAtRect ( rect, [intersectMode], [filter], [selectable] ) twaver.List
获取矩形区域包含或相交网元

Parameters:
rect Object
矩形区域

[intersectMode] Boolean optional
如果为true则只要和矩形区域相交的网元都返回,否则只返回矩形区域包含的网元,可选,默认值为false

[filter] Function optional
过滤器, 可选, 默认值为null

[selectable] Boolean optional
网元是否可选择,默认为true

Returns:
twaver.List:
返回矩形区域包含或相交网元

Example:
var elements = network.getElementsAtRect({x:0, y:0, width:100, height:100});


2019-10-14 15:32
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron