function propertyFn(property) {
  if (property === 'angle') {
    return {
      between: _angleBetween,
      compare: _angleDiff,
      normalize: _normalizeAngle,
    };
  }
  return {
    between: _isBetween,
    compare: (a, b) => a - b,
    normalize: x => x
  };
}
@typedef { import('../elements/element.line.js').default } LineElement
@typedef { import('../elements/element.point.js').default } PointElement
@typedef {{start: number, end: number, loop: boolean, style?: any}} Segment