New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method for adding a layer to a project is not documented #903
Comments
Yes, that makes sense! Although I consider For Project, it would make more sense if it was called |
Agreed - it makes more sense to have a function |
…rtLayer() Also replace #_addToProject() with new #_insertItem() helper, and streamline all #_insertSibling() related methods. Relates to #903
Working on this issue just has created all kinds of simplifications in the code, and has triggered solutions to other issues, e.g. #832. I love when that happens. |
Do you think we also need a |
No, I don't think so. It doesn't seem like adding multiple layers is a common use case and it's easy enough to 1) add this later if it's an issue - it's non-breaking, and 2) do it in one's own code. |
Great! So all that's missing is the documentation now. |
The old |
Update for paperjs#903.
Well, it can: Layers can have sub-layers! |
Makes sense. I've never used it but flexibility is usually a good thing. |
Update for paperjs#903.
project#addChild
is not documented. If a layer has been removed 'addChild' seems to be the only way to add it back.The text was updated successfully, but these errors were encountered: