Skip to content

computeTouches

function computeTouches(ops, baseDoc): RecordTouch[];

Defined in: ledger-conflict.ts:57

Resolve the id-keyed conflict surface of a list of ops against the document they were authored against. Pure; runs in O(ops) plus the cost of path resolution. setSelection ops contribute nothing — moving a caret never conflicts with content.

ParameterType
opsreadonly TransactionOp[]
baseDocDocumentNode

RecordTouch[]