(layout: &plotlars_core::ir::layout::LayoutIR)
| 36 | } |
| 37 | |
| 38 | pub(super) fn resolve_dimensions(layout: &plotlars_core::ir::layout::LayoutIR) -> (u32, u32) { |
| 39 | match &layout.dimensions { |
| 40 | Some(dims) => { |
| 41 | let w = dims.width.unwrap_or(DEFAULT_WIDTH as usize) as u32; |
| 42 | let h = dims.height.unwrap_or(DEFAULT_HEIGHT as usize) as u32; |
| 43 | (w, h) |
| 44 | } |
| 45 | None => (DEFAULT_WIDTH, DEFAULT_HEIGHT), |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | pub(super) fn polygon_vertices_at_origin(base_shape: BaseShape, r: i32) -> Vec<(i32, i32)> { |
| 50 | use crate::converters::components::*; |
no outgoing calls
no test coverage detected