Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

raphael

> 编程语言
Open source

JavaScript Vector Library

11.3K stars0 likes3 views
WebsiteGitHub

About

JavaScript Vector Library

Raphaël: Cross-browser vector graphics the easy way

Visit the library website for more information: http://raphaeljs.com https://dmitrybaranovskiy.github.io/raphael/

Quickstart guide

You need to have NPM installed to build the library.

  • git clone https://github.com/DmitryBaranovskiy/raphael.git
  • yarn install --frozen-lockfile
  • yarn build-all

To run tests you need to run npx bower install open dev/test/index.html in your browser, there's no automated way right now.

Dependencies

  • eve

Distributable

All files are UMD compliant.

You can use:

  • raphael.min.js (includes eve and it's minified)
  • raphael.js (includes eve and it's not minified)
  • raphael.no-deps.js (doesn't include eve it's not minified)
  • raphael.no-deps.min.js (doesn't include eve it's minified)

Where to start

Check Raphael-boilerplate to see examples of loading.

Raphael can be loaded in a script tag or with AMD:

javascript
define([ "path/to/raphael" ], function( Raphael ) {
  console.log( Raphael );
});

Development

Versions will be released as we gather and test new PRs. As there are a lot of browsers being supported it might take a while to accept a PR, we will use the feedback from other users too.

You can use the raphaelTest.html to try things, you need to start a server in the root dir to start testing things there. Something like running python -m SimpleHTTPServer in the raphael directory and hitting http://localhost:8000/dev/raphaelTest.html with the browser. You should run npm run start before this can work.

Collaborators

  • tomasAlabes

Related Projects

  • graphael
  • raphael.boilerplate
  • backbone.raphael
  • mapael
  • snap
  • react-raphael

Books

  • Learning Raphael JS Vector Graphics
  • RaphaelJS
  • Instant RaphaelJS Starter

Copyright and license

Copyright © 2008-2013 Dmitry Baranovskiy (http://dmitrybaranovskiy.github.io/raphael/)

Copyright © 2008-2013 Sencha Labs (http://sencha.com)

Licensed under the MIT (http://dmitrybaranovskiy.github.io/raphael/license.html) license.

Issues· 347 open

View all issuesOpen on GitHub
  • #1153

    Add old version to the npm registry

    Updated Jul 16, 2024
  • #1147

    I can't use react-raphael in nextJs project

    Updated Jun 23, 2023
  • #1144

    垃圾

    Updated Mar 3, 2023
  • #1140

    Collision detection

    Updated Jul 15, 2022
  • #1139

    Offset Path

    Updated Jun 18, 2022
  • #1138

    000

    Updated Apr 12, 2022
  • #1137

    animation not support set animation-direction?

    Updated Mar 15, 2022
  • #1135

    How to know the m or M point of path from all of points?

    Updated Dec 17, 2021
  • #1133

    how to add svg barcode into workspace?

    Updated Oct 1, 2021
  • #167

    text-path for a text

    enhancement_reqUpdated Sep 4, 2021

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言