aframevr / aframevr/aframe

Add js methods to mixins component to make it more convenient to work with.

Open
#2,509 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
17.6k
Forks
4.4k
PR merge metrics
No merged PRs in 30d

Description

#It would be very convenient to have methods to add and remove mixins using using Javascript in the same way class names are handled:

https://developer.mozilla.org/en-US/docs/Web/API/Element/classList

ie:
entity.components.mixin.add('');
entity.components.mixin.remove('');

Otherwise you have to manually manage the string.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files or tests are named in the issue. Start by locating the mixin component implementation and its existing tests, then compare its string handling with the requested Element.classList-style API. Done means JavaScript callers can add and remove mixins without manually managing the mixin string.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.