Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RoundedRectangle

This is a Shape primitive. Defines an instance of a RoundedRectangle shape for use in the Shapes or ContourShapes primitives value. Usage:

//within a map function's return object. This will draw a red rounded rect centered at each rendered
//bar's value and index.
...
 {
     graphics: {
         items: [
             {
                 tag: "Shapes",
                 key: 'roundRects',
                 //the rounded rect is a primitve
                 primitives: [
                     {
                         tag: 'RoundedRectangle',
                         position: {
                             x: du(d.index()),
                             y: du(d.value()),
                         }
                         size: {
                             height: px(16),
                             width: px(24)
                         }
                     }
                 ],
                 fillStyle: {
                     color: '#f00'
                 }
             }
         ]
     }
 }
...

Hierarchy

  • RoundedRectangle

Properties

Properties

position: Point

The Point origin of this object.

radius: number

A number describing the radius of this object's corners in pixels.

size: Size

The Size object that describes this object's dimensions.

tag: "RoundedRectangle"

Generated using TypeDoc