Class: TAttLineHandler

TAttLineHandler(attr)

new TAttLineHandler(attr)

Handle for line attributes

Parameters:
Name Type Description
attr object

attributes, see TAttLineHandler#setArgs

Source:

Methods

apply(selection)

Applies line attribute to selection.

Parameters:
Name Type Description
selection object

d3.js selection

Source:

applyBorder(selection)

Applies line and border attribute to selection.

Parameters:
Name Type Description
selection object

d3.js selection

Source:

change()

Change line attributes

Source:

changeExcl()

Change exclusion attributes

Source:

createSample()

Create sample element inside primitive SVG - used in context menu

Source:

empty()

returns true if line attribute is empty and will not be applied.

Source:

setArgs(args)

Set line attributes.

Parameters:
Name Type Description
args object

specify attributes by different ways

Properties
Name Type Description
attr object

TAttLine object with appropriate data members or

color string

color in html like rgb(255,0,0) or "red" or "#ff0000"

style number

line style number

width number

line width

Source:

setBorder()

set border parameters, used for rect drawing

Source: