UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

15 lines (14 loc) 654 B
import { ValueSyncStore } from '../../../util/events/sync-store'; import type { PeritextSurfaceState, UiLifeCycles } from '../../web'; export declare class CursorState implements UiLifeCycles { readonly ctx: PeritextSurfaceState; /** Current score. */ readonly score: ValueSyncStore<number>; /** By how much the score changed. */ readonly scoreDelta: ValueSyncStore<number>; /** The last score that was shown to the user. */ readonly lastVisScore: ValueSyncStore<number>; constructor(ctx: PeritextSurfaceState); /** -------------------------------------------------- {@link UiLifeCycles} */ start(): () => void; }