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

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

/*
 * 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 SvgShape {

    fun fill(): Property

    fun fillColor(): WritableProperty

    fun fillOpacity(): Property

    fun stroke(): Property

    fun strokeColor(): WritableProperty

    fun strokeOpacity(): Property

    fun strokeWidth(): Property

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy