我有兴趣使用JavaScript做一些绘图。 我会直接举个例子:
替代文字http://img693.imageshack.us/img693/3774/linep.png绿色水平线是静态的,所有的垂直线都是可点击的。 点击行的例子是红色的。
我见过很多API,但它们都比我需要更多的复杂性,使其变得比必要更复杂。
任何建议的良好API? 自己做?
I'm interested in doing some drawing using JavaScript. I'll get straight to an example:
alt text http://img693.imageshack.us/img693/3774/linep.png The green horizontal line would be static, and all the vertical lines would be clickable. An example of a clicked line would be the red one.
I've seen many API's, but they all allow more complexity than I need, making it more complicated than necessary.
Any suggestion for a good API? Make it oneself?
最满意答案
您可以使用CSS和html来最初组成线。 然后将这些转移到JS中。 从你所描述的来看,从头开始看起来并不难。
可能还有别的东西你没有提到!
You could use CSS and html to make up the lines initially. Then transfer some of this into the JS. To me from what you have described it doesn't look that difficult to do from scratch.
There's probably something else you haven't mentioned though!
更多推荐
发布评论