Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ContourShapes

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

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

Hierarchy

  • ContourShapes

Properties

key: string

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

lineStyle: LineStyle

The LineStyle object representing the width and color of the rendered object's outlines.

primitives: readonly Shape[]

An array of Shape primitives associated with this ContourShapes group.

tag: "ContourShapes"

Generated using TypeDoc