mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix build of Paths with path elements with rust/llr
A `Path` with `MoveTo`/`LineTo`/etc. sub-elements now maps to an Expression::PathData of type Type::PathData. The llr lowering creates an Array of Type::PathElement, which is casted to PathData. This only covers the element case. The compiled path events are still todo.
This commit is contained in:
parent
d1298a9353
commit
9e61d4168b
14 changed files with 55 additions and 41 deletions
|
@ -230,7 +230,7 @@ fn to_eval_value<'cx>(
|
|||
| Type::Callback { .. }
|
||||
| Type::Easing
|
||||
| Type::Component(_)
|
||||
| Type::PathElements
|
||||
| Type::PathData
|
||||
| Type::LayoutCache
|
||||
| Type::ElementReference => cx.throw_error("Cannot convert to a Sixtyfps property value"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue