Skip to main content
class OGMark Make a mark with OpenGeometry.mark(). Do not call the constructor.

rollback

rollback(): void Takes the document back to the mark. The mark stays live. Marks made after it are released.

release

release(): void Ends the mark and frees the history that only it kept. Both throw InvalidMark on a released mark.
  • OpenGeometry.markStats() returns { liveMarks, retainedRevisions }.
  • OpenGeometry.transaction(fn, { dryRun? }) runs fn between a mark and its release, and rolls back if fn throws.
See History.
Last modified on November 10, 2026