diff options
author | Jovansonlee Cesar <ivanceras@gmail.com> | 2020-10-23 19:49:46 +0800 |
---|---|---|
committer | Jovansonlee Cesar <ivanceras@gmail.com> | 2020-10-23 19:49:46 +0800 |
commit | 5b1e489f7bf1a3cabbc91d6ab1673374349d961e (patch) | |
tree | b015bd89828e6f8b60e98b4fbd6c99e99ba952cb /svgbob | |
parent | 455ea578b63e8cf54a210ccb995bee15f4c22bc6 (diff) |
Fix center for circle10
Diffstat (limited to 'svgbob')
-rw-r--r-- | svgbob/Cargo.toml | 5 | ||||
-rw-r--r-- | svgbob/TODO.md | 3 | ||||
-rw-r--r-- | svgbob/src/map/circle_map.rs | 4 |
3 files changed, 5 insertions, 7 deletions
diff --git a/svgbob/Cargo.toml b/svgbob/Cargo.toml index c1843a6..f73fb47 100644 --- a/svgbob/Cargo.toml +++ b/svgbob/Cargo.toml @@ -13,10 +13,7 @@ license = "Apache-2.0" nalgebra = "0.18.0" ncollide2d = "0.19.1" lazy_static = "1.3.0" -sauron = { version = "0.32", default-features = false } +sauron = { version = "0.32" } unicode-width = "0.1.5" itertools = "0.8.0" pom = { version = "3.1.0" } - -[features] -with-dom = ["sauron/with-dom"] diff --git a/svgbob/TODO.md b/svgbob/TODO.md index 0a73591..5907a96 100644 --- a/svgbob/TODO.md +++ b/svgbob/TODO.md @@ -1,5 +1,5 @@ ## TODO -- [ ] detect rectangles +- [x] detect rectangles - [x] detect whether used as text or used as graphs (if any of the 8 has no get character then it is used as text) - [ ] complete the specs - [ ] ~~Make the string literal escape work multiline~~ Impractical @@ -11,3 +11,4 @@ - [x] Support for geometric shapes https://en.wikipedia.org/wiki/Geometric_Shapes - [x] Add enhance circle, detect circles then enhance it. - [ ] Add test cases +- [ ] Re-implement the escape string with double quotes. diff --git a/svgbob/src/map/circle_map.rs b/svgbob/src/map/circle_map.rs index d1e7329..b2388e2 100644 --- a/svgbob/src/map/circle_map.rs +++ b/svgbob/src/map/circle_map.rs @@ -104,14 +104,14 @@ lazy_static! { "#, Cell::new(4,2), Cell::new(4,2).w(), 4.5), // CIRCLE_10 - //center: 4,3,y radius: 5.0 + //center: 4,2,y radius: 5.0 (r#" ____ ,' `. / \ \ / `.____.' - "#, Cell::new(4,3), Cell::new(4,3).y(), 5.0), + "#, Cell::new(4,2), Cell::new(4,2).y(), 5.0), // CIRCLE_11 //center:5,3,o radius: 5.5 |