Editor.offsetToPos method
Editor › offsetToPos
Official
Convert an offset to a position.Signature:
offsetToPos(offset: number): EditorPositionParameters:
| Parameter | Type | Description |
|---|---|---|
| offset | number | The offset to convert. |
Returns: EditorPosition — The position.
Since: 0.11.11
Example:
console.log(editor.offsetToPos(123));