outline not work with circle
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- computer-graphics
Research direction
Start at the makerjs.model.outline entry point and reproduce the supplied model containing p0, p1, and the circle p2. Compare its result with the result after removing p2 to isolate how the closed circle affects the combined outline. Done means the circle and the other paths are represented together rather than only the circle stroke being returned.
Written by the indexing model from the issue text.
Description
outline not work with circle
to calculate circle's outline will get only a circle stroke. and anything inside the circle will lose.
maybe, it cannot calculate a closed stroke's outline?
let model = {
"models": {},
"paths": {
"p0": {
"type": "line",
"origin": [
32,
16
],
"end": [
32,
48
]
},
"p1": {
"type": "line",
"origin": [
48,
32
],
"end": [
16,
32
]
},
"p2": {
"type": "circle",
"origin": [
50,
50
],
"radius": 45
}
}
};
model = makerjs.model.outline(model, 5); //will get only circle stroke
remove the "p2", it will get a outline of the "p1"+"p2".
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 302
- Avg merge
- 21h 28m
- Merged PRs (30d)
- 5
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.
More from microsoft/maker.js
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in microsoft/maker.js
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·