Skip to main content
PaperDefaults
Defaults for a Paper renderer
NameTypeDescription
edgeRelocateHandleSize?numberWidth/height of the SVG element with which a user can drag to relocate the source or target of some edge. Defaults to 20.
elementsDraggable?booleanWhether or not elements should be draggable. Default value is true.
hoverEvents?booleanDefaults to false. When true, VisuallyJs tracks mouseover/mouseout/mouseenter/mouseexit events for overlays, elements and connections. Most of the reasoning for having this ability was related to the initial canvas renderer, and with SVG/CSS this functionality is, for the most part, not needed. But you can switch it on if you need to.
hoverPaintStyle?PaintStyleDefault style to use to paint edges when mouse is hovering over them.
paintStyle?PaintStyleDefault style to use to paint edges.
resizeObserver?booleanDefaults to true, indicating that a ResizeObserver will be used, where available, to allow VisuallyJs to revalidate elements whose size in the DOM have been changed, without the library user having to call revalidate()