Optional
background-How background image clipping is handled; may be node for clipped to node shape or none for no clipping.
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 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
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]).
A background image may be applied to a node’s body:
http://js.cytoscape.org/#style/background-image