v-layer directive
JaimeTorrealba opened this issue · comments
Jaime A Torrealba C commented
Description
As a developer using Tres I would like to have an easy and fast way to add or remove layers to my instances.
Suggested solution
My suggestion is something like:
We should accept an array too
And of course other methods like: disable, test (maybe with a console.log), toggle
For more info, check:
https://threejs.org/docs/index.html?q=layers#api/en/core/Layers
Alternative
Any other alternative is considered
Additional context
As we discuss, you can achieve this by using template ref, but sometimes is just too much code, this Issue will could improve the UX
Following the directives pattern (to make our user easier)
Validations
- I agree to follow this project's Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.