groupOut全局坐標(50,50)
gourpIn全局坐標(100,100),并嵌套在groupOut里
btn全局坐標(150,150),并嵌套在groupIn里
獲取組件全局坐標時,必須調用自己上層容器的localToGlobal方法
獲取btn的全局坐標
console.log(this.groupIn.localToGlobal(this.btn.x, this.btn.y)); //150,150
獲取groupIn的全局坐標
console.log(this.groupOut.localToGlobal(this.groupIn.x, this.groupIn.y)); //100,100
全局坐標轉成groupIn的局部坐標
console.log(this.groupIn.globalToLocal(150,150)); //50,50