in packages/core/src/rendering/box-decorator.ts [39:57]
paintBorder(context: PaintingContext, offset: Point, size: Size) {
if (hasOwn(this, 'borderWidth')
&& this.borderWidth > 0
&& (hasOwn(this, 'borderColor') || hasOwn(this, 'borderImage'))) {
const paint: Paint = {
style: PaintStyle.stroke,
color: this.borderColor,
shader: this.borderImage,
strokeWidth: this.borderWidth,
}
if (hasOwn(this, 'borderRadius') && this.borderRadius > 0) {
context.canvas.drawRRect(offset.x, offset.y, size.width, size.height, this.borderRadius!, this.borderRadius!, paint)
} else {
context.canvas.drawRect(offset.x, offset.y, size.width, size.height, paint)
}
}
}