const { maxScale, scale, scaleStep } = this
这个是es6的写法
最终等价于
const maxScale = this.maxScale
const scale = this.scale
const scaleStep = this.scaleStep
const { maxScale, scale, scaleStep } = this
这个是es6的写法
最终等价于
const maxScale = this.maxScale
const scale = this.scale
const scaleStep = this.scaleStep