antd-mini
Advanced tools
Comparing version 1.9.3 to 1.9.4
@@ -37,4 +37,3 @@ import { __awaiter, __generator } from "tslib"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var systemInfo, pixelRatio; | ||
var _this = this; | ||
var systemInfo, pixelRatio, width; | ||
return __generator(this, function (_a) { | ||
@@ -49,17 +48,10 @@ switch (_a.label) { | ||
pixelRatio = systemInfo.pixelRatio; | ||
return [2 /*return*/, new Promise(function (resolve) { | ||
_this.ctx = my.createCanvasContext("progress-canvas-".concat(_this.$id)); | ||
_this.ctx.imageSmoothingEnabled = true; | ||
_this.ctx.imageSmoothingQuality = 'high'; | ||
my.createSelectorQuery() | ||
.select('.ant-progress') | ||
.boundingClientRect() | ||
.exec(function (res) { | ||
var width = res[0].width; | ||
_this.setData({ | ||
canvasWidth: width * pixelRatio, | ||
}); | ||
resolve(); | ||
}); | ||
})]; | ||
width = this.props.width; | ||
this.ctx = my.createCanvasContext("progress-canvas-".concat(this.$id)); | ||
this.ctx.imageSmoothingEnabled = true; | ||
this.ctx.imageSmoothingQuality = 'high'; | ||
this.setData({ | ||
canvasWidth: width * pixelRatio, | ||
}); | ||
return [2 /*return*/]; | ||
} | ||
@@ -66,0 +58,0 @@ }); |
@@ -37,4 +37,3 @@ import { __awaiter, __generator } from "tslib"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var systemInfo, pixelRatio; | ||
var _this = this; | ||
var systemInfo, pixelRatio, width; | ||
return __generator(this, function (_a) { | ||
@@ -49,17 +48,10 @@ switch (_a.label) { | ||
pixelRatio = systemInfo.pixelRatio; | ||
return [2 /*return*/, new Promise(function (resolve) { | ||
_this.ctx = my.createCanvasContext("progress-canvas-".concat(_this.$id)); | ||
_this.ctx.imageSmoothingEnabled = true; | ||
_this.ctx.imageSmoothingQuality = 'high'; | ||
my.createSelectorQuery() | ||
.select('.ant-progress') | ||
.boundingClientRect() | ||
.exec(function (res) { | ||
var width = res[0].width; | ||
_this.setData({ | ||
canvasWidth: width * pixelRatio, | ||
}); | ||
resolve(); | ||
}); | ||
})]; | ||
width = this.props.width; | ||
this.ctx = my.createCanvasContext("progress-canvas-".concat(this.$id)); | ||
this.ctx.imageSmoothingEnabled = true; | ||
this.ctx.imageSmoothingQuality = 'high'; | ||
this.setData({ | ||
canvasWidth: width * pixelRatio, | ||
}); | ||
return [2 /*return*/]; | ||
} | ||
@@ -66,0 +58,0 @@ }); |
{ | ||
"name": "antd-mini", | ||
"version": "1.9.3", | ||
"version": "1.9.4", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "dev": "node ./scripts/dev.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1253003
24604