How can openlayers tell if the point is online?

as mentioned in the question, how can openlayers tell if the point is online? I only found the judgment point whether it is in the noodle or not, but I didn"t find it whether it was on the line

.
Aug.23,2021
Menu