function splitByStyles(line, segments, points, segmentOptions) {
  if (!segmentOptions || !segmentOptions.setContext || !points) {
    return segments;
  }
  return doSplitByStyles(line, segments, points, segmentOptions);
}
@param {Segment[]} segments
@param {PointElement[]} points
@param {object} [segmentOptions]
@return {Segment[]}