diff --git a/crates/idml/src/model/spread.rs b/crates/idml/src/model/spread.rs index c941ed25f..0985c0dee 100644 --- a/crates/idml/src/model/spread.rs +++ b/crates/idml/src/model/spread.rs @@ -153,6 +153,9 @@ pub struct MarginPreference { } impl MarginPreference { + pub fn from_el(el: &El) -> Self { + Self { values: Values::of(el) } + } pub fn top(&self) -> Option { self.values.num("Top") }