draw()

in client/src/js/Drawer.ts [30:49]


  draw(drawOptions: DrawOptions) {
    if (drawOptions.faceDrawBoxOptions) {
      const faceAreaBox = {
        x: this.challengeDetails.areaLeft,
        y: this.challengeDetails.areaTop,
        width: this.challengeDetails.areaWidth,
        height: this.challengeDetails.areaHeight
      };
      this.drawArea(faceAreaBox, drawOptions.faceDrawBoxOptions);
    }
    if (drawOptions.noseDrawBoxOptions) {
      const noseAreaBox = {
        x: this.challengeDetails.noseLeft,
        y: this.challengeDetails.noseTop,
        width: this.challengeDetails.noseWidth,
        height: this.challengeDetails.noseHeight
      };
      this.drawArea(noseAreaBox, drawOptions.noseDrawBoxOptions);
    }
  }