rebaseTextPoint
function rebaseTextPoint( path, offset, over, bias?): | { offset: number; path: BlockPath;} | null;Defined in: ledger-rebase.ts:180
Map a (block path, text offset) point through a single concurrent op.
Returns the transformed point, or null if its block was deleted or the
transform is unsupported. bias decides which side a point biases toward when
an edit lands exactly on it (default 'right').
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
path | BlockPath | undefined |
offset | number | undefined |
over | TransactionOp | undefined |
bias | MapBias | 'right' |
Returns
Section titled “Returns”| {
offset: number;
path: BlockPath;
}
| null