fix(tiny-skia): correct stroke bounds calculation

This commit is contained in:
Thomas Gatzweiler 2025-04-01 13:29:33 +02:00
parent c99f4d08f0
commit a50a56a29d

View file

@ -538,10 +538,10 @@ impl Engine {
let bounds = path.bounds();
Rectangle {
x: bounds.x(),
y: bounds.y(),
width: bounds.width(),
height: bounds.height(),
x: bounds.x() - stroke.width / 2.0,
y: bounds.y() - stroke.width / 2.0,
width: bounds.width() + stroke.width,
height: bounds.height() + stroke.width,
} * transformation
};