Loading http://www.nihilogic.dk/labs/canvas_sheet/HTML5_Canvas_Cheat_Sheet.pdf

if (!this.parent && parent) {
      
      
      this._uiManager.removeShouldRescale(this);
    } else if (this.parent && parent === null) {
      
      
      
      this._uiManager.addShouldRescale(this);
    }
    super.setParent(parent);
  }
  onScaleChanging() {