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

drawSVGPath 支持的太少了吧。。。 #85

Closed
jljsj33 opened this issue Apr 25, 2017 · 7 comments
Closed

drawSVGPath 支持的太少了吧。。。 #85

jljsj33 opened this issue Apr 25, 2017 · 7 comments

Comments

@jljsj33
Copy link
Contributor

jljsj33 commented Apr 25, 2017

你这绘制 path 的有点坑,要放出这样的 API 能不能做全啊。。。转换下。。。

@jljsj33
Copy link
Contributor Author

jljsj33 commented Apr 25, 2017

Tween.to(obj, { x: 100}) 报错。。。建义:
https://github.com/hiloteam/Hilo/blob/dev/src/tween/Tween.js#L515

fromTo: function(target, fromProps, toProps, params = {}){
...
}

@06wj
Copy link
Member

06wj commented Apr 25, 2017

感谢提建议。

  1. 目前SVGpath 支持 M, L, C, Z指令,我们会尽快补全 V, H, Q, S, T指令。
  2. Tween.to必须有params,否则缓动执行不了的。

@jljsj33
Copy link
Contributor Author

jljsj33 commented Apr 25, 2017

params 定个默认的好点吧。。。。
花名叫啥。。。有问题可以钉你。。。

@jljsj33
Copy link
Contributor Author

jljsj33 commented Apr 25, 2017

还有个问题,,,有没有封 globalCompositeOperation。。。跟 easeljs 一样,有个 compositeOperation 方便使用。。。

@06wj
Copy link
Member

06wj commented Apr 25, 2017

默认值可以加个,花名是墨川,globalCompositeOperation木有封装,因为要兼顾canvas,dom,flash多种渲染方式,这个只有canvas支持

@jljsj33
Copy link
Contributor Author

jljsj33 commented Apr 25, 2017

应该都支持了吧。。。。dom css3 有了 mix-blend-mode,应该可以。。flash 就不用说了。。。

@06wj
Copy link
Member

06wj commented Apr 25, 2017

兼容性不行

@06wj 06wj closed this as completed in 2002f04 Apr 26, 2017
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