How to know if an arrow is not connected to any element

138 views
Skip to first unread message

Pat

unread,
Apr 4, 2012, 5:03:20 AM4/4/12
to JointJS
I want to delete arrow not connected to any element. Then, how to know
if an arrow is not connected to any element

Yacht Smith

unread,
Apr 4, 2012, 9:44:07 PM4/4/12
to joi...@googlegroups.com
In your attachment method and the parameters inside

endArrow: {type: 'none' }



2012/4/4 Pat <rabe...@gmail.com>

I want to delete arrow not connected to any element. Then, how to know
if an arrow is not connected to any element



--
偶擁有一個聖潔的靈魂☆偶將達到一個神聖的境界超越一切※包括自己!

Yacht Smith

unread,
Apr 4, 2012, 9:52:13 PM4/4/12
to joi...@googlegroups.com
can you speak chinese?haha.My English is poor。
--
偶擁有一個聖潔的靈魂☆偶將達到一個神聖的境界超越一切※包括自己!

dave

unread,
Apr 16, 2012, 4:08:34 AM4/16/12
to JointJS
arrow.isStartDummy() tells you whether the start of the arrow is
connected to an element.
arrow.isEndDummy() is an analogy for the end of the arrow.
Hence: arrow.isStartDummy() && arrow.isEndDummy() is true if the arrow
is not connected to any element.

Just as a side note, dummy is an invisible object that is created if a
side of an arrow gets disconnected from an element.
It can even be styled in the Joint options object:
opt.dummy.start.radius, opt.dummy.start.attrs (replace 'start' with
'end' for the arrow end dummy).

Cheers,
David

孙雄伟

unread,
May 25, 2012, 11:27:02 PM5/25/12
to JointJS


On 4月16日, 下午4时08分, dave <daviddur...@gmail.com> wrote:
> arrow.isStartDummy() tells you whether the start of the arrow is
> connected to an element.
> arrow.isEndDummy() is an analogy for the end of the arrow.
> Hence: arrow.isStartDummy() && arrow.isEndDummy() is true if the arrow
> is not connected to any element.
>
> Just as a side note, dummy is an invisible object that is created if a
> side of an arrow gets disconnected from an element.
> It can even be styled in the Joint options object:
> opt.dummy.start.radius, opt.dummy.start.attrs (replace 'start' with
> 'end' for the arrow end dummy).
>
> Cheers,
> David
>
> On Apr 4, 11:03 am, Pat <raben...@gmail.com> wrote:
>
>
> THANK YOU VERY MUCH
Reply all
Reply to author
Forward
0 new messages