提交 7de2d0c0 编写于 作者: L lang

Line symbol rotation tweak

上级 b073de24
......@@ -99,7 +99,7 @@ define(function (require) {
if (symbolFrom) {
symbolFrom.attr('position', fromPos);
var tangent = line.tangentAt(0);
symbolFrom.attr('rotation', -Math.PI / 2 - Math.atan2(
symbolFrom.attr('rotation', Math.PI / 2 - Math.atan2(
tangent[1], tangent[0]
));
symbolFrom.attr('scale', [invScale * percent, invScale * percent]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册