commonMain.jetbrains.datalore.vis.svg.SvgConstants.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
object SvgConstants {
const val WIDTH = "width"
const val HEIGHT = "height"
const val SVG_TEXT_ANCHOR_ATTRIBUTE = "text-anchor"
const val SVG_STROKE_DASHARRAY_ATTRIBUTE = "stroke-dasharray"
const val SVG_STYLE_ATTRIBUTE = "style"
const val SVG_TEXT_DY_ATTRIBUTE = "dy"
// values
const val SVG_TEXT_ANCHOR_START = "start" // also - default
const val SVG_TEXT_ANCHOR_MIDDLE = "middle"
const val SVG_TEXT_ANCHOR_END = "end"
const val SVG_TEXT_DY_TOP = "0.7em"
const val SVG_TEXT_DY_CENTER = "0.35em"
}