Browse Source

Move parse definition from CSSNumericValueJS to CSSNumericValue

pull/756/head
Shagen Ogandzhanian 4 years ago
parent
commit
7d4e3307ac
  1. 9
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt

9
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt

@ -135,6 +135,11 @@ external interface CSSNumericValue : CSSStyleValue {
fun to(unit: String): CSSUnitValue fun to(unit: String): CSSUnitValue
fun toSum(vararg units: String): CSSMathSum fun toSum(vararg units: String): CSSMathSum
fun type(): CSSNumericType fun type(): CSSNumericType
@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
companion object {
fun parse(cssText: String): CSSNumericValue
}
} }
abstract external class CSSNumericValueJS : CSSNumericValue { abstract external class CSSNumericValueJS : CSSNumericValue {
@ -148,10 +153,6 @@ abstract external class CSSNumericValueJS : CSSNumericValue {
override fun to(unit: String): CSSUnitValue override fun to(unit: String): CSSUnitValue
override fun toSum(vararg units: String): CSSMathSum override fun toSum(vararg units: String): CSSMathSum
override fun type(): CSSNumericType override fun type(): CSSNumericType
companion object {
fun parse(cssText: String): CSSNumericValue
}
} }
external interface CSSUnitValue : CSSNumericValue { external interface CSSUnitValue : CSSNumericValue {

Loading…
Cancel
Save