Skip to content
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

Provide user help with layer ordering #7

Open
joemaddalone opened this issue Nov 2, 2020 · 0 comments · May be fixed by #27
Open

Provide user help with layer ordering #7

joemaddalone opened this issue Nov 2, 2020 · 0 comments · May be fixed by #27
Labels
enhancement New feature or request

Comments

@joemaddalone
Copy link
Owner

joemaddalone commented Nov 2, 2020

Specifically in nesting scenarios the order or layers should be controllable with minimal effort.

<Parent order={3}>
   <Child1 order={2} />
   <Child2 order={1}>
       <Child2-1 order={0} />
   </Child2>
</Parent>

without the ordering this would render

<parent-path />
<child-1-path />
<child-2-path />
<child-2-1-path />

with ordering we would get

<child-2-1-path />
<child-2-path />
<child-1-path />
<parent-path />

This may be trickier than it seems, but should be possible and would solve a real pain point in svg composition. From a holistic approach if this were introduced for everything inside of <Svg /> it could prove very powerful - it could also mean inventing a v-dom for svg though...

joemaddalone pushed a commit that referenced this issue Nov 23, 2020
this is not yet working on multiple levels of nesting

re #7
@joemaddalone joemaddalone added the enhancement New feature or request label Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant