mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Add support for clip on Path elements
This allows clipping the viewbox conveniently.
This commit is contained in:
parent
7de783bbe1
commit
cc9d5e09f0
7 changed files with 131 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue