diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-05-15 10:36:03 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-05-15 10:36:03 +0200 |
| commit | 1fa56a317c8d8da76546e6b5e19b279d84380837 (patch) | |
| tree | 5bc0acad0b881898511bdf66dc6384f1b5e83de3 /library/src/visualize | |
| parent | 156aef10c463f81ca0016583a9df83d7b8560e59 (diff) | |
Extract category definitions into individual functions
Diffstat (limited to 'library/src/visualize')
| -rw-r--r-- | library/src/visualize/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/library/src/visualize/mod.rs b/library/src/visualize/mod.rs index 4cf5d04f..3adf4e77 100644 --- a/library/src/visualize/mod.rs +++ b/library/src/visualize/mod.rs @@ -11,3 +11,17 @@ pub use self::line::*; pub use self::path::*; pub use self::polygon::*; pub use self::shape::*; + +use crate::prelude::*; + +/// Hook up all visualize definitions. +pub(super) fn define(global: &mut Scope) { + global.define("image", ImageElem::func()); + global.define("line", LineElem::func()); + global.define("rect", RectElem::func()); + global.define("square", SquareElem::func()); + global.define("ellipse", EllipseElem::func()); + global.define("circle", CircleElem::func()); + global.define("polygon", PolygonElem::func()); + global.define("path", PathElem::func()); +} |
