Raphaël
DeveloperDmitry Baranovskiy
ReleaseAugust 8, 2008; 17 years ago (2008-08-08)[1]
Stable release
2.3.0 / August 14, 2019; 6 years ago (2019-08-14)[2]
Written inJavaScript
LicenseMIT License
Websitedmitrybaranovskiy.github.io/raphael/
Repository

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[as of?] supports Chrome 5.0+ Firefox 3.0+, Safari 3.0+, Opera 9.5+ and Internet Explorer 6.0+.

Use

edit

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:[citation needed]

// 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.[citation needed]

Usage

edit

The widget is used on the Washington Post and the Times Online websites.[citation needed]

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

See also

edit

References

edit
  1. ^ "Raphaël—JavaScript library".
  2. ^ "Releases · DmitryBaranovskiy/raphael". GitHub. Retrieved 2021-03-10.
  3. ^ "An Intro to Raphaël".
  4. ^ Raphaël in White House: “we (@massrelevance) used @raphaeljs 2.0 for the map viz used during the #AskObama event today http://t.co/EcqROIi”

Further reading

edit
edit

📚 Artikel Terkait di Wikipedia

List of JavaScript libraries

a list of notable JavaScript libraries. Cassowary (software) CHR.js Google Polymer Dojo Toolkit jQuery MooTools Prototype JavaScript Framework AnyChart

Raphael (disambiguation)

character Raphael, a fictional villain in the video game Baldur's Gate 3 Raphael (crater), a crater on Mercury Raphaël (JavaScript library), cross-browser

Velocity (JavaScript library)

Velocity is a cross-platform JavaScript library designed to simplify the client-side scripting of website animation. Velocity is free, open-source software

Comparison of JavaScript charting libraries

different JavaScript charting libraries available. Below is a comparison of which features are available in each. Ext JS List of JavaScript libraries "AnyChart

Ext JS

Ext JS is a JavaScript application framework for building interactive cross-platform web applications using techniques such as Ajax, DHTML and DOM scripting

List of open-source code libraries

precision arithmetic libraries List of C++ template libraries List of Java frameworks List of JavaScript libraries List of numerical libraries List of open-source

Index of JavaScript-related articles

QUnit Raphaël (JavaScript library) React (JavaScript library) Redux (JavaScript library) RGraph Rhino (JavaScript engine) River Trail (JavaScript engine)

Comparison of JavaScript-based web frameworks

frameworks for front-end web development that are reliant on JavaScript code for their behavior. JavaScript-based web application frameworks, such as React and