What exactly does Layer().locked (< Item().locked) do/prevent?

54 views
Skip to first unread message

Shane Deconinck

unread,
May 2, 2014, 2:44:47 AM5/2/14
to pap...@googlegroups.com
Hello


I've found that the object Layer() has an attribute 'locked', inherited from Item().

However, it doesn't prevent me from drawing on the layer.

In Item.js, it says "* Specifies whether the item is locked."
It also affects isEditable();

So I've done my homework, but got stuck. Thanks in advance.

Jürg Lehni

unread,
May 6, 2014, 2:39:57 AM5/6/14
to pap...@googlegroups.com
For now it only affects Item#hitTest(). Any item that is locked is skipped there.

--
You received this message because you are subscribed to the Google Groups "Paper.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages