Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Shapes

This is a DisplayObject. Represents a group of one or more solid primitive Shape objects.

//within the graphics items array, displays a filled circle 60px above each bar
...
 {
     tag: "Shapes",
     key: 'circs',
     primitives: [
         {
             tag: 'Circle',
             radius: 10,
             center: {
                 x: op(du(d.index()), '-', px(2)),
                 y: op(du(d.value()), '-', px(60)),
             },
         },
     ],
     fillStyle: {
         color: "#5c5"
     }
 }

Hierarchy

  • Shapes

Properties

fillStyle: FillStyle

FillStyle object to define the color that this group of shapes will be rendered.

key: string

The graphic element's render key, like an HTML id attribute.

primitives: readonly Shape[]

An array of Shape objects associated with this Shapes group.

tag: "Shapes"

Generated using TypeDoc