From bb2b26426d2b99e075252faff5647e6ef403b039 Mon Sep 17 00:00:00 2001 From: Stefan Altmayer Date: Thu, 28 Dec 2023 16:37:43 +0100 Subject: [PATCH] Small update of graphics for documentation. Fixes font offsets from `natural_neighbors_scenario` --- examples/svg_renderer/scenario_list.rs | 2 +- images/natural_neighbor_insertion_cell.svg | 116 ++++++++++---------- images/natural_neighbor_polygon.svg | 122 ++++++++++----------- images/natural_neighbor_scenario.svg | 14 +-- 4 files changed, 127 insertions(+), 127 deletions(-) diff --git a/examples/svg_renderer/scenario_list.rs b/examples/svg_renderer/scenario_list.rs index 55ea56b..c47df7d 100644 --- a/examples/svg_renderer/scenario_list.rs +++ b/examples/svg_renderer/scenario_list.rs @@ -990,13 +990,13 @@ pub fn natural_neighbors_scenario() -> Sketch { let mut result = convert_triangulation(&triangulation, &Default::default()); let offsets = [ + Vector2::new(5.0, 2.0), Vector2::new(2.0, 5.0), Vector2::new(-4.0, 6.0), Vector2::new(0.0, 6.0), Vector2::new(1.0, 6.0), Vector2::new(0.0, 8.0), Vector2::new(3.0, 4.0), - Vector2::new(5.0, 2.0), ]; for (index, (neighbor, weight)) in nns.iter().enumerate() { diff --git a/images/natural_neighbor_insertion_cell.svg b/images/natural_neighbor_insertion_cell.svg index caf83c6..a6b98b6 100644 --- a/images/natural_neighbor_insertion_cell.svg +++ b/images/natural_neighbor_insertion_cell.svg @@ -93,64 +93,64 @@ 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/natural_neighbor_polygon.svg b/images/natural_neighbor_polygon.svg index a31d799..d9e633f 100644 --- a/images/natural_neighbor_polygon.svg +++ b/images/natural_neighbor_polygon.svg @@ -64,7 +64,7 @@ - + @@ -100,72 +100,72 @@ 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + last_edge - + stop_edge - + first diff --git a/images/natural_neighbor_scenario.svg b/images/natural_neighbor_scenario.svg index 3aa4db6..4b416a4 100644 --- a/images/natural_neighbor_scenario.svg +++ b/images/natural_neighbor_scenario.svg @@ -90,49 +90,49 @@ 0 - + 0.27 1 - + 0.48 2 - + 0.01 3 - + 0.04 4 - + 0.19 5 - + 0.00 6 - + 0.01