Commit 93dc67b
committed
Graphics.drawArc would fail to draw any subsequent arcs if you set
Graphics.drawArc would only move to the center position of the first arc created and ignore any subsequent arcs.
Graphics.drawArc now correctly renders multiple arcs across both WebGL and Canvas. You no longer need to specifically call moveTo to move into the correct place to draw the arc.
Graphics.drawArc now bails out if the startAngle = the endAngle and/or the sweep is invalid *before* adjusting any points.
Graphics.drawArc now correctly handles the fill on the CanvasRenderer if the arc is a subsequent arc and no line style is set.beginFill on it after drawing the first arc.1 parent d45a7ba commit 93dc67b
2 files changed
Lines changed: 30 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | 405 | | |
429 | 406 | | |
430 | 407 | | |
431 | 408 | | |
432 | 409 | | |
| 410 | + | |
| 411 | + | |
433 | 412 | | |
434 | 413 | | |
435 | 414 | | |
| |||
439 | 418 | | |
440 | 419 | | |
441 | 420 | | |
442 | | - | |
443 | | - | |
| 421 | + | |
| 422 | + | |
444 | 423 | | |
445 | | - | |
| 424 | + | |
| 425 | + | |
446 | 426 | | |
447 | 427 | | |
448 | 428 | | |
449 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
450 | 445 | | |
451 | 446 | | |
452 | 447 | | |
| |||
587 | 582 | | |
588 | 583 | | |
589 | 584 | | |
590 | | - | |
| 585 | + | |
591 | 586 | | |
592 | 587 | | |
593 | 588 | | |
| |||
602 | 597 | | |
603 | 598 | | |
604 | 599 | | |
605 | | - | |
| 600 | + | |
| 601 | + | |
606 | 602 | | |
607 | 603 | | |
608 | 604 | | |
| |||
0 commit comments