Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
fix circle outline
Browse files Browse the repository at this point in the history
  • Loading branch information
slmjkdbtl committed Feb 21, 2024
1 parent 01c2269 commit 86225da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kaboom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2116,11 +2116,11 @@ export default (gopt: KaboomOpt = {}): KaboomCtx => {
// full circle with outline shouldn't have the center point
if (end - start >= 360 && opt.outline) {
if (opt.fill !== false) {
drawPolygon(Object.assign(polyOpt, {
drawPolygon(Object.assign({}, polyOpt, {
outline: null,
}))
}
drawPolygon(Object.assign(polyOpt, {
drawPolygon(Object.assign({}, polyOpt, {
pts: pts.slice(1),
fill: false,
}))
Expand Down

0 comments on commit 86225da

Please sign in to comment.