Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Cloning layers #111

Open
jbrennan opened this issue Mar 1, 2016 · 1 comment
Open

Cloning layers #111

jbrennan opened this issue Mar 1, 2016 · 1 comment

Comments

@jbrennan
Copy link
Contributor

jbrennan commented Mar 1, 2016

I’d love to be able to say let myClone = someLayer.clone() to have another layer identical to the original.

I think the new layer should clone:

  • the size and position
  • the border and corner radius
  • the background colour and image
  • the parent layer
  • any sublayers
  • gesture / touch handlers?
@andymatuschak
Copy link
Contributor

This would be really sweet. Yet another example of something which is challenging with retained-mode identity semantics. This would be so easy with a system like React or Processing or DisplayScript! :(

On Mar 1, 2016, at 8:21 AM, Jason Brennan notifications@github.com wrote:

I’d love to be able to say let myClone = someLayer.clone() to have another layer identical to the original.

I think the new layer should clone:

the size and position
the border and corner radius
the background colour and image
the parent layer
any sublayers
gesture / touch handlers?

Reply to this email directly or view it on GitHub #111.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants