提交 120d0b4a 编写于 作者: Q qiang

Merge branch 'dev' into alpha

......@@ -106,6 +106,7 @@ if (pixelRatio !== 1) {
args[1] *= pixelRatio
args[2] *= pixelRatio
args[3] *= pixelRatio
isNaN(args[3]) && (args.length = 3)
// Safari 重新设置部分属性会导致其他值恢复默认,需获取原始值
var font = this.__font__ || this.font
......@@ -127,11 +128,12 @@ if (pixelRatio !== 1) {
if (!this.__hidpi__) {
return _super.apply(this, arguments)
}
var args = Array.prototype.slice.call(arguments)
const args = Array.prototype.slice.call(arguments)
args[1] *= pixelRatio // x
args[2] *= pixelRatio // y
args[3] *= pixelRatio // y
args[3] *= pixelRatio // maxWidth
isNaN(args[3]) && (args.length = 3)
// Safari 重新设置部分属性会导致其他值恢复默认,需获取原始值
var font = this.__font__ || this.font
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册