class anychart.core.wordtree.Connectors Improve this Doc
Extends: anychart.core.Base
Connectors base settings.
Methods Overview
Coloring | |
stroke() | Stroke settings. |
Size and Position | |
curveFactor() | Curve factor of the connectors. |
length() | Connectors length. |
offset() | Offset settings. |
Methods Description
curveFactor
Getter for the curve factor of the connectors.
Returns:
number - The curve factor of the connectors.Try it:
Setter for the curve factor of the connectors.
Params:
Name | Type | Default | Description |
---|---|---|---|
padding | number | 0.5 | The curve factor is set as a ratio from 0 to 1. |
Returns:
anychart.core.wordtree.Connectors - Self instance for method chaining.Try it:
length
Setter for the connectors length.
The length represents the horizontal distance between the points of connection.
The length represents the horizontal distance between the points of connection.
Params:
Name | Type | Default | Description |
---|---|---|---|
length | null | number | string | 30 | Connectors length to set. |
Returns:
anychart.core.wordtree.Connectors - Self instance for method chaining.Try it:
offset
Setter for the connectors offset.
The offset is the distance from the ends of the connector to the words.
The offset is the distance from the ends of the connector to the words.
Params:
Name | Type | Default | Description |
---|---|---|---|
offset | number | 5 | Offset in pixel to set. |
Returns:
anychart.core.wordtree.Connectors - Self instance for method chaining.Try it:
stroke
Getter for stroke settings.
Detailed description
This method can be used as getter only if the value has been previously set.
Returns:
anychart.graphics.vector.Stroke - Stroke settings.Try it:
Setter for stroke settings.
Learn more about stroke settings
Params:
Name | Type | Description |
---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | Stroke settings. |
thickness | number | Line thickness. |
dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. |
lineJoin | string | anychart.graphics.vector.StrokeLineJoin | Line join style. |
lineCap | string | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.wordtree.Connectors - Self instance for method chaining.Try it:
Setter for stroke using an object.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Stroke settings from anychart.graphics.vector.Stroke. |
Returns:
anychart.core.wordtree.Connectors - Self instance for method chaining.Try it: