Skip to main content
AutoEdgeConnectOptions
Options for auto edge connect.
NameTypeDescription
activeClass?stringClass to set on the UI canvas when drag starts and auto edge connect is active
connectMode?"eager" | "onDemand"The mode to run the auto connect functionality in. "onDemand" is the default, meaning the user has to press the Meta key in order to activate the edge auto connect. In "eager" mode, the edge auto connect is switched on as soon as drag starts.
enabledbooleanWhether or not auto edge connect is enabled.
key?stringThe key to listen for to switch from primed to active when connect mode is onDemand
lineStyle?LineStyleStyle to use for an automatically created edge (while the user is still dragging the new element). Defaults to a gray dashed line.