Text

class Text : Scheme

Text annotation

Constructors

Text
Link copied to clipboard
common
fun Text()

Types

Companion
Link copied to clipboard
common
object Companion : SchemeSpec<Text>

Functions

font
Link copied to clipboard
common
fun font(block: Font.() -> Unit)
getItem
Link copied to clipboard
common
open override fun getItem(name: Name): MetaItem?
onChange
Link copied to clipboard
common
open override fun onChange(owner: Any?, action: (Name, MetaItem?, MetaItem?) -> Unit)
position
Link copied to clipboard
common
fun position(x: Number, y: Number)
removeListener
Link copied to clipboard
common
open override fun removeListener(owner: Any?)
setItem
Link copied to clipboard
common
open override fun setItem(name: Name, item: MetaItem?)
toMeta
Link copied to clipboard
common
open override fun toMeta(): Laminate
validateItem
Link copied to clipboard
common
open fun validateItem(name: Name, item: MetaItem?): Boolean

Properties

align
Link copied to clipboard
common
var align: HorizontalAlign
Sets the horizontal alignment of the text within the box.
arrowcolor
Link copied to clipboard
common
val arrowcolor: Color
Sets the color of the annotation arrow.
ax
Link copied to clipboard
common
var ax: Value?
Sets the x component of the arrow tail about the arrow head.
ay
Link copied to clipboard
common
var ay: Value?
Sets the y component of the arrow tail about the arrow head.
bgcolor
Link copied to clipboard
common
val bgcolor: Color
Sets the background color of the annotation.
bordercolor
Link copied to clipboard
common
val bordercolor: Color
Sets the background color of the annotation.
defaultLayer
Link copied to clipboard
common
open val defaultLayer: Meta
descriptor
Link copied to clipboard
common
override var descriptor: NodeDescriptor?
font
Link copied to clipboard
common
var font: Font
Sets the annotation text font.
height
Link copied to clipboard
common
var height: Number
Sets an explicit height for the text box.
opacity
Link copied to clipboard
common
var opacity: Number
Sets the opacity of the annotation (text + arrow).
showarrow
Link copied to clipboard
common
var showarrow: Boolean?
Determines whether or not the annotation is drawn with an arrow.
standoff
Link copied to clipboard
common
var standoff: Number
Sets a distance, in pixels, to move the end arrowhead away from the position it is pointing at, for example to point at the edge of a marker independent of zoom.
text
Link copied to clipboard
common
var text: String?
Sets the text associated with this annotation.
textangle
Link copied to clipboard
common
var textangle: Number
Sets the angle at which the text is drawn with respect to the horizontal.
valign
Link copied to clipboard
common
var valign: VerticalAlign
Sets the vertical alignment of the text within the box.
visible
Link copied to clipboard
common
var visible: Boolean?
Determines whether or not this annotation is visible.
width
Link copied to clipboard
common
var width: Number
Sets an explicit width for the text box.
x
Link copied to clipboard
common
var x: Value?
Sets the annotation's x position.
xanchor
Link copied to clipboard
common
var xanchor: XAnchor
Sets the text box's horizontal position anchor This anchor binds the x position to the "left", "center" or "right" of the annotation.
xref
Link copied to clipboard
common
var xref: String?
Sets the annotation's x coordinate axis.
y
Link copied to clipboard
common
var y: Value?
Sets the annotation's y position.
yanchor
Link copied to clipboard
common
var yanchor: YAnchor
Sets the text box's vertical position anchor This anchor binds the y position to the "top", "middle" or "bottom" of the annotation.
yref
Link copied to clipboard
common
var yref: String?
Sets the annotation's y coordinate axis.