July 13, 2013

What are the differences between group and layer in KineticJs

Hussein Amb’s Question:

I am developing a HTML5 web application using KineticJS. I read that in KineticJS there are grouping and layering. As far as I know there are no differences between them. Can you tell me the differences?

Groups are simply group of elements or objects can be stacked in any way normally within a layer.

Layers are different Canvas area that can be added on the stage.

Also you can display multiple groups at once but you cannot display multiple layers . Only the topmost layer is visible.

...

Please fill the form - I will response as fast as I can!