mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 12:48:31 +00:00
WIP
This commit is contained in:
parent
218b5e52e5
commit
1579be27cc
@ -127,7 +127,12 @@ class CanvasKit {
|
||||
if (shape.blur) {
|
||||
blur = this.CanvasKit.ImageFilter.MakeBlur(shape.blur.value, shape.blur.value, this.CanvasKit.TileMode.Decal, null);
|
||||
if (!shape.shadow) {
|
||||
const blurRect = this.CanvasKit.RRectXY(
|
||||
this.CanvasKit.LTRBRect(shape.x, shape.y, shape.x + shape.width, shape.y + shape.height),
|
||||
rx,
|
||||
ry)
|
||||
paint.setImageFilter(blur)
|
||||
canvas.drawRRect(blurRect, paint)
|
||||
}
|
||||
}
|
||||
if (shape.shadow) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user