diff options
author | Jovansonlee Cesar <ivanceras@gmail.com> | 2023-08-16 00:07:20 +0800 |
---|---|---|
committer | Jovansonlee Cesar <ivanceras@gmail.com> | 2023-08-16 00:07:20 +0800 |
commit | 54bd29497e48b51f78f583aa9896f32ba44bdd4e (patch) | |
tree | 6ee9c592fbff3f6eea52f77a4453b5d8be816ba2 | |
parent | 6ea0e518a64e20122a931dc4fbd30730ea9ef704 (diff) |
fix: due to changes in sauron jss
-rw-r--r-- | packages/svgbob/Cargo.toml | 2 | ||||
-rw-r--r-- | packages/svgbob/src/buffer/cell_buffer.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/svgbob/Cargo.toml b/packages/svgbob/Cargo.toml index 7eebfdb..0b91aa0 100644 --- a/packages/svgbob/Cargo.toml +++ b/packages/svgbob/Cargo.toml @@ -14,7 +14,7 @@ nalgebra = "0.32.1" parry2d = "0.13.5" once_cell = "1.18.0" #sauron = { version = "0.59.0", default-features = false} -sauron = { path = "../../../sauron", default-features = false} +sauron = { path = "../../../sauron", default-features = false, features = ["with-jss"]} unicode-width = "0.1.9" itertools = "0.11.0" pom = { version = "3.2.0" } diff --git a/packages/svgbob/src/buffer/cell_buffer.rs b/packages/svgbob/src/buffer/cell_buffer.rs index c949c51..e64a6d1 100644 --- a/packages/svgbob/src/buffer/cell_buffer.rs +++ b/packages/svgbob/src/buffer/cell_buffer.rs @@ -282,7 +282,7 @@ impl CellBuffer { // we put a .svgbob class in order to avoid clashing with other svg in the document // since the style element in this svg also affects the other svg element in the whole // document - let element_styles = sauron::jss_pretty! { + let element_styles = sauron::jss! { ".svgbob line, .svgbob path, .svgbob circle, .svgbob rect, .svgbob polygon": { stroke: stroke_color.clone(), stroke_width: stroke_width, |