change length of svg line in DART -


i have svg line in html , want change end coordinate.

 <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> 

in dart code have following:

lineelement line = query("#myline"); 

i need change x2 200 220 don't see x2 attribute line. possible that?

lineelement have x2 attribute can see in docs http://api.dartlang.org/docs/releases/latest/dart_svg/lineelement.html#x2.

you can set x2 through either of following methods:

line.attributes["x2"] = "220"; line.$dom_setattribute("x2", "220"); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -