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.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+


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