Top
You are looking at an outdated 7.1.0 version of this document. Switch to the 7.14.3 version to see the up to date information.

class anychart.elements.Separator Improve this Doc

Extends: anychart.VisualBase

Class for a separator element.

Methods Overview

Miscellaneous
draw()Draw separator.
drawer()Getter for function drawing separator.
fill()Separator fill.
getRemainingBounds()
height()Getter for separator height.
margin()Margin of the separator
orientation()Orientation of the separator.
parentBounds()Gets/Sets bounds to calculate position.
stroke()Separator stroke.
width()Getter for separator width.

Methods Description

draw

Draw separator.

Returns:

anychart.elements.Separator - anychart.elements.Separator instance for method chaining.

drawer

Getter for function drawing separator.

Returns:

function - Drawer function.
Setter for function drawing separator.

Params:

Name Type Description
value function Drawer function.

Returns:

anychart.elements.Separator - An instance of the anychart.elements.Separator class for method chaining.

fill

Separator fill.

Params:

Name Type Description
fillOrColorOrKeys anychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null .
opacityOrAngleOrCx number .
modeOrCy number | boolean | anychart.graphics.math.Rect | Object .
opacityOrMode number | anychart.graphics.math.Rect | Object | null .
opacity number .
fx number .
fy number .

getRemainingBounds

Returns:

anychart.math.Rect - Parent bounds without the space used by the title.

height

Getter for separator height.

Returns:

number string null - Current height.
Setter for separator height.

Params:

Name Type Description
value number | string | null Value to set.

Returns:

anychart.elements.Separator - An instance of the anychart.elements.Separator class for method chaining.

margin

Margin of the separator

Params:

Name Type Description
spaceOrTopOrTopAndBottom string | number | anychart.utils.Space .
rightOrRightAndLeft string | number .
bottom string | number .
left string | number .

orientation

Orientation of the separator.

Params:

Name Type Description
value anychart.enums.Orientation | string .

parentBounds

Gets/Sets bounds to calculate position.

Params:

Name Type Description
value anychart.math.Rect .

width

Getter for separator width.

Returns:

number string null - Current width.
Setter for separator width.

Params:

Name Type Description
value number | string | null Value to set.

Returns:

anychart.elements.Separator - An instance of the anychart.elements.Separator class for method chaining.