draw() {
    this.checkContext();
    this.setRendered();
    if (this.unbeamable) return;

    if (!this.postFormatted) {
      this.postFormat();
    }

    this.drawStems();
    this.applyStyle();
    this.drawBeamLines();
    this.restoreStyle();
  }
// Render the beam to the canvas context
Render the beam to the canvas context
Render the beam to the canvas context
draw() {
    this.checkContext();
    this.setRendered();
    if (this.unbeamable) return;
    if (!this.postFormatted) {
      this.postFormat();
    }
    this.drawStems();
    this.applyStyle();
    this.drawBeamLines();
    this.restoreStyle();
  }
draw ( ) { this . checkContext ( ) ; this . setRendered ( ) ; if ( this . unbeamable ) return ; if ( ! this . postFormatted ) { this . postFormat ( ) ; } this . drawStems ( ) ; this . applyStyle ( ) ; this . drawBeamLines ( ) ; this . restoreStyle ( ) ; }
Render the beam to the canvas context
Render the beam to the canvas context