summaryrefslogtreecommitdiffstats
path: root/packages/svgbob/src/buffer/fragment_buffer/fragment
diff options
context:
space:
mode:
Diffstat (limited to 'packages/svgbob/src/buffer/fragment_buffer/fragment')
-rw-r--r--packages/svgbob/src/buffer/fragment_buffer/fragment/arc.rs4
-rw-r--r--packages/svgbob/src/buffer/fragment_buffer/fragment/circle.rs2
-rw-r--r--packages/svgbob/src/buffer/fragment_buffer/fragment/line.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/packages/svgbob/src/buffer/fragment_buffer/fragment/arc.rs b/packages/svgbob/src/buffer/fragment_buffer/fragment/arc.rs
index 152e1a9..d879a19 100644
--- a/packages/svgbob/src/buffer/fragment_buffer/fragment/arc.rs
+++ b/packages/svgbob/src/buffer/fragment_buffer/fragment/arc.rs
@@ -7,7 +7,7 @@ use sauron::{
};
use std::{cmp::Ordering, fmt};
-/// TODO: Add an is_broken field when there is a presense of `~` or `!` in the span
+/// TODO: Add an is_broken field when there is a presence of `~` or `!` in the span
#[derive(Debug, Clone)]
pub struct Arc {
pub start: Point,
@@ -139,7 +139,7 @@ impl Arc {
}
/// check to see if the arc is aabb right angle
- /// that is the center x and y coordinate is alinged to both of the end points
+ /// that is the center x and y coordinate is aligned to both of the end points
/// This will be used for checking if group of fragments can be a rounded rect
pub fn is_aabb_right_angle_arc(&self) -> bool {
let center = self.center();
diff --git a/packages/svgbob/src/buffer/fragment_buffer/fragment/circle.rs b/packages/svgbob/src/buffer/fragment_buffer/fragment/circle.rs
index f8c64ca..429b728 100644
--- a/packages/svgbob/src/buffer/fragment_buffer/fragment/circle.rs
+++ b/packages/svgbob/src/buffer/fragment_buffer/fragment/circle.rs
@@ -13,7 +13,7 @@ use sauron::{
Node,
};
-/// TODO: Add an is_broken field when there is a presense of `~` or `!` in the span
+/// TODO: Add an is_broken field when there is a presence of `~` or `!` in the span
#[derive(Debug, Clone)]
pub struct Circle {
pub radius: f32,
diff --git a/packages/svgbob/src/buffer/fragment_buffer/fragment/line.rs b/packages/svgbob/src/buffer/fragment_buffer/fragment/line.rs
index 48e6fc2..bcf7fdb 100644
--- a/packages/svgbob/src/buffer/fragment_buffer/fragment/line.rs
+++ b/packages/svgbob/src/buffer/fragment_buffer/fragment/line.rs
@@ -366,7 +366,7 @@ impl Line {
Line::new_noswap(self.start, Point::new(cx, cy), self.is_broken)
}
- /// extend but on the oposite direction
+ /// extend but on the opposite direction
/// TODO: This implementation is hacky
pub fn extend_start(&self, length: f32) -> Self {
let mut tmp_line = self.clone();