Skip to main content

PaperDefaults

Defaults for a Paper renderer

Extends

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

BrowserUIDefaults.edgeRelocateHandleSize


elementsDraggable?

optional elementsDraggable: boolean

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

Inherited from

BrowserUIDefaults.elementsDraggable


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.

Inherited from

BrowserUIDefaults.hoverEvents


hoverPaintStyle?

optional hoverPaintStyle: PaintStyle

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

Inherited from

BrowserUIDefaults.hoverPaintStyle


paintStyle?

optional paintStyle: PaintStyle

Default style to use to paint edges.

Inherited from

BrowserUIDefaults.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()

Inherited from

BrowserUIDefaults.resizeObserver