BeginTooltip#
func BeginTooltip(canvas *ui.Canvas, theme ui.Theme, viewport, anchor ui.Rect, options TooltipOptions) TooltipBeginTooltip creates a tooltip declaration.
type Tooltip struct {
// contains filtered or unexported fields
}Tooltip is one noninteractive Vega tooltip declaration.
BeginTooltip#func BeginTooltip(canvas *ui.Canvas, theme ui.Theme, viewport, anchor ui.Rect, options TooltipOptions) TooltipBeginTooltip creates a tooltip declaration.
Disabled#func (tooltip Tooltip) Disabled() TooltipDisabled suppresses the popup for a disabled trigger.
Paint#func (tooltip Tooltip) Paint(label string) ui.RectPaint renders the label and arrow on the caller-provided layer. A label wider than MaxWidth wraps. The tooltip opens on the opposite side when the requested one has no room, and its arrow follows.