Raphaël (JavaScript library)

Raphaël, named for Italian painter Raffaello Sanzio da Urbino,[3] is a cross-browser JavaScript library that draws Vector graphics for web sites. It will use SVG for most browsers, but will use VML for older versions of Internet Explorer. Raphaël currently supports Chrome 5.0+ Firefox 3.0+, Safari 3.0+, Opera 9.5+ and Internet Explorer 6.0+. According to JavaScript analytics service, Libscore, Raphaël is used on over 3,000 websites, including the homepages of Apple's iCloud, Food Network, Cornell, and Philips].[4]

Raphaël
Developer(s)Dmitry Baranovskiy
Initial releaseAugust 8, 2008 (2008-08-08)[1]
Stable release
2.2.7 / November 12, 2016 (2016-11-12)[2]
Repository
Written inJavaScript
LicenseMIT License
Websitedmitrybaranovskiy.github.io/raphael/

Use

Raphaël is used by first creating an instance of the Raphaël object, which manages the creation of the canvas. The following examples create a canvas that is 320 pixels wide and 200 pixels high:

// top left of canvas at the viewport's 10,50 coordinate
var r = Raphael(10, 50, 320, 200);

// top left of canvas at the  top left corner of the #example element (in elements where dir="ltr")
var r = Raphael(document.getElementById("example"), 320, 200);

// same as above
var r = Raphael("example", 320, 200);

Once the Raphaël object has been instantiated, its various drawing, resizing and animation methods may be called to build up a vector graphic. This library includes support of Cùfon fonts, a format that turns a given font into a set of vector paths. It is extensible through plugins.

Usage

The widget is used on the Washington Post and the Times Online websites.

Raphaël is also used by iCloud.com, and by Mass Relevance in the White House.[5]

gollark: I guess maybe in politics/economics/sociology the alternative is something like "lean on human intuition" or "make the correct behaviour magically resolve from self-interest". Not sure how well those actually work.
gollark: - the replication crisis does exist, but it's not like *every paper* has a 50% chance of being wrong - it's mostly in some fields and you can generally estimate which things won't replicate fairly well without much specialized knowledge- science™ agrees on lots of things, just not some highly politicized things- you *can* do RCTs and correlation studies and such, which they seem to be ignoring- some objectivity is better than none- sure, much of pop science is not great, but that doesn't invalidate... all science- they complain about running things based on "trial and error and guesswork", but then don't offer any alternative
gollark: The alternative to basing things on science, I mean. The obvious alternative seems to basically just be guessing?
gollark: What's the alternative? Science is at least *slightly* empirical and right. Also, the video is wrong.
gollark: Fast video encoding is less space-efficient and/or worse quality.

See also

References

Further reading

  • Wilson, Chris (December 2013). RaphaelJS. O'Reilly Media. ISBN 978-1-4493-6536-3.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.