Kind: Function
Source: atloria-monorepo/apps/web/src/components/Editor/UserCursors.tsx
Utility function to get selection rectangles for highlighting
Signature
tsfunction getSelectionRects(anchor: number, head: number, container: HTMLElement | null): DOMRect[]
Parameters
| Name | Type |
|---|---|
anchor | number |
head | number |
container | `HTMLElement |
Returns: DOMRect[]
Was this page helpful?