Point
API reference for points in Slate.
A Point represents a specific location in a Slate document. It consists of a path to a text node and an offset within that text node's content.
type Point = {
path: Path
offset: number
}
PointAPI
get
Get a point from a location.
transform
Transform a point by an operation.
compare
Compare a point to another.
equals
Check if two points are exactly equal.
isAfter
Check if a point is after another.
isBefore
Check if a point is before another.
isPoint
Check if a value implements the Point
interface.
Types
Point
A point represents a specific location in a Slate document.
PointEntry
A point entry is returned when iterating over Point
objects that belong to a range.