4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Add "Lock Layer" Functionality #1144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment there doesn't *appear* to be any way to lock a layer. I would 
propose adding these public functions:

svgedit.draw.Drawing.prototype.lockLayer(name){}
svgedit.draw.Drawing.prototype.unlockLayer(name){}

Then, add code to handle what happens when a user:

1. Selects a locked layer
2. Moves another layer below a locked layer
3. Tries to delete a locked layer

In addition this could probably encompass two more issues:

1. Refactor more layer-handling code out of svg-editor.js
2. Add functionality for a pinned "background layer"

Thoughts/feedback?

Original issue reported on code.google.com by co...@gotripod.com on 24 Sep 2013 at 2:00