Skip to content

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').

ParameterTypeDefault value
pathBlockPathundefined
offsetnumberundefined
overTransactionOpundefined
biasMapBias'right'

| { offset: number; path: BlockPath; } | null