All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.jetbrains.datalore.vis.svg.SvgTextContent.kt Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
/*
 * 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy