paint()

in packages/core/src/rendering/render-rrect.ts [54:79]


  paint(context: PaintingContext, offset: Point) {
    const { fillPaint, strokePaint } = this

    if (fillPaint) {
      context.canvas.drawRRect(
        offset.x,
        offset.y,
        this.size.width,
        this.size.height,
        this._rx,
        this._ry,
        fillPaint,
      )
    }
    if (strokePaint) {
      context.canvas.drawRRect(
        offset.x,
        offset.y,
        this.size.width,
        this.size.height,
        this._rx,
        this._ry,
        strokePaint,
      )
    }
  }