@jupyter/ydoc
    Preparing search index...

    Class YFile

    Shareable text file.

    Hierarchy (View Summary)

    Implements

    Index
    _changed: Signal<YFile, FileChange> = ...
    version: string = '1.0.0'

    Document version

    ysource: YText = ...

    YJS file text.

    • Perform a transaction. While the function f is called, all changes to the shared document are bundled into a single event.

      Parameters

      • f: () => void
      • undoable: boolean = true
      • origin: any = null

      Returns void

    • Replace content from start' to endwithvalue`.

      Parameters

      • start: number

        The start index of the range to replace (inclusive).

      • end: number

        The end index of the range to replace (exclusive).

      • value: string = ''

        New source (optional).

      Returns void