createPath_(context) {
    let points = this.points_;
    const radius = this.radius_;
    if (points === Infinity) {
      context.arc(0, 0, radius, 0, 2 * Math.PI);
    } else {
      const radius2 = this.radius2_ === undefined ? radius : this.radius2_;
      if (this.radius2_ !== undefined) {
        points *= 2;
      }
      const startAngle = this.angle_ - Math.PI / 2;
      const step = (2 * Math.PI) / points;
      for (let i = 0; i < points; i++) {
        const angle0 = startAngle + i * step;
        const radiusC = i % 2 === 0 ? radius : radius2;
        context.lineTo(radiusC * Math.cos(angle0), radiusC * Math.sin(angle0));
      }
      context.closePath();
    }
  }
/**
   * @private
   * @param {CanvasRenderingContext2D} context The context to draw in.
   */
@private
@param {CanvasRenderingContext2D} context The context to draw in.
@private @param { CanvasRenderingContext2D } context The context to draw in .
createPath_(context) {
    let points = this.points_;
    const radius = this.radius_;
    if (points === Infinity) {
      context.arc(0, 0, radius, 0, 2 * Math.PI);
    } else {
      const radius2 = this.radius2_ === undefined ? radius : this.radius2_;
      if (this.radius2_ !== undefined) {
        points *= 2;
      }
      const startAngle = this.angle_ - Math.PI / 2;
      const step = (2 * Math.PI) / points;
      for (let i = 0; i < points; i++) {
        const angle0 = startAngle + i * step;
        const radiusC = i % 2 === 0 ? radius : radius2;
        context.lineTo(radiusC * Math.cos(angle0), radiusC * Math.sin(angle0));
      }
      context.closePath();
    }
  }
createPath_ ( context ) { let points = this . points_ ; const radius = this . radius_ ; if ( points === Infinity ) { context . arc ( 0 , 0 , radius , 0 , 2 * Math . PI ) ; } else { const radius2 = this . radius2_ === undefined ? radius : this . radius2_ ; if ( this . radius2_ !== undefined ) { points *= 2 ; } const startAngle = this . angle_ - Math . PI / 2 ; const step = ( 2 * Math . PI ) / points ; for ( let i = 0 ; i < points ; i ++ ) { const angle0 = startAngle + i * step ; const radiusC = i % 2 === 0 ? radius : radius2 ; context . lineTo ( radiusC * Math . cos ( angle0 ) , radiusC * Math . sin ( angle0 ) ) ; } context . closePath ( ) ; } }
@private
 @param {CanvasRenderingContext2D} context The context to draw in.
@private @param { CanvasRenderingContext2D } context The context to draw in .