[Improvement] Circle: optimzie linecap (#624)

This commit is contained in:
neverland 2018-02-08 10:07:00 +08:00 committed by GitHub
parent c11c0bb4c7
commit c2773b49a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,7 @@ export default create({
}, },
beforeCreate() { beforeCreate() {
this.perimeter = Math.PI * 1000; this.perimeter = 3140;
this.path = 'M 530 530 m -500, 0 a 500, 500 0 1, 1 1000, 0 a 500, 500 0 1, 1 -1000, 0'; this.path = 'M 530 530 m -500, 0 a 500, 500 0 1, 1 1000, 0 a 500, 500 0 1, 1 -1000, 0';
}, },

View File

@ -15,6 +15,7 @@
&__layer { &__layer {
fill: none; fill: none;
stroke-linecap: round;
stroke-dasharray: 3140; stroke-dasharray: 3140;
stroke-dashoffset: 3140; stroke-dashoffset: 3140;
transform: rotate(90deg); transform: rotate(90deg);