useContextualToolbarPosition
See source codefunction useContextualToolbarPosition({
isVisible,
toolbarRef,
selectionBounds,
}: {
isVisible: boolean
selectionBounds?: Box
toolbarRef: RefObject<HTMLDivElement>
}): {
indicatorOffset: number
visible: boolean
x: number
y: number
}
Parameters
Name | Description |
---|---|
|
|
Returns
{
indicatorOffset: number
visible: boolean
x: number
y: number
}
Prev
useCollaborationStatusNext
useCopyAs