Skip to content

Commit ce03b8a

Browse files
committed
add svg line experiment
1 parent 916edc9 commit ce03b8a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

js/src/components/MiniGame3.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,23 @@ export default defineComponent({
7777
</li>
7878
</ul>
7979
</div>
80+
<svg
81+
version="1.1"
82+
xmlns="http://www.w3.org/2000/svg"
83+
xmlns:xlink="http://www.w3.org/1999/xlink"
84+
x="0px"
85+
y="0px"
86+
xml:space="preserve"
87+
style="border: 1px solid red; flex: 1;"
88+
>
89+
<path
90+
class="path2"
91+
fill="#01a09e"
92+
stroke-width="5"
93+
stroke="black"
94+
:d="`M0 11 L ${mousePosition.x} ${mousePosition.y - 250}`"
95+
/>
96+
</svg>
8097
<div :class="$style.panel">
8198
<ul>
8299
<li

0 commit comments

Comments
 (0)