Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Ellipse

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

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

Hierarchy

  • Ellipse

Properties

Properties

position: Point

origin point of the ellipse

size: Size

size of the ellipse

tag: "Ellipse"

Generated using TypeDoc