Device.setDeviceScale(scale, animate)
The scale of the device and an optional animation (true or false). Supported scale values range from 0.5 to 1.
译:设置设备缩放比例,这个函数会有一个额外的动画选项animation(true或false)。允许的值是0.5到1。
# Set device scale and animate
Framer.Device.setDeviceScale(0.5, true)