Micooz

FullStack Engineer

库佛维尔岛的巴布亚企鹅,南极洲 (© Ben Cranke/Minden Pictures)
2016/10/11 06:28

D3.js的最新v4版提供了d3.zoom模块,用它可以给svg图形增加缩放/移动的特性,但通过非鼠标/触控的方式改变图形的位置和缩放比例后,d3.zoom的行为就变得不正常了。本文给出一个解决方法。

2016/06/26 10:17

This is currently the latest version of Node.js. I'll be keeping my apps green before we get LTS.

2016/06/17 13:33

It's hard to integrate aplayer in production, due to webpack.UglifyJsPlugin cannot exclude specified modules during compressing. I made use of external configuration of webpack to avoid bundling as well as re-compressing, and import aplayer as a standalone module from <script>.