code: function queue(ctx, type, points, cpoints) {
          if (type === void 0 || (type !== 'bezier' && type !== 'quadratic')) {
              type = 'quadratic';
          }
          type = type + 'CurveTo';
  
          if (line.length == 0) line.push([points[0], points[1], cpoints.concat(points.slice(2)), type]);
          else if (type == "quadraticCurveTo" && points.length == 2) {
              cpoints = cpoints.slice(0, 2).concat(points);
  
              line.push([points[0], points[1], cpoints, type]);
          }
          else line.push([points[2], points[3], cpoints.concat(points.slice(2)), type]);
      }
docs: @param {Object} ctx: canvas context
  @param {String} type: accepted strings: 'bezier' or 'quadratic' (defaults to quadratic)
  @param {Array} points: 2 points for which to draw the interpolation
  @param {Array} cpoints: control points for those segment points
  
  @api private