This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

🎨 Format code

+12 -12
+3 -1
src/graphics/layer.rs
··· 160 160 objects: impl Fn(&String, &ColoredObject) -> bool, 161 161 ) { 162 162 let tag_str = format!("{}", tag); 163 - for (_, obj) in self.objects.iter_mut().filter(|(id, obj)| objects(id, obj)) { 163 + for (_, obj) in 164 + self.objects.iter_mut().filter(|(id, obj)| objects(id, obj)) 165 + { 164 166 obj.tag(&tag_str); 165 167 } 166 168 }
+1 -1
src/graphics/mod.rs
··· 4 4 pub mod filter; 5 5 pub mod layer; 6 6 pub mod objects; 7 - pub mod transform; 8 7 pub mod region; 8 + pub mod transform; 9 9 10 10 pub use canvas::Canvas; 11 11 pub use color::{Color, ColorMapping};
+4 -6
src/graphics/objects.rs
··· 57 57 pub filters: Vec<Filter>, 58 58 pub transformations: Vec<Transformation>, 59 59 pub tags: Vec<String>, 60 - pub clip_to: Option<Region> 60 + pub clip_to: Option<Region>, 61 61 } 62 62 63 63 impl ColoredObject { ··· 143 143 let tag_str = format!("{tag}"); 144 144 self.tags.iter().any(|t| t == &tag_str) 145 145 } 146 - 147 - 148 146 } 149 147 150 148 impl std::fmt::Display for ColoredObject { ··· 155 153 filters, 156 154 transformations, 157 155 tags, 158 - clip_to 156 + clip_to, 159 157 } = self; 160 158 161 159 if fill.is_some() { ··· 192 190 filters: vec![], 193 191 transformations: vec![], 194 192 tags: vec![], 195 - clip_to: None 193 + clip_to: None, 196 194 } 197 195 } 198 196 } ··· 205 203 filters: vec![], 206 204 transformations: vec![], 207 205 tags: vec![], 208 - clip_to: None 206 + clip_to: None, 209 207 } 210 208 } 211 209 }
-1
src/random/fill.rs
··· 32 32 ) 33 33 } 34 34 } 35 -
+4 -1
src/rendering/svg.rs
··· 111 111 } 112 112 113 113 /// Sets width and height 114 - pub fn dimensions<Coord: Into<f32>>(self, p: impl Into<(Coord, Coord)>) -> Self { 114 + pub fn dimensions<Coord: Into<f32>>( 115 + self, 116 + p: impl Into<(Coord, Coord)>, 117 + ) -> Self { 115 118 let (w, h) = p.into(); 116 119 self.attr("width", w.into()).attr("height", h.into()) 117 120 }
-2
src/video/context.rs
··· 195 195 ); 196 196 } 197 197 198 - 199 - 200 198 pub fn switch_scene(&mut self, scene_name: impl Display) { 201 199 self.current_scene = Some(scene_name.to_string()); 202 200 self.scene_started_at_ms = Some(self.ms);