Skip to content

Commit

Permalink
FORMAT CODE
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaszhu committed May 19, 2020
1 parent 878f516 commit 83768b1
Show file tree
Hide file tree
Showing 7 changed files with 5,418 additions and 5,390 deletions.
20 changes: 10 additions & 10 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"uglify": true
},
"modules": false
}
]
[
"@babel/preset-env",
{
"targets": {
"uglify": true
},
"modules": false
}
]
]
}
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.tabSize": 4,
}
9 changes: 7 additions & 2 deletions dist/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,12 @@ var MpProgress = /*#__PURE__*/function () {
var circleR = _this._options.dotStyle[0].r;

if (circleR > maxBarWidth) {
var diff = circleR - maxBarWidth + (_this._options.dotStyle[0].shadow ? circleR : 0);
var diff = circleR - maxBarWidth + (_this._options.dotStyle[0].shadow ? circleR / 2 : 0);
_r -= diff;
originY -= diff;

if (_this._percent !== 100) {
originY -= diff;
}
}
} else {
console.warn('参数dotStyle不完整,请检查');
Expand All @@ -237,6 +240,8 @@ var MpProgress = /*#__PURE__*/function () {
}
}

console.log(originX, originY);

_this._context.translate(_this.convertLength(originX), _this.convertLength(originY)); // arc原点默认为3点钟方向,需要调整到12点


Expand Down
2 changes: 1 addition & 1 deletion dist/progress.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 83768b1

Please sign in to comment.