Add js methods to mixins component to make it more convenient to work with.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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