Hylograph.Tooltip
- Package
- purescript-hylograph-selection
- Repository
- afcondon/purescript-hylograph-selection
#hideTooltip Source
hideTooltip :: Effect UnitHide the tooltip
#setTooltipClass Source
setTooltipClass :: String -> Effect UnitSet custom CSS class for tooltip styling
#onTooltip Source
onTooltip :: forall d. (d -> String) -> Behavior dCreate a tooltip behavior from a content formatter
This is the simplest way to add tooltips - just provide a function that converts your datum to HTML string content.
Example:
_ <- on (onTooltip \d -> d.name <> ": " <> show d.value) circles
The tooltip will automatically:
- Show on mouse enter at the cursor position
- Hide on mouse leave
- Stay within viewport bounds
#onTooltipHide Source
onTooltipHide :: forall d. Behavior dHide tooltip on mouse leave
Pair with onTooltip for complete tooltip behavior:
_ <- on (onTooltip \d -> d.name) element
_ <- on onTooltipHide element
#TooltipConfig Source
type TooltipConfig = { backdropFilter :: Maybe String, background :: Maybe String, border :: Maybe String, borderRadius :: Maybe String, boxShadow :: Maybe String, color :: Maybe String, fontFamily :: Maybe String, fontSize :: Maybe String, lineHeight :: Maybe String, maxWidth :: Maybe String, padding :: Maybe String }Tooltip configuration for programmatic styling
All fields are optional - only specified fields will override defaults.
Prefer using CSS via .psd3-tooltip class for base styling, and use
this for dynamic themes or application-specific overrides.
#defaultConfig Source
defaultConfig :: TooltipConfigDefault configuration (minimal - relies on CSS)
#floatingPanelTheme Source
floatingPanelTheme :: TooltipConfigFloating panel theme - matches blueprint-style floating panels
Features:
- Tan/beige translucent background
- Backdrop blur (glassmorphism)
- Monospace font
- Subtle borders and shadows
#darkTheme Source
darkTheme :: TooltipConfigDark theme - traditional dark tooltip
#lightTheme Source
lightTheme :: TooltipConfigLight theme - clean, minimal light tooltip
- Modules
- Data.
DependencyGraph - Hylograph.
AST - Hylograph.
Axis. Axis - Hylograph.
Brush - Hylograph.
Brush. FFI - Hylograph.
Brush. Types - Hylograph.
Classify - Hylograph.
Data. Graph - Hylograph.
Data. Graph. Algorithms - Hylograph.
Data. Node - Hylograph.
Data. Tree - Hylograph.
Expr. Animation - Hylograph.
Expr. Attr - Hylograph.
Expr. Datum - Hylograph.
Expr. Expr - Hylograph.
Expr. Friendly - Hylograph.
Expr. Integration - Hylograph.
Expr. Interpreter. CodeGen - Hylograph.
Expr. Interpreter. Eval - Hylograph.
Expr. Interpreter. Meta - Hylograph.
Expr. Interpreter. PureSVG - Hylograph.
Expr. Interpreter. SVG - Hylograph.
Expr. Path - Hylograph.
Expr. Path. Generators - Hylograph.
Expr. Sugar - Hylograph.
Expr. Units - Hylograph.
HATS - Hylograph.
HATS. Friendly - Hylograph.
HATS. InterpreterTick - Hylograph.
HATS. Transitions - Hylograph.
Interaction. Brush - Hylograph.
Interaction. Coordinated - Hylograph.
Interaction. Pointer - Hylograph.
Interaction. Zoom - Hylograph.
Internal. Attribute - Hylograph.
Internal. Behavior. FFI - Hylograph.
Internal. Behavior. Types - Hylograph.
Internal. Capabilities. Selection - Hylograph.
Internal. Capabilities. Transition - Hylograph.
Internal. FFI - Hylograph.
Internal. Selection. Join - Hylograph.
Internal. Selection. Operations - Hylograph.
Internal. Selection. Operations. Conversions - Hylograph.
Internal. Selection. Operations. Helpers - Hylograph.
Internal. Selection. Operations. Selection - Hylograph.
Internal. Selection. Query - Hylograph.
Internal. Selection. Types - Hylograph.
Internal. Transition. FFI - Hylograph.
Internal. Transition. Manager - Hylograph.
Internal. Transition. Scene - Hylograph.
Internal. Transition. Types - Hylograph.
Internal. Types - Hylograph.
Interpreter. D3 - Hylograph.
Interpreter. English - Hylograph.
Interpreter. Mermaid - Hylograph.
Interpreter. MetaAST - Hylograph.
Interpreter. SemiQuine - Hylograph.
Interpreter. SemiQuine. TreeToCode - Hylograph.
Interpreter. SemiQuine. Types - Hylograph.
Render - Hylograph.
Scale - Hylograph.
Scale. FP - Hylograph.
Shape. Arc - Hylograph.
Shape. Pie - Hylograph.
Shape. Polygon - Hylograph.
Tooltip - Hylograph.
Transform - Hylograph.
TreeDSL - Hylograph.
TreeDSL. ShapeTree - Hylograph.
Unified - Hylograph.
Unified. Attribute - Hylograph.
Unified. DataDSL - Hylograph.
Unified. Display - Hylograph.
Unified. Examples - Hylograph.
Unified. Join - Hylograph.
Unified. Sugar