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

Visto 52 veces
Saltar al primer mensaje no leído

Shane Deconinck

no leída,
2 may 2014, 2:44:472/5/14
a 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

no leída,
6 may 2014, 2:39:576/5/14
a 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.

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos