code: function () {
              if (this.raf_id) {
                  cancelAnimationFrame(this.raf_id);
                  this.raf_id = null;
              }
  
              clearTimeout(this.update_tm);
              this.update_tm = null;
  
              if (!this.options) {
                  return;
              }
  
              this.drawHandles();
  
              if (this.is_active) {
                  this.raf_id = requestAnimationFrame(this.updateScene.bind(this));
              } else {
                  this.update_tm = setTimeout(this.updateScene.bind(this), 300);
              }
          }
docs: ============================================================================================================= Drawings 
  Main function called in request animation frame
  to update everything