All files / tools/src/types SplineProps.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26                                                   
export type SplineProps = {
  /**
   * Resolution of the spline curve
   *
   * The number assigned to the resolution is the number of intermediate points on each
   * curve segment that makes the spline path. For example, if the resolution is set to 0
   * that means that each curve segment will have no intermediate points but only a straight
   * line similar to Linear Spline. For a resolution equal to 20 that means the curve shall
   * have 20 intermediate points or 21 line segments total making it look more like a curve.
   */
  resolution?: number;
 
  /**
   * Fixed resolution (Linear spline)
   *
   * Splines with `fixedResolution` set to true shall attempt to change the
   * resolution (eg: spline.resolution = 10). That is useful, for example, for
   * linear splines because having more line segments between two control points
   * would not change its resolution and that is why it is fixed to 0.
   */
  fixedResolution?: boolean;
 
  /** Flag that is set to true when the curve is closed */
  closed?: boolean;
};