mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 22:42:46 +00:00
Parse IDML page margin values in shared model
This commit is contained in:
1 file changed
+3
@@ -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<f64> {
|
||||
self.values.num("Top")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user