normalize ranges

This commit is contained in:
Kevin Jahns
2022-07-04 16:05:44 +02:00
parent 44499cb9fe
commit ab5061cd47
2 changed files with 43 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ import {
import { decodeRelativePosition, encodeRelativePosition } from 'yjs'
/**
* @param {ContentMove} moved
* @param {ContentMove | { start: RelativePosition, end: RelativePosition }} moved
* @param {Transaction} tr
* @return {{ start: Item, end: Item }} $start (inclusive) is the beginning and $end (inclusive) is the end of the moved area
*/