English 中文(简体)
javascript 形状绘图 - Raphael 库如何详细运作? (无 < canvas > )
原标题:javascript shapes drawing - HOW Raphael s library works in detail? (no <canvas>)

Recently i found the raphael s library which is amazing. For example this:

"http://raphaeljls.com/ichart.html" rel="无跟随" >Raphael 图表 - Demo

当我检查代码时, 我震惊(以积极的方式),

它没有使用 HTML5 画布或任何额外的 divs, 如< a href=> "http://www.c-point.com/javascription_victor_draw.htm" rel = "no follow">这里 (不喜欢)

我的问题是:这到底如何详细运作?像素操纵吗?基本编码是什么?

谢谢!

最佳回答

它主要使用“http://en.wikipedia.org/wiki/Scalable_Vector_Graphics” rel=“nofollow”>>SVG ,这是一个代表矢量的XML类标记。对于 < IE9浏览器,我想它使用http://en.wikipedia.org/wiki/Vector_Markup_Language” rel=“nofol fol" >VML ,这是IE仍然支持的分解矢量标记。

SVG/VML 是 < a href=" http://en.wikipedia.org/wiki/Vector_graphics" rel=“nofollow”>>vector图形 的形式。 它们以数学公式来形状。 这使得它们适合可缩放的图形, 因为公式在缩放时重新计算, 保持锐利的边缘, 不同于 < a href=" http://en.wikipedia. org/wiki/ Raster_graphics" rel=“nofol fol” >raster图形 , 就是像素拉图。

问题回答

检查源头是否有火虫或铬检查员。 它生成< a href="http://en.wikipedia.org/wiki/Svg" rel=“ nofollow”>SVG 。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签