mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 05:14:24 +00:00
Parse IDML page margin values in shared model
This commit is contained in:
@@ -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