Optional
arrow-The size of the arrow.
Optional
colorThe colour of the element’s label.
Optional
control-A single value that overrides "control-point-step-size" with a manual value. Because it overrides the step size, bezier edges with the same value will overlap. Thus, it’s best to use this as a one- off value for particular edges if need be.
Optional
control-A series of values that specify for each control point the distance perpendicular to a line formed from source to target, e.g. -20 20 - 20.
Optional
control-From the line perpendicular from source to target, this value specifies the distance between successive bezier edges.
Optional
control-A single value that weights control points along the line from source to target. The value usually ranges on [0, 1], with 0 towards the source node and 1 towards the target node — but larger or smaller values can also be used.
Optional
control-A series of values that weights control points along a line from source to target, e.g. 0.25 0.5 0.75. A value usually ranges on [0, 1], with 0 towards the source node and 1 towards the target node — but larger or smaller values can also be used.
Optional
curve-The curving method used to separate two or more edges between two nodes; may be
Optional
displayWhether to display the element; may be element for displayed or none for not displayed. Note that a "display: none" bezier edge does not take up space in its bundle.
Optional
edge-With value intersection (default), the line from source to target for "control-point-weight" is from the outside of the source node’s shape to the outside of the target node’s shape.With value node- position, the line is from the source position to the target position. The "node-position" option makes calculating edge points easier — but it should be used carefully because you can create invalid points that intersection would have automatically corrected.
Optional
eventsWhether events should occur on an element (e.g.tap, mouseover, etc.).
Optional
font-A comma-separated list of font names to use on the label text.
Optional
font-The size of the label text. https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
Optional
font-A CSS font style to be applied to the label text. https://developer.mozilla.org/en-US/docs/Web/CSS/font-style
Optional
font-A CSS font weight to be applied to the label text.
Optional
haystack-A value between 0 and 1 inclusive that indicates the relative radius used to position haystack edges on their connected nodes. The outside of the node is at 1, and the centre of the node is at 0.
Optional
labelThe text to display for an element’s label.
Optional
line-The cap of the edge's line.
Optional
line-The colour of the edge’s line.
Optional
line-The dashed line offset.
Optional
line-The dashed line pattern which specifies alternating lengths of lines and gaps.
Optional
line-The filling style of the edge's line.
Optional
line-The colors of the gradient stops.
Optional
line-The positions of the gradient stops. If not specified (or invalid), the stops will divide equally.
Optional
line-The line height of multiline text, as a relative, unitless value. It specifies the
vertical spacing between each line. With value 1
(default), the lines are stacked
directly on top of one another with no additional whitespace between them.
With value 2
, for example, there is whitespace between each line equal to the visible
height of a line of text.
Optional
line-The opacity of the edge’s line and arrow. Useful if you wish to have a separate opacity for the edge label versus the edge line. Note that the opacity value of the edge element affects the effective opacity of its line and label subcomponents.
Value between 0
and 1
inclusive.
Optional
line-The style of the edge’s line.
Optional
loop-Determines the angle that loops extend from the node in cases when the source and
target node of an edge is the same. The angle is specified from the 12 o’clock
position and it progresses clockwise for increasing positive values.
The default is -45deg
(extending to the upper left).
Optional
loop-Determines the angle between the leaving and returning edges in loops. Positive
values result in clockwise looping and negative values result in counter-clockwise
looping. Default is -90deg
.
Optional
mid-The colour of the edge’s "mid-source" arrow.
Optional
mid-The fill state of the edge’s mid-source arrow.
Optional
mid-The shape of the edge’s mid-source arrow.
Optional
mid-The colour of the edge’s "mid-target" arrow.
Optional
mid-The fill state of the edge’s mid-target arrow.
Optional
mid-The shape of the edge’s mid-target arrow.
Optional
min-If zooming makes the effective font size of the label smaller than this, then no label is shown.Note that because of performance optimisations, the label may be shown at font sizes slightly smaller than this value.
This effect is more pronounced at larger screen pixel ratios.However, it is guaranteed that the label will be shown at sizes equal to or greater than the value specified.
Optional
opacityThe opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children.
Optional
overlay-The colour of the overlay.
Optional
overlay-The opacity of the overlay.
Optional
overlay-The area outside of the element within which the overlay is shown.
Optional
segment-A series of values that specify for each segment point the distance perpendicular to a line formed from source to target, e.g. -20 20 - 20.
Optional
segment-A series of values that weights segment points along a line from source to target, e.g. 0.25 0.5 0.75.A value usually ranges on [0, 1], with 0 towards the source node and 1 towards the target node — but larger or smaller values can also be used.
Optional
source-The colour of the edge’s source arrow.
Optional
source-The fill state of the edge’s source arrow.
Optional
source-The shape of the edge’s source arrow.
Optional
source-The distance the edge ends from its source.
Optional
source-Specifies the endpoint of the source side of the edge
Optional
source-The text to display for an edge’s source label.
Optional
source-(For the source label of an edge.)
Optional
source-(For the source label of an edge.)
Optional
source-For the source label of an edge, how far from the source node the label should be placed.
Optional
source-(For the source label of an edge.)
Optional
target-The colour of the edge’s target arrow.
Optional
target-The fill state of the edge’s target arrow.
Optional
target-The shape of the edge’s target arrow.
Optional
target-The distance the edge ends from its target.
Optional
target-Specifies the endpoint of the target side of the edge
Optional
target-The text to display for an edge’s target label.
Optional
target-(For the target label of an edge.)
Optional
target-(For the target label of an edge.)
Optional
target-For the target label of an edge, how far from the target node the label should be placed.
Optional
target-(For the target label of an edge.)
Optional
taxi-The main direction of the edge, the direction starting out from the source node; may be one of:
auto
: Automatically use vertical
or horizontal
, based on whether the vertical or horizontal distance is largest.vertical
: Automatically use downward
or upward
, based on the vertical direction from source to target.downward
: Bundle outgoers downwards.upward
: Bundle outgoers upwards.horizontal
: Automatically use righward
or leftward
, based on the horizontal direction from source to target.rightward
: Bundle outgoers righwards.leftward
: Bundle outgoers leftwards.Optional
taxi-The distance along the primary axis where the first turn is applied.
'20px'
) or it may be a relative distance
between the source and target (e.g. '50%'
).'-20px'
).Optional
taxi-The minimum distance along the primary axis that is maintained between the nodes and the turns.
'5px'
).Optional
text-A colour to apply on the text background.
Optional
text-The opacity of the label background; the background is disabled for 0 (default value).
Optional
text-The padding provides visual spacing between the text and the edge of the background.
Optional
text-The shape to use for the label background.
Optional
text-The colour of the border around the label.
Optional
text-The width of the border around the label; the border is disabled for 0 (default value).
Optional
text-The style of the border around the label.
Optional
text-The width of the border around the label.
Optional
text-Whether events should occur on an element if the label receives an event; may be yes
or no
.
You may want a style applied to the text on active so you know the text is activatable.
Optional
text-The vertical alignment of a node’s label.
Optional
text-The justification of multiline (wrapped) labels; may be
left
, center
, right
, or auto
(default). The auto value makes it so that a
node’s label is justified along the node — e.g. a label on the right side
of a node is left justified.
Optional
text-A margin that shifts the label along the x- axis.
Optional
text-A margin that shifts the label along the y- axis.
Optional
text-The maximum width for wrapped text, applied when "text-wrap" is set to wrap. For only manual newlines (i.e.\n), set a very large value like 1000px such that only your newline characters would apply.
Optional
text-The opacity of the label text, including its outline.
Optional
text-The colour of the outline around the element’s label text.
Optional
text-The opacity of the outline on label text.
Optional
text-The size of the outline on label text.
Optional
text-The characters that may be used for possible wrapping locations when
a line overflows text-max-width
; may be whitespace
(default) or anywhere
.
Note that anywhere is suited to CJK, where the characters are in a grid
and no whitespace exists. Using anywhere with text in the Latin alphabet,
for example, will split words at arbitrary locations.
Optional
text-A rotation angle that is applied to the label.
autorotate
can be used to align the label to the edge.none
can be used to denote 0deg.Optional
text-A transformation to apply to the label text.
Optional
text-The vertical alignment of a node’s label.
Optional
text-A wrapping style to apply to the label text; may be
Optional
transition-The length of the delay in seconds before the transition occurs (e.g. 250ms).
Optional
transition-The length of the transition in seconds(e.g. 0.5s).
Optional
transition-A comma separated list of style properties to animate in this state.
Optional
transition-An easing function that controls the animation progress curve (a visualisation of easings serves as a reference).
Optional
visibilityWhether the element is visible; may be visible or hidden. Note that a "visibility : hidden" bezier edge still takes up space in its bundle.
Optional
widthThe width of an edge’s line.
Optional
z-May be bottom, orphan, auto (default), or top. The first drawn is bottom, the second is orphan, which is the same depth as the root of the compound graph, followed by the default of auto which draws in depth order from root to leaves of the compound graph. The last drawn is top. It does not usually make sense to set this value for non-compound graphs.
Optional
z-An integer value that affects the relative draw order of elements. In general, an element with a higher "z-index" will be drawn on top of an element with a lower "z-index". Note that edges are under nodes despite "z-index", except when necessary for compound nodes.
Optional
z-May be auto (default) or manual. The auto setting draws edges under nodes, whereas manual ignores this convention and draws solely based on the z-index value.
These properties affect the styling of an edge’s line:
http://js.cytoscape.org/#style/edge-line