|
17 | 17 | 移动到 x:150 y:50 <br />
|
18 | 18 | 椭圆 x轴: 50 y轴: 50 <br />
|
19 | 19 | x-axis-rotation(弧线旋转): 0, <br />
|
20 |
| - large-arc-flag 决定弧线是大于还是小于180度,0表示小角度弧,1表示大角度弧:1<br /> |
| 20 | + large-arc-flag |
| 21 | + 决定弧线是大于还是小于180度,0表示小角度弧,1表示大角度弧:1<br /> |
21 | 22 | 顺时针/逆时针: 0(逆时针) 1(顺时针) <br />
|
22 | 23 | 终点的坐标 : dx: 100 dy: 150 <br />
|
23 | 24 |
|
|
26 | 27 | <svg class="rotate" viewBox="0 0 200 200">
|
27 | 28 | <!-- <circle id="mycircle" cx="400" cy="300" r="50"></circle> -->
|
28 | 29 | <g>
|
29 |
| - <path |
30 |
| - onclick="onclickEvent(event)" |
31 |
| - class="trigger" |
32 |
| - fill="none" |
33 |
| - stroke="#fd30ae" |
34 |
| - d="M100,20 A80,80, 0,0,1, 140,30.8" |
35 |
| - stroke-width="10" |
36 |
| - ></path> |
| 30 | + <path |
| 31 | + onclick="onclickEvent(event)" |
| 32 | + class="trigger" |
| 33 | + fill="none" |
| 34 | + stroke="#fd30ae" |
| 35 | + d="M100,20 A80,80, 0,0,1, 140,30.8" |
| 36 | + stroke-width="10" |
| 37 | + ></path> |
37 | 38 | </g>
|
38 | 39 | <path
|
39 | 40 | onclick="onclickEvent(event)"
|
|
62 | 63 | cy="50"
|
63 | 64 | r="48"
|
64 | 65 | fill="none"
|
65 |
| - |
66 | 66 | style="stroke: black; stroke-width: 3px;"
|
67 | 67 | />
|
68 | 68 | <circle cx="60" cy="60" r="50" fill="none" storke-style="#f60" />
|
|
81 | 81 | </li>
|
82 | 82 |
|
83 | 83 | <li>
|
84 |
| - <svg width="300" height="300"> |
85 |
| - <circle |
86 |
| - cx="100" |
87 |
| - cy="100" |
88 |
| - r="50" |
89 |
| - fill="none" |
90 |
| - style="stroke: black;stroke-width: 3px;" |
91 |
| - ></circle> |
| 84 | + <svg width="500" height="500"> |
| 85 | + <linearGradient data-v-04637bab="" |
| 86 | + id="orange_red1" spreadMethod="pad" x1="0%" y1="0%" x2="100%" y2="0%"> |
| 87 | + <stop data-v-04637bab="" |
| 88 | + offset="0%" style="stop-color: rgb(255, 198, 0); stop-opacity: 1;"></stop><stop data-v-04637bab="" offset="100%" |
| 89 | + style="stop-color: rgb(243, 36, 36); stop-opacity: 1;"></stop> |
| 90 | + </linearGradient> |
| 91 | + </defs> |
| 92 | + |
| 93 | + <circle |
| 94 | + r="125" cx="50%" cy="50%" |
| 95 | + fill="none" stroke-width="10" |
| 96 | + class="circular-bg-path" |
| 97 | + style="stroke: url("#orange_red1"); |
| 98 | + stroke-width: 10; stroke-dashoffset: 0; stroke-dasharray: 115.9, 785.398;"> |
| 99 | + </circle> |
| 100 | + <circle r="125" cx="50%" cy="50%" |
| 101 | + fill="none" stroke-width="10" class="circular-bg-path" |
| 102 | + style="stroke: url("#orange_red1"); stroke-width: 10; stroke-dashoffset: -130.9; stroke-dasharray: 246.799, 785.398;"> |
| 103 | + </circle> |
| 104 | + <!-- <circle r="125" cx="50%" cy="50%" fill="none" stroke-width="10" class="circular-bg-path" |
| 105 | + style="stroke: url("#orange_red1"); stroke-width: 10; stroke-dashoffset: -392.699; stroke-dasharray: 377.699, 785.398;"> |
| 106 | + </circle> --> |
92 | 107 | </svg>
|
93 | 108 | </li>
|
94 | 109 | </ul>
|
|
146 | 161 | // rotate.setAttribute('class' , 'rotate active');
|
147 | 162 | });
|
148 | 163 | };
|
149 |
| - function onclickEvent(event){ |
150 |
| - console.log(this,event) |
| 164 | + function onclickEvent(event) { |
| 165 | + console.log(this, event); |
151 | 166 | }
|
152 | 167 | </script>
|
0 commit comments