This is the place where you manage and rearrange the elements of your Snap
On the left toolbar of the editor, you can find the Element Tree. It gives you an overview of the elements in the current snap. You're able to rearrange the elements, group them and have several other options via the context menu.
Let's have a look at the different possibilities.
After selecting one or more elements, you're able to group them by opening the context menu and clicking on "Group selection". This will create a new group element, which contains all the selected elements.
Hint: Groups can be nested maximum 5 levels deep.
Grouped elements act like a single element on the canvas. You can move them around and they'll stick together, which can be pretty handy when you want to group several design elements together. On the canvas, you can also double-click on a group to select underlying child elements.
After selecting a group on the Element Tree, you can also ungroup the elements by opening the context menu and clicking on "Ungroup selection".
- Group selected elements
- Ungroup selected elements
You can rearrange elements in the tree via drag and drop. While dragging you'll see an indicator where the new position of the element will be (you can also move the element inside a group). You can also rearrange multiple elements at once.
The order of the elements in the Element Tree also specifies the z-index of the elements on the Canvas (the first element in the three will be rendered on top of the others).
Lock & Hide Elements
Another handy feature is to lock & hide elements on the Element Tree.
Hidden Elements won't be visible on the canvas, but they will still be part of the snap. This can be useful if you want to keep elements in your snap as work in progress, but don't want to see them on the canvas.
Locked Elements can't be selected on the canvas. This will prevent you from accidentally moving or editing those elements which can be useful when you have some fixed design elements which shouldn't be changed.
You can lock or hide elements by clicking on the corresponding icons on the Element Tree. You can also apply it to multiple elements at once by selecting them and lock or hide them via the context menu. When you lock or hide a group it will also apply to all of its children.
Having a lot of elements in your tree and losing track of them because they're all named the same?
No problem, you can rename elements by double-clicking on their name and editing it. Press Enter to save the new name.
The context menu comes in handy when you like to perform actions on several selected elements at once. You can open it by right-clicking on a selected element in the Element Tree.
It also offers additional functionalities like Duplicating or Deleting elements.
- Duplicate selected elements
- Delete selected elements