Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LineSegments

This is a DisplayObject. It represents a group of one or more Line objects.

//within a the graphics items array, displays an infinite horizontal
//line at the 3800 price.
...
 {
     tag: 'LineSegments',
     key: 'lines',
     lines: [
         {
             tag: 'Line',
             a: {
                 x: du(0),
                 y: du(3800),
             },
             b: {
                 x: du(1),
                 y: du(3800)
             },
             infiniteStart: true,
             infiniteEnd: true
         }
     ],
     lineStyle: {
         lineWidth: 3,
         color: '#f00'
     }
}
...

Hierarchy

  • LineSegments

Properties

Properties

key: string

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

lineStyle: LineStyle

LineStyle object representing the rendered group's styles.

lines: readonly Line[]

An array of Line objects to be rendered.

tag: "LineSegments"

Generated using TypeDoc