Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

antd-mini

Package Overview
Dependencies
Maintainers
4
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd-mini - npm Package Compare versions

Comparing version 1.9.3 to 1.9.4

26

es/Progress/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc