我在HTML中有SVG行,並且想要更改結束座標。更改DART中svg行的長度
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" >
<line id="myline" x1="0" y1="0" x2="200" y2="200"
style="stroke:rgb(255,0,0);stroke-width:2"/>
</svg>
在DART代碼中,我有以下幾點:
LineElement line = query("#myline");
我需要從200到220改變X2,但我沒有看到X2屬性的線。 可以這樣做嗎?