Skip to content

Commit

Permalink
Merge pull request #3 from coastalwhite/circle-radius-attribute
Browse files Browse the repository at this point in the history
Fix: circle set 'radius' -> 'r'
  • Loading branch information
coastalwhite committed Jun 4, 2021
2 parents d8b4c76 + 9305cc1 commit eeb7c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm_svg_graphics"
version = "1.0.3"
version = "1.0.4"
authors = ["Gijs Burghoorn <g.burghoorn@gmail.com>"]
edition = "2018"
description = "A Rust library for rendering SVG Graphics with WASM"
Expand Down
2 changes: 1 addition & 1 deletion src/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use svg_definitions::prelude::*;
/// Creates a default circle with a certain radius
pub fn circle(radius: i32) -> SVGElem {
SVGElem::new(Tag::Circle)
.set(Attr::Radius, radius)
.set(Attr::R, radius)
.set(Attr::Stroke, "#000000")
.set(Attr::StrokeWidth, 1)
.set(Attr::Fill, "transparent")
Expand Down

0 comments on commit eeb7c37

Please sign in to comment.