Filled shapes
Rectangle
Props
Mandatory
- x1: first corner horizontal coordinate
type:ScalarValue
- y1: first corner vertical coordinate
type:ScalarValue
- x2: second corner horizontal coordinate
type:ScalarValue
- y2: second corner vertical coordinate
type:ScalarValue
Optional
- color: fill color
type:string
default:"black"
all <rect>
svg props are supported. For more information visit the documentation
Circle
Props
Mandatory
- x: centers horizontal coordinate
type:ScalarValue
- y: centers vertical coordinate
type:ScalarValue
- r: circle radius
type:ScalarValue
Optional
- color: fill color
type:string
default:"black"
all <circle>
svg props are supported. For more information visit the documentation
Ellipse
Props
Mandatory
- x: centers horizontal coordinate
type:ScalarValue
- y: centers vertical coordinate
type:ScalarValue
- rx: radius on the horizontal axis
type:ScalarValue
- ry: radius on the vertical axis
type:ScalarValue
Optional
- color: fill color
type:string
default:"black"
all <ellipse>
svg props are supported for more information visit the documentation
DirectedEllipse
Props
Mandatory
- x1: first corner horizontal coordinate
type:ScalarValue
- y1: first corner vertical coordinate
type:ScalarValue
- x2: second corner horizontal coordinate
type:ScalarValue
- y2: second corner vertical coordinate
type:ScalarValue
- width: ellipse width
type:ScalarValue
Optional
- color: fill color
type:string
default:"black"
all <ellipse>
svg props are supported. For more information visit the documentation
Polygon
Props
Mandatory
- points: series of points
type:Array<{ x: ScalarValue, y: ScalarValue }>
Optional
- color: fill color
type:string
default:"black"
all <polygon>
svg props are supported. For more information visit the documentation
Shape
Props
Mandatory
- x: horizontal coordinate
type:ScalarValue
- y: vertical coordinate
type:ScalarValue
- size: shape size
type:number
- shape: shape name
type:'triangle' | 'circle' | 'diamond' | 'square'
Optional
- color: fill color
type:string
default:"black"
- style: customises shape styling
type:CSSProperties
default:{}
- onMouseEnter: mouse enter event callback
type:MouseEventHandler<SVGGElement>
- onMouseLeave: mouse leave event callback
type:MouseEventHandler<SVGGElement>