[Enhancement] Add Path.Compound Static Method
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 8.7k
- Forks
- 463
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 8
Description
Describe the feature you'd like
Create a static method on Two.Path to be able to combine any number different paths and return a new compound path.
const compound = Two.Path.compound(a, b, c, d);
Functionally the code would project every vertex and concatenate them together into one list of vertices.
Additional context
Related to the Boolean Operations issue: https://github.com/jonobr1/two.js/issues/596
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
Start by locating the Two.Path implementation and inspect the related Boolean Operations issue (#596) for context. The work is done when a static Path.compound method accepts any number of paths, combines their vertices into one list, and returns a new compound path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100