commonMain.jetbrains.datalore.vis.svg.SvgTextContent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vis-svg-portable Show documentation
Show all versions of vis-svg-portable Show documentation
The Let-Plot Kotlin API depends on this artifact.
/*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.vis.svg
import jetbrains.datalore.base.observable.property.Property
import jetbrains.datalore.base.observable.property.WritableProperty
import jetbrains.datalore.base.values.Color
interface SvgTextContent {
companion object {
val FILL: SvgAttributeSpec =
SvgAttributeSpec.createSpec("fill")
val FILL_OPACITY: SvgAttributeSpec =
SvgAttributeSpec.createSpec("fill-opacity")
val STROKE: SvgAttributeSpec =
SvgAttributeSpec.createSpec("stroke")
val STROKE_OPACITY: SvgAttributeSpec =
SvgAttributeSpec.createSpec("stroke-opacity")
val STROKE_WIDTH: SvgAttributeSpec =
SvgAttributeSpec.createSpec("stroke-width")
val TEXT_ANCHOR: SvgAttributeSpec =
SvgAttributeSpec.createSpec(SvgConstants.SVG_TEXT_ANCHOR_ATTRIBUTE)
val TEXT_DY: SvgAttributeSpec =
SvgAttributeSpec.createSpec(SvgConstants.SVG_TEXT_DY_ATTRIBUTE)
}
val computedTextLength: Double
fun fill(): Property
fun fillColor(): WritableProperty
fun fillOpacity(): Property
fun stroke(): Property
fun strokeColor(): WritableProperty
fun strokeOpacity(): Property
fun strokeWidth(): Property
fun textAnchor(): Property
fun textDy(): Property
}