Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【BUG?】addMarkLine动画控制 #1126

Closed
huyinghuan opened this issue Jan 7, 2015 · 5 comments
Closed

【BUG?】addMarkLine动画控制 #1126

huyinghuan opened this issue Jan 7, 2015 · 5 comments

Comments

@huyinghuan
Copy link

在地图上通过该方法添加markline时, 会发现线条的出现速度 过快,(从起点到终点一闪而过), 尝试通过设置option的 animationDuration 值,发现设置无效, 是否存在更具体的的控制设置?或者 自己通过修改哪些文件源码可以实现?
(主要是目前有个需求是 展示实时数据迁移需要。 例如只需要markline上面那个炫光点效果,从起点飞向终点,然后消失【不开起动画循环】,而 实体线条线条不需要显示)

实际上就是继续能否通过重载addMarkLine函数,实现分别控制,线条是否显示, 炫光点是否显示, 线条从起点飞向终点的动画时间, 眩光点匆起点飞向终点的时间。

@huyinghuan
Copy link
Author

根据src/chart/base.js发现duration 变量没有读取设置里面的animationDuration属性,只有easing读取了animationEasing属性
image

@huyinghuan huyinghuan changed the title addMarkLine动画控制 【BUG?】addMarkLine动画控制 Jan 7, 2015
@kener
Copy link
Contributor

kener commented Jan 7, 2015

不是这样的,不能用这个参数,markPoint和markLine下都有effect.period参数,先试试

@huyinghuan
Copy link
Author

试过了。 这个参数只能控制那个 闪烁的点的速度, 不能控制画线 的那个动画。

@kener
Copy link
Contributor

kener commented Jan 7, 2015

明白,记下,下个版本我加上

@kener kener reopened this Jan 7, 2015
kener added a commit that referenced this issue Jan 9, 2015
@kener
Copy link
Contributor

kener commented Jan 9, 2015

done

@kener kener closed this as completed Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants