Skip to content

API > @blocksuite/virgo > textPointToDomPoint

Function: textPointToDomPoint ​

textPointToDomPoint( text, offset, rootElement): DomPoint | null

Parameters ​

ParameterType
textText
offsetnumber
rootElementHTMLElement

Returns ​

DomPoint | null

Defined In ​

packages/virgo/src/utils/point-conversion.ts:48