API
Types de lieux
Point
6 min
point les objets font référence à un emplacement spécifique dans un nœud de texte dans un document slate son chemin fait référence à l'emplacement du nœud dans l'arbre, et son décalage fait référence à la distance dans la chaîne de texte du nœud les points peuvent uniquement faire référence à texte nœuds interface point { path path offset number } docid\ v4vb9afd8kro0e8ffqd7c docid\ v4vb9afd8kro0e8ffqd7c docid\ v4vb9afd8kro0e8ffqd7c docid\ v4vb9afd8kro0e8ffqd7c méthodes statiques méthodes de récupération point compare(point point, another point) 1 | 0 | 1 comparer un point à un autre , retournant un entier indiquant si le point était avant, à ou après l'autre méthodes de vérification point isafter(point point, another point) boolean vérifiez si un point est après un autre point isbefore(point point, un autre point) boolean vérifiez si un point est avant un autre point equals(point point, un autre point) boolean vérifiez si un point est exactement égal à un autre point ispoint(value any) value est point vérifiez si une valeur implémente l' interface point méthodes de transformation point transform(point point, op operation, options?) point | null transformez un point par un op options {affinity? 'avant' | 'arrière' | null}
