Add support for clip on Path elements

This allows clipping the viewbox conveniently.
This commit is contained in:
Simon Hausmann 2021-05-21 09:11:19 +02:00 committed by Simon Hausmann
parent 7de783bbe1
commit cc9d5e09f0
7 changed files with 131 additions and 11 deletions

View file

@ -17,7 +17,7 @@ SubElements := Rectangle {
}
Image {
clip: false;
// ^error{The 'clip' property can only be applied to a Rectangle for now}
// ^error{The 'clip' property can only be applied to a Rectangle or a Path for now}
}
for a in 12 : Rectangle {
clip: true || true;