@tuya-miniapp/smart-ui 2.7.1-beta-9 → 2.7.1-beta-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/circle/index.rjs +3 -3
- package/lib/circle/index.rjs +3 -3
- package/package.json +1 -1
package/dist/circle/index.rjs
CHANGED
|
@@ -58,7 +58,7 @@ export default Render({
|
|
|
58
58
|
const ctx = canvas.getContext('2d');
|
|
59
59
|
|
|
60
60
|
const lineWidth = this.lineWidth; // 进度条宽度
|
|
61
|
-
const radius = ((this.width - lineWidth) *
|
|
61
|
+
const radius = ((this.width - lineWidth) * 1) / 2; // 圆形半径
|
|
62
62
|
const startAngle = Math.PI; // 起始角度(3点钟方向)
|
|
63
63
|
const endAngle = 4 * Math.PI; // 结束角度(360度)
|
|
64
64
|
|
|
@@ -113,7 +113,7 @@ export default Render({
|
|
|
113
113
|
const ctx = canvas.getContext('2d');
|
|
114
114
|
|
|
115
115
|
const lineWidth = this.lineWidth; // 进度条宽度
|
|
116
|
-
const radius = ((this.width - lineWidth) *
|
|
116
|
+
const radius = ((this.width - lineWidth) * 1) / 2; // 圆形半径
|
|
117
117
|
const startAngle = 1 * Math.PI; // 起始角度(3点钟方向)
|
|
118
118
|
const endAngle = 2 * Math.PI; // 结束角度(360度)
|
|
119
119
|
|
|
@@ -170,7 +170,7 @@ export default Render({
|
|
|
170
170
|
const ctx = canvas.getContext('2d');
|
|
171
171
|
|
|
172
172
|
const lineWidth = this.lineWidth; // 进度条宽度
|
|
173
|
-
const radius = ((this.width - lineWidth) *
|
|
173
|
+
const radius = ((this.width - lineWidth) * 1) / 2; // 圆形半径
|
|
174
174
|
|
|
175
175
|
const startAngle = 0.8 * Math.PI; // 起始角度(3点钟方向)
|
|
176
176
|
const endAngle = 2.2 * Math.PI; // 结束角度(360度)
|
package/lib/circle/index.rjs
CHANGED
|
@@ -58,7 +58,7 @@ export default Render({
|
|
|
58
58
|
const ctx = canvas.getContext('2d');
|
|
59
59
|
|
|
60
60
|
const lineWidth = this.lineWidth; // 进度条宽度
|
|
61
|
-
const radius = ((this.width - lineWidth) *
|
|
61
|
+
const radius = ((this.width - lineWidth) * 1) / 2; // 圆形半径
|
|
62
62
|
const startAngle = Math.PI; // 起始角度(3点钟方向)
|
|
63
63
|
const endAngle = 4 * Math.PI; // 结束角度(360度)
|
|
64
64
|
|
|
@@ -113,7 +113,7 @@ export default Render({
|
|
|
113
113
|
const ctx = canvas.getContext('2d');
|
|
114
114
|
|
|
115
115
|
const lineWidth = this.lineWidth; // 进度条宽度
|
|
116
|
-
const radius = ((this.width - lineWidth) *
|
|
116
|
+
const radius = ((this.width - lineWidth) * 1) / 2; // 圆形半径
|
|
117
117
|
const startAngle = 1 * Math.PI; // 起始角度(3点钟方向)
|
|
118
118
|
const endAngle = 2 * Math.PI; // 结束角度(360度)
|
|
119
119
|
|
|
@@ -170,7 +170,7 @@ export default Render({
|
|
|
170
170
|
const ctx = canvas.getContext('2d');
|
|
171
171
|
|
|
172
172
|
const lineWidth = this.lineWidth; // 进度条宽度
|
|
173
|
-
const radius = ((this.width - lineWidth) *
|
|
173
|
+
const radius = ((this.width - lineWidth) * 1) / 2; // 圆形半径
|
|
174
174
|
|
|
175
175
|
const startAngle = 0.8 * Math.PI; // 起始角度(3点钟方向)
|
|
176
176
|
const endAngle = 2.2 * Math.PI; // 结束角度(360度)
|