Skip to main content

BrowserUIDefaults

Defaults for the BrowserUI implementation of VisuallyJs.

Extends

Extended by

Properties

edgeRelocateHandleSize?

optional edgeRelocateHandleSize: number

Width/height of the SVG element with which a user can drag to relocate the source or target of some edge. Defaults to 20.

Inherited from

UICoreDefaults.edgeRelocateHandleSize


elementsDraggable?

optional elementsDraggable: boolean

Whether or not elements should be draggable. Default value is true.


hoverEvents?

optional hoverEvents: boolean

Defaults 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?

optional hoverPaintStyle: PaintStyle

Default style to use to paint edges when mouse is hovering over them.

Inherited from

UICoreDefaults.hoverPaintStyle


paintStyle?

optional paintStyle: PaintStyle

Default style to use to paint edges.

Inherited from

UICoreDefaults.paintStyle


resizeObserver?

optional resizeObserver: boolean

Defaults 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()