Add a heatmap.
(&mut self, heatmap: crate::Heatmap)
| 2155 | |
| 2156 | /// Add a heatmap. |
| 2157 | pub fn heatmap(&mut self, heatmap: crate::Heatmap) { |
| 2158 | if heatmap.values.is_empty() { |
| 2159 | return; |
| 2160 | } |
| 2161 | self.items.push(Box::new(heatmap)); |
| 2162 | } |
| 2163 | } |
| 2164 | |
| 2165 | #[cfg(all(test, not(target_arch = "wasm32")))] |