Configures the styling options for edges in a G6 graph. These settings control the appearance and interaction behavior of edges.
edge_style_options(
class = NULL,
cursor = valid_cursors,
fill = NULL,
fillRule = c("nonzero", "evenodd"),
filter = NULL,
increasedLineWidthForHitTesting = NULL,
isBillboard = TRUE,
lineDash = 0,
lineDashOffset = 0,
lineWidth = 1,
opacity = 1,
pointerEvents = NULL,
shadowBlur = NULL,
shadowColor = NULL,
shadowOffsetX = NULL,
shadowOffsetY = NULL,
shadowType = NULL,
sourcePort = NULL,
stroke = "#000",
strokeOpacity = 1,
targetPort = NULL,
transform = NULL,
transformOrigin = NULL,
visibility = c("visible", "hidden"),
zIndex = -10000,
...
)
A list containing edge style options that can be passed to edge_options()
.
Edge class name for custom styling with CSS. Default: NULL.
Edge mouse hover cursor style. Common values include "default", "pointer", "move", etc. Default: "default".
Edge area fill color (for edges with area, like loops). Default: NULL.
Edge internal fill rule. Options: "nonzero", "evenodd". Default: NULL.
Edge shadow filter effect. Default: NULL.
When the edge width is too small, this value increases the interaction area to make edges easier to interact with. Default: NULL.
Effective in 3D scenes, always facing the screen so the line width is not affected by perspective projection. Default: TRUE.
Edge dashed line style. Numeric vector specifying dash pattern. Default: 0.
Edge dashed line offset. Default: 0.
Edge width in pixels. Default: 1.
Overall opacity of the edge. Value between 0 and 1. Default: 1.
Whether the edge responds to pointer events. Default: NULL.
Edge shadow blur effect amount. Default: NULL.
Edge shadow color. Default: NULL.
Edge shadow X-axis offset. Default: NULL.
Edge shadow Y-axis offset. Default: NULL.
Edge shadow type. Options: "inner", "outer", "both". Default: NULL.
Source port of the edge connection. Default: NULL.
Edge color. Default: "#000".
Edge color opacity. Value between 0 and 1. Default: 1.
Target port of the edge connection. Default: NULL.
CSS transform attribute to rotate, scale, skew, or translate the edge. Default: NULL.
Rotation and scaling center point. Default: NULL.
Whether the edge is visible. Options: "visible", "hidden". Default: "visible".
Edge rendering level (for layering). Default: 1.
Extra parameters.
Edge style options allow fine-grained control over how edges are rendered and behave in a G6 graph. This includes colors, widths, line styles, shadows, visibility, and interaction properties.