Defines a range on text using relative positions that can be transformed back to absolute positions. (https://docs.yjs.dev/api/relative-positions)

Hierarchy

  • YRange

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Convert the position to JSON

    Returns Range

  • Convert a JSON range to a YRange

    Parameters

    • json: Range

      Range to convert

    Returns YRange

    The range as YRange

Generated using TypeDoc