in packages/core/src/rendering/render-path.ts [88:122]
private _paint(
context: PaintingContext,
offset: Point,
path2D: Path2D,
bounds: Rect,
): void {
const {
fillPaint,
strokePaint,
} = this
if (fillPaint) {
context.canvas.drawPath(
path2D,
offset.x,
offset.y,
fillPaint,
bounds.left + offset.x,
bounds.top + offset.y,
bounds.width,
bounds.height,
)
}
if (strokePaint) {
context.canvas.drawPath(
path2D,
offset.x,
offset.y,
strokePaint,
bounds.left + offset.x,
bounds.top + offset.y,
bounds.width,
bounds.height,
)
}
}