Browse Source

Html: SVG - Add fillOpacity attribute (#3725)

* Html: SVG - Add fillOpacity attribute

* Add typed overloads

* Use normal number

* Update svgAttrs.kt

* Remove public marker
try_three_js
Philip Wedemann 1 year ago committed by GitHub
parent
commit
1f70741dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      html/svg/src/jsMain/kotlin/org/jetbrains/compose/web/svg/svgAttrs.kt

8
html/svg/src/jsMain/kotlin/org/jetbrains/compose/web/svg/svgAttrs.kt

@ -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)
}

Loading…
Cancel
Save