Skip to content

1681-engine / react / cursorTip

Function: cursorTip() ​

ts
function cursorTip(
   x, 
   y, 
   tip, 
   viewport, 
   options?
): TooltipPlacement;

Defined in: src/react/placement.ts:49

A tooltip of tip size by the cursor: under it while it fits, over it when not, slid to stay on screen.

Parameters ​

ParameterType
xnumber
ynumber
tipSize
viewportSize
optionsCursorTipOptions

Returns ​

TooltipPlacement

Released under the MIT License.