diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-09-19 12:49:36 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-09-19 12:49:36 +0200 |
| commit | 59f67b79c7ff50f0bc9a27373d0fa36d1523e08a (patch) | |
| tree | 4687eea50b231b630563dd14e5de85551f661efb /src/frame.rs | |
| parent | 30be75c6687f1e03cf867d258b3ddba353cc7aa2 (diff) | |
Remove image store
Diffstat (limited to 'src/frame.rs')
| -rw-r--r-- | src/frame.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/frame.rs b/src/frame.rs index 8e0cb0dc..7a5fb9e4 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -9,7 +9,7 @@ use crate::font::FontId; use crate::geom::{ Align, Em, Length, Numeric, Paint, Point, Shape, Size, Spec, Transform, }; -use crate::image::ImageId; +use crate::image::Image; use crate::library::text::Lang; use crate::util::EcoString; @@ -303,12 +303,9 @@ pub enum Element { /// A geometric shape with optional fill and stroke. Shape(Shape), /// An image and its size. - Image(ImageId, Size), + Image(Image, Size), /// A link to an external resource and its trigger region. Link(Destination, Size), - /// A pin identified by index. This is used to find elements on the pages - /// and use their location in formatting. Exporters can just ignore it. - Pin(usize), } impl Debug for Element { @@ -319,7 +316,6 @@ impl Debug for Element { Self::Shape(shape) => write!(f, "{shape:?}"), Self::Image(image, _) => write!(f, "{image:?}"), Self::Link(dest, _) => write!(f, "Link({dest:?})"), - Self::Pin(idx) => write!(f, "Pin({idx})"), } } } |
