Parse IDML page margin values in shared model

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 09:05:19 -05:00
1 parent 2f6c85dcfe
commit ec03ac6d82
1 file changed
+3
+3
View File
@@ -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")
}