Skip to content

Commit

Permalink
subElements drawn within clip
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Jan 16, 2022
1 parent 593360b commit d501c87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/annotation.js
Expand Up @@ -249,13 +249,12 @@ function draw(chart, caller, clip) {
}

drawElements(ctx, visibleElements, caller);
drawSubElements(ctx, visibleElements, caller);

if (clip) {
unclipArea(ctx);
}

drawSubElements(ctx, visibleElements, caller);

visibleElements.forEach(el => {
if (!('drawLabel' in el)) {
return;
Expand Down

0 comments on commit d501c87

Please sign in to comment.