Skip to content

Commit

Permalink
Html: SVG - Add fillOpacity attribute (#3725)
Browse files Browse the repository at this point in the history
* Html: SVG - Add fillOpacity attribute

* Add typed overloads

* Use normal number

* Update svgAttrs.kt

* Remove public marker
  • Loading branch information
hfhbd committed Sep 26, 2023
1 parent 5ad1712 commit 1f70741
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ fun AttrsScope<SVGElement>.fillRule(fill: String) {
attr("fill-rule", fill)
}

fun AttrsScope<SVGElement>.fillOpacity(fill: Number) {
attr("fill-opacity", fill.toString())
}

fun AttrsScope<SVGElement>.fillOpacity(fill: CSSPercentageValue) {
attr("fill-opacity", fill.toString())
}

fun AttrsScope<SVGElement>.href(href: String) {
attr("href", href)
}
Expand Down

0 comments on commit 1f70741

Please sign in to comment.