Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/Tooltip/index"

Component to render the cursor tooltip for a graph

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

TooltipProps

TooltipProps: SelfProps & Pick<Dimensions, "height" | "width"> & Partial<Pick<CommonProps, "color" | "graphIndex" | "graphWidth">>

All Tooltip props

TooltipState

TooltipState: Pick<SelfProps, "xOffset" | "yOffset" | "content" | "visible">

Tooltip State Management

Variables

Const TOOLTIP_X_OFFSET

TOOLTIP_X_OFFSET: 20 = 20

Functions

Const Tooltip

  • Tooltip(__namedParameters: { content: ReactNode; graphWidth: number; height: number; visible: boolean; width: number; xOffset: number; yOffset: number }): Element
  • Tooltip Component

    Parameters

    • __namedParameters: { content: ReactNode; graphWidth: number; height: number; visible: boolean; width: number; xOffset: number; yOffset: number }
      • content: ReactNode
      • graphWidth: number
      • height: number
      • visible: boolean
      • width: number
      • xOffset: number
      • yOffset: number

    Returns Element

Generated using TypeDoc