Optional
background-Blackens the node’s body for values from 0 to 1; whitens the node’s body for values from 0 to -1.
Optional
background-How background image clipping is handled; may be node for clipped to node shape or none for no clipping.
Optional
background-The colour of the node’s body.
Optional
background-How the background image is fit to the node; may be none for original size, contain to fit inside node, or cover to cover the node.
Optional
background-Specifies the height of the image. A percent value (e.g. 50%) may be used to set the image height relative to the node height. If used in combination with background- fit, then this value overrides the height of the image in calculating the fitting — thereby overriding the aspect ratio. The auto value is used by default, which uses the height of the image.
Optional
background-Changes whether the height is calculated relative to the height of the node or
the height in addition to the padding; may be inner
or include-padding
.
If not specified, include-padding
is used by default.
Optional
background-The URL that points to the image that should be used as the node’s background. PNG, JPG, and SVG are supported formats. You may use a data URI to use embedded images, thereby saving a HTTP request.
Optional
background-Determines whether background image is within (inside
)
or over top of the node (over
).
The default is set to inside
.
Optional
background-All images are loaded with a crossorigin attribute which may be anonymous
or
use-credentials
.
The default is set to anonymous
.
Optional
background-The opacity of the background image. [0 1]
Optional
background-Determines whether background image is smoothed (yes
, default) or not (no
).
This is only a hint, and the browser may or may not respect the
value set for this property.
Optional
background-The x offset of the background image,
measured in percent(e.g. '50%'
) or pixels (e.g. '10px'
).
Optional
background-The y offset of the background image,
measured in percent(e.g. '50%'
) or pixels (e.g. '10px'
).
Optional
background-The opacity level of the node’s background colour.
Optional
background-The x position of the background image,
measured in percent(e.g. '50%'
) or pixels (e.g. '10px'
).
Optional
background-The y position of the background image,
measured in percent(e.g. '50%'
) or pixels (e.g. '10px'
).
Optional
background-Whether to repeat the background image; may be no-repeat, repeat-x, repeat-y, or repeat.
Optional
background-Specifies the width of the image. A percent value (e.g. 50%) may be used to set the image width relative to the node width. If used in combination with background- fit, then this value overrides the width of the image in calculating the fitting — thereby overriding the aspect ratio. The auto value is used by default, which uses the width of the image.
Optional
background-Changes whether the width is calculated relative to the width of the node or the width in addition to the padding; may be inner or include-padding.
If not specified, include-padding is used by default.
Optional
backgroundOptional
border-The colour of the node’s border.
Optional
border-The opacity of the node’s border. A value between [0 1].
Optional
border-The style of the node’s border.
Optional
border-The size of the node’s border.
Optional
bounds-Specifies a padding size (e.g. 20) that expands the bounding box of the node in
all directions. This allows for images to be drawn outside of the normal bounding
box of the node when background-clip
is none. This is useful for small decorations
just outside of the node.
bounds-expansions
accepts 1 value (for all directions),
2 values, ([topAndBottom, leftAndRight]) or 4 values ([top, right, bottom, left]).
Optional
colorThe colour of the element’s label.
Optional
contentThe CSS content field
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
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
ghostWhether to use the ghost effect; may be yes or no.
Optional
ghost-The horizontal offset used to position the ghost effect.
Optional
ghost-The vertical offset used to position the ghost effect.
Optional
ghost-The opacity of the ghost effect.
Optional
heightThe height of the node’s body. This property can take on the special value label so the height is automatically based on the node’s label.
Optional
labelThe text to display for an element’s label.
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
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
padding-Optional
padding-Optional
padding-Optional
padding-Optional
pie-Optional
pie-Optional
pie-Optional
pie-Optional
shapeThe shape of the node’s body.
Optional
shape-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 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
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 the node’s body. This property can take on the special value label so the width is automatically based on the node’s label.
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.
http://js.cytoscape.org/#style/node-body