Dart 更改省道中svg线的长度
我在HTML中有SVG行,希望更改端点坐标Dart 更改省道中svg线的长度,dart,dart-html,Dart,Dart Html,我在HTML中有SVG行,希望更改端点坐标 在Dart代码中,我有以下内容: LineElement line=query(#myline”); 我需要将x2从200更改为220,但我看不到行的x2属性。 有可能吗 我需要将x2从200更改为220,但我看不到行的x2属性。有可能吗 是的,很简单: LineElement line=query(#myline”); line.attributes['x2']='220'; attributes属性可以在每个元素中找到,包括LineElem
在Dart代码中,我有以下内容:
LineElement line=query(#myline”);
我需要将x2从200更改为220,但我看不到行的x2属性。
有可能吗
我需要将x2从200更改为220,但我看不到行的x2属性。有可能吗
是的,很简单:
LineElement line=query(#myline”);
line.attributes['x2']='220';
attributes属性可以在每个元素中找到,包括LineElement
我需要将x2从200更改为220,但我看不到行的x2属性。有可能吗
是的,很简单:
LineElement line=query(#myline”);
line.attributes['x2']='220';
attributes属性可以在每个元素中找到,包括LineElement
LineElement确实具有x2属性,正如您在文档中看到的那样
您可以通过以下任一方法设置x2:
line.attributes["x2"] = "220";
line.$dom_setAttribute("x2", "220");
LineElement确实具有x2属性,正如您在文档中看到的那样
您可以通过以下任一方法设置x2:
line.attributes["x2"] = "220";
line.$dom_setAttribute("x2", "220");