|
|
@ -8,47 +8,173 @@ interface CSSFrequencyValue |
|
|
|
interface CSSResolutionValue |
|
|
|
interface CSSResolutionValue |
|
|
|
interface CSSFlexValue |
|
|
|
interface CSSFlexValue |
|
|
|
|
|
|
|
|
|
|
|
class CSSpercentValue(value: Number) : CSSUnitValue(value, "percent"), CSSRelValue |
|
|
|
class CSSpercentValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
class CSSemValue(value: Number) : CSSUnitValue(value, "em"), CSSRelValue |
|
|
|
override val unit: String |
|
|
|
class CSSexValue(value: Number) : CSSUnitValue(value, "ex"), CSSRelValue |
|
|
|
get() = "percent" |
|
|
|
class CSSchValue(value: Number) : CSSUnitValue(value, "ch"), CSSRelValue |
|
|
|
} |
|
|
|
class CSSicValue(value: Number) : CSSUnitValue(value, "ic"), CSSRelValue |
|
|
|
|
|
|
|
class CSSremValue(value: Number) : CSSUnitValue(value, "rem"), CSSRelValue |
|
|
|
class CSSemValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
class CSSlhValue(value: Number) : CSSUnitValue(value, "lh"), CSSRelValue |
|
|
|
override val unit: String |
|
|
|
class CSSrlhValue(value: Number) : CSSUnitValue(value, "rlh"), CSSRelValue |
|
|
|
get() = "em" |
|
|
|
class CSSvwValue(value: Number) : CSSUnitValue(value, "vw"), CSSRelValue |
|
|
|
} |
|
|
|
class CSSvhValue(value: Number) : CSSUnitValue(value, "vh"), CSSRelValue |
|
|
|
|
|
|
|
class CSSviValue(value: Number) : CSSUnitValue(value, "vi"), CSSRelValue |
|
|
|
class CSSexValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
class CSSvbValue(value: Number) : CSSUnitValue(value, "vb"), CSSRelValue |
|
|
|
override val unit: String |
|
|
|
class CSSvminValue(value: Number) : CSSUnitValue(value, "vmin"), CSSRelValue |
|
|
|
get() = "ex" |
|
|
|
class CSSvmaxValue(value: Number) : CSSUnitValue(value, "vmax"), CSSRelValue |
|
|
|
} |
|
|
|
class CSScmValue(value: Number) : CSSUnitValue(value, "cm"), CSSRelValue |
|
|
|
|
|
|
|
class CSSmmValue(value: Number) : CSSUnitValue(value, "mm"), CSSRelValue |
|
|
|
class CSSchValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
class CSSQValue(value: Number) : CSSUnitValue(value, "q"), CSSRelValue |
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "ch" |
|
|
|
class CSSptValue(value: Number) : CSSUnitValue(value, "pt"), CSSAbsValue |
|
|
|
} |
|
|
|
class CSSpcValue(value: Number) : CSSUnitValue(value, "pc"), CSSAbsValue |
|
|
|
|
|
|
|
class CSSpxValue(value: Number) : CSSUnitValue(value, "px"), CSSAbsValue |
|
|
|
class CSSicValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
class CSSdegValue(value: Number) : CSSUnitValue(value, "deg"), CSSAngleValue |
|
|
|
get() = "ic" |
|
|
|
class CSSgradValue(value: Number) : CSSUnitValue(value, "grad"), CSSAngleValue |
|
|
|
} |
|
|
|
class CSSradValue(value: Number) : CSSUnitValue(value, "rad"), CSSAngleValue |
|
|
|
|
|
|
|
class CSSturnValue(value: Number) : CSSUnitValue(value, "turn"), CSSAngleValue |
|
|
|
class CSSremValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
class CSSsValue(value: Number) : CSSUnitValue(value, "s"), CSSTimeValue |
|
|
|
get() = "rem" |
|
|
|
class CSSmsValue(value: Number) : CSSUnitValue(value, "ms"), CSSTimeValue |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class CSSHzValue(value: Number) : CSSUnitValue(value, "hz"), CSSFrequencyValue |
|
|
|
class CSSlhValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
class CSSkHzValue(value: Number) : CSSUnitValue(value, "khz"), CSSFrequencyValue |
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "lh" |
|
|
|
class CSSdpiValue(value: Number) : CSSUnitValue(value, "dpi"), CSSResolutionValue |
|
|
|
} |
|
|
|
class CSSdpcmValue(value: Number) : CSSUnitValue(value, "dpcm"), CSSResolutionValue |
|
|
|
|
|
|
|
class CSSdppxValue(value: Number) : CSSUnitValue(value, "dppx"), CSSResolutionValue |
|
|
|
class CSSrlhValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
class CSSfrValue(value: Number) : CSSUnitValue(value, "fr"), CSSFlexValue |
|
|
|
get() = "rlh" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSvwValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "vw" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSvhValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "vh" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSviValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "vi" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSvbValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "vb" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSvminValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "vmin" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSvmaxValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "vmax" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSScmValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "cm" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSmmValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "mm" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSQValue(override val value: Number) : CSSUnitValue, CSSRelValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "q" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSptValue(override val value: Number) : CSSUnitValue, CSSAbsValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "pt" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSpcValue(override val value: Number) : CSSUnitValue, CSSAbsValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "pc" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSpxValue(override val value: Number) : CSSUnitValue, CSSAbsValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "px" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSdegValue(override val value: Number) : CSSUnitValue, CSSAngleValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "deg" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSgradValue(override val value: Number) : CSSUnitValue, CSSAngleValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "grad" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSradValue(override val value: Number) : CSSUnitValue, CSSAngleValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "rad" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSturnValue(override val value: Number) : CSSUnitValue, CSSAngleValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "turn" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSsValue(override val value: Number) : CSSUnitValue, CSSTimeValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "s" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSmsValue(override val value: Number) : CSSUnitValue, CSSTimeValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "ms" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSHzValue(override val value: Number) : CSSUnitValue, CSSFrequencyValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "hz" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSkHzValue(override val value: Number) : CSSUnitValue, CSSFrequencyValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "khz" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSdpiValue(override val value: Number) : CSSUnitValue, CSSResolutionValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "dpi" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSdpcmValue(override val value: Number) : CSSUnitValue, CSSResolutionValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "dpcm" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSdppxValue(override val value: Number) : CSSUnitValue, CSSResolutionValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "dppx" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSfrValue(override val value: Number) : CSSUnitValue, CSSFlexValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "fr" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CSSnumberValue(override val value: Number) : CSSUnitValue, CSSFlexValue { |
|
|
|
|
|
|
|
override val unit: String |
|
|
|
|
|
|
|
get() = "number" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val Number.number |
|
|
|
val Number.number |
|
|
|
get(): CSSUnitValue = CSSUnitValue(this, "number") |
|
|
|
get(): CSSUnitValue = CSSnumberValue(this) |
|
|
|
|
|
|
|
|
|
|
|
val Number.percent |
|
|
|
val Number.percent |
|
|
|
get(): CSSpercentValue = CSSpercentValue(this) |
|
|
|
get(): CSSpercentValue = CSSpercentValue(this) |
|
|
|