API > @blocksuite/virgo > virgoRangeToDomRange
Function: virgoRangeToDomRange ​
virgoRangeToDomRange(
rootElement
,vRange
):Range
|null
calculate the dom selection from vRange for this Editor
Parameters ​
Parameter | Type |
---|---|
rootElement | HTMLElement |
vRange | VRange |
Returns ​
Range
| null
Defined In ​
packages/virgo/src/utils/range-conversion.ts:249