Class: TooltipRenderer

PSV.services~TooltipRenderer

new TooltipRenderer (psv)

Tooltip renderer

Name Type Description
psv PSV.Viewer

Extends

Members

config PSV.Options readonly inherited overrides

Configuration holder

prop Object readonly inherited overrides

Properties holder

Reference to main controller

size Object package

Computed static sizes

Properties:
Name Type Description
arrowSize number
offset number

Methods

create (config)PSV.components.Tooltip

Displays a tooltip on the viewer

Name Type Description
config PSV.components.Tooltip.Config
Fires:
  • PSV.event:show-tooltip
Throws:

when the configuration is incorrect

Type
PSV.PSVError
Returns:
Type Description
PSV.components.Tooltip
Example
viewer.tooltip.create({ content: 'Hello world', top: 200, left: 450, position: 'center bottom'})

destroy () inherited overrides

Destroys the service