Images: declare a graphic's clipping path beside its transform

This commit is contained in:
aiongg
2026-10-12 05:32:11 +00:00
parent 8125f2490b
commit e111bb74f7
17 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -243,10 +243,10 @@ pub fn synthetic(spec: &Spec) -> Result<Document, String> {
asset,
size: (nw, nh),
xf: Affine::translate((r.x0 + (r.width() - nw * s) / 2.0, r.y0 + (r.height() - nh * s) / 2.0)) * Affine::scale(s),
clip: None,
auto_fit: designcraft_doc::Fitting::FillProportionally,
fit_align: 4,
crop: [0.0; 4],
clip: None,
});
if k == 0 && pi == 0 {
it.effects.drop_shadow.on = true;