|
@ -42,11 +42,11 @@ class Image extends CircleImageBase { |
|
|
ctx.save(); |
|
|
ctx.save(); |
|
|
// if borders are zero width, they will be drawn with width 1 by default. This prevents that
|
|
|
// if borders are zero width, they will be drawn with width 1 by default. This prevents that
|
|
|
if (borderWidth > 0) { |
|
|
if (borderWidth > 0) { |
|
|
this.enableBorderDashes(ctx); |
|
|
|
|
|
|
|
|
this.enableBorderDashes(ctx, values); |
|
|
//draw the border
|
|
|
//draw the border
|
|
|
ctx.stroke(); |
|
|
ctx.stroke(); |
|
|
//disable dashed border for other elements
|
|
|
//disable dashed border for other elements
|
|
|
this.disableBorderDashes(ctx); |
|
|
|
|
|
|
|
|
this.disableBorderDashes(ctx, values); |
|
|
} |
|
|
} |
|
|
ctx.restore(); |
|
|
ctx.restore(); |
|
|
|
|
|
|
|
|