Home Manual Reference Source Repository
import Segment from 'waves-ui/src/shapes/segment.js'
public class | source

Segment

Extends:

src/shapes/base-shape~BaseShape → Segment

A shape to display a segment.

example usage

Member Summary

Public Members
public

$el: *

public
public
public

Method Summary

Public Methods
public
public

inArea(renderingContext: *, datum: *, x1: *, y1: *, x2: *, y2: *): *

public

render(renderingContext: *): *

public

update(renderingContext: *, datum: *)

Public Members

public $el: * source

public $leftHandler: * source

public $rightHandler: * source

public $segment: * source

Public Methods

public getClassName(): string source

Return:

string

public inArea(renderingContext: *, datum: *, x1: *, y1: *, x2: *, y2: *): * source

Params:

NameTypeAttributeDescription
renderingContext *
datum *
x1 *
y1 *
x2 *
y2 *

Return:

*

public render(renderingContext: *): * source

Params:

NameTypeAttributeDescription
renderingContext *

Return:

*

public update(renderingContext: *, datum: *) source

Params:

NameTypeAttributeDescription
renderingContext *
datum *