Shape

class Shape : Scheme

Types

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

Functions

getItem
Link copied to clipboard
common
open override fun getItem(name: Name): MetaItem?
line
Link copied to clipboard
common
fun line(block: LayoutLine.() -> Unit)
onChange
Link copied to clipboard
common
open override fun onChange(owner: Any?, action: (Name, MetaItem?, MetaItem?) -> Unit)
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

defaultLayer
Link copied to clipboard
common
open val defaultLayer: Meta
descriptor
Link copied to clipboard
common
override var descriptor: NodeDescriptor?
editable
Link copied to clipboard
common
var editable: Boolean?
Determines whether the shape could be activated for edit or not.
fillcolor
Link copied to clipboard
common
val fillcolor: Color
Sets the color filling the shape's interior.
fillrule
Link copied to clipboard
common
var fillrule: ShapeFillRule
Determines which regions of complex paths constitute the interior.
layer
Link copied to clipboard
common
var layer: ShapeLayer
Specifies whether shapes are drawn below or above traces.
line
Link copied to clipboard
common
var line: LayoutLine
name
Link copied to clipboard
common
var name: String?
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array.
opacity
Link copied to clipboard
common
var opacity: Number
Sets the opacity of the shape.
path
Link copied to clipboard
common
var path: String?
For type "path" - a valid SVG path with the pixel values replaced by data values in xsizemode/ysizemode being "scaled" and taken unmodified as pixels relative to xanchor and yanchor in case of "pixel" size mode.
templateitemname
Link copied to clipboard
common
var templateitemname: String?
Used to refer to a named item in this array in the template.
type
Link copied to clipboard
common
var type: ShapeType
Specifies the shape type to be drawn.
visible
Link copied to clipboard
common
var visible: Boolean?
Determines whether or not this shape is visible.
x0
Link copied to clipboard
common
var x0: Value?
Sets the shape's starting x position.
x1
Link copied to clipboard
common
var x1: Value?
Sets the shape's end x position.
xanchor
Link copied to clipboard
common
var xanchor: Value?
Only relevant in conjunction with xsizemode set to "pixel".
xref
Link copied to clipboard
common
var xref: String?
Sets the shape's x coordinate axis.
xsizemode
Link copied to clipboard
common
var xsizemode: ShapeSizeMode
Sets the shapes's sizing mode along the x axis.
y0
Link copied to clipboard
common
var y0: Value?
Sets the shape's starting y position.
y1
Link copied to clipboard
common
var y1: Value?
Sets the shape's end y position.
yanchor
Link copied to clipboard
common
var yanchor: Value?
Only relevant in conjunction with ysizemode set to "pixel".
yref
Link copied to clipboard
common
var yref: String?
Sets the annotation's y coordinate axis.
ysizemode
Link copied to clipboard
common
var ysizemode: ShapeSizeMode
Sets the shapes's sizing mode along the y axis.