diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-07 16:36:39 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-07 16:36:39 +0100 |
| commit | 40b87d4066fe85cb3fde6cf84cd60d748273ae25 (patch) | |
| tree | 792b2e5edd8e72649d9fdcac24dc07620bf0f15c /src/library/mod.rs | |
| parent | 26bdc1f0f6fe8113d7fcfb4d5aca46aa5238ccd8 (diff) | |
Set Rules Episode II: Attack of the properties
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index e1988635..7f7f95e3 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -26,7 +26,7 @@ mod prelude { pub use std::rc::Rc; pub use crate::diag::{At, TypResult}; - pub use crate::eval::{Args, EvalContext, Node, Smart, Value}; + pub use crate::eval::{Args, EvalContext, Node, Property, Smart, Styles, Value}; pub use crate::frame::*; pub use crate::geom::*; pub use crate::layout::*; @@ -54,7 +54,6 @@ pub use utility::*; use crate::eval::{Scope, Value}; use crate::geom::*; -use crate::style::FontFamily; /// Construct a scope containing all standard library definitions. pub fn new() -> Scope { @@ -139,15 +138,6 @@ dynamic! { Dir: "direction", } -dynamic! { - Align: "alignment", -} - -dynamic! { - FontFamily: "font family", - Value::Str(string) => Self::Named(string.to_lowercase()), -} - castable! { Paint, Expected: "color", |
