UNPKG

edit-on-slate

Version:

Slate 기반의 직관적이고 강력한 리액트 텍스트 에디터 라이브러리

20 lines 688 B
import { Operation, Point } from '..'; import { TextDirection } from '../types/types'; /** * `PointRef` objects keep a specific point in a document synced over time as new * operations are applied to the editor. You can access their `current` property * at any time for the up-to-date point value. */ export interface PointRef { current: Point | null; affinity: TextDirection | null; unref(): Point | null; } export interface PointRefInterface { /** * Transform the point ref's current value by an operation. */ transform: (ref: PointRef, op: Operation) => void; } export declare const PointRef: PointRefInterface; //# sourceMappingURL=point-ref.d.ts.map