mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 12:17:14 -06:00
The reference app places a new layer below the selected layer with Ctrl+Alt-click (Command+Option-click) on the New Layer button, and a new sublayer at the bottom of the layer list with the same click on the New Sublayer button. In VectorCraft that click opened Layer Options, and New Layer and New Sublayer always added the layer above the current layer and the sublayer on top of the layer's contents. layer.new takes below, which adds the layer directly below the current layer at its level, and layer.newSublayer takes bottom, which adds the sublayer under the parent's contents. In a clipping layer the new sublayer goes above the clipping path. Each is one undo step, and below is refused together with top. A Cmd/Ctrl+Alt-click on the Layers panel's New Layer and New Sublayer buttons runs them. A plain click, an Alt-click and a Cmd/Ctrl-click work as before. Docs: docs/mcp.md, docs/target-app-parity.md.