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

v-layer directive #543

Open
4 tasks done
JaimeTorrealba opened this issue Feb 8, 2024 · 0 comments
Open
4 tasks done

v-layer directive #543

JaimeTorrealba opened this issue Feb 8, 2024 · 0 comments
Assignees
Labels
feature p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@JaimeTorrealba
Copy link
Member

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

@JaimeTorrealba JaimeTorrealba self-assigned this Feb 8, 2024
@alvarosabu alvarosabu added feature p2-nice-to-have Not breaking anything but nice to have (priority) and removed enhancement labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

No branches or pull requests

2 participants