Skip to content

setCharIdVisibility

const setCharIdVisibility: (snapshot, spans) => PieceTableSnapshot

Change retained IDs’ visibility without allocating identities or copying their payloads. Spans must be disjoint, so contradictory visibility cannot depend on input order.

PieceTableSnapshot

readonly CharIdVisibility[]

PieceTableSnapshot