Retained mode vector drawing API designed for multiple output modes. There's also a built-in SVG parser.
Clone or download
Pull request Compare This branch is 63 commits ahead, 3 commits behind kamicane:master.
Latest commit 20b1462 Jul 12, 2018
Permalink
Failed to load latest commit information.
core Moving files from src to root to accommodate npm require paths Sep 11, 2013
demos Moving files from src to root to accommodate npm require paths Sep 11, 2013
docs Add index page, add docs page, config jekyll to ignore submodule noise Apr 28, 2014
dom Moving files from src to root to accommodate npm require paths Sep 11, 2013
lib Clean up Feb 5, 2013
metrics Moving files from src to root to accommodate npm require paths Sep 11, 2013
modes prevents build from crush (#16) Jan 17, 2018
morph Upstream fixes, including stroke dash and IE9 workaround. Nov 6, 2014
parsers Use escaped sequence instead of <A0> byte (#20) Jan 17, 2018
shapes Moving files from src to root to accommodate npm require paths Sep 11, 2013
tests Moving files from src to root to accommodate npm require paths Sep 11, 2013
.gitignore Add index page, add docs page, config jekyll to ignore submodule noise Apr 28, 2014
.gitmodules Don't use SSH for gitmodules say gh-pages May 7, 2013
.npmignore dont publish .git directories (#23) Jun 29, 2018
README.md Moving files from src to root to accommodate npm require paths Sep 11, 2013
_config.yml Change markdown engine to bypass maruku deprecation messages Apr 28, 2014
index.js Moving files from src to root to accommodate npm require paths Sep 11, 2013
index.md Add index page, add docs page, config jekyll to ignore submodule noise Apr 28, 2014
license.txt Refactor for v2, use CommonJS modules, merge with Path Morph and SVG … Feb 4, 2013
package.json Bump version Jul 12, 2018

README.md

ART

ART is a retained mode vector drawing API designed for multiple output modes. There's also a built-in SVG parser. It uses Node style CommonJS modules.

The first line in your program should select rendering mode by requiring either:

  • art/modes/canvas - HTML5 Canvas
  • art/modes/svg - SVG for modern browsers and vector tools
  • art/modes/vml - VML for Internet Explorer or Office
  • art/modes/script - Code generation for ART modules
  • art/modes/dom - SVG or VML depending on environment
  • art/modes/fast - Canvas, SVG or VML depending on environment

These modules exposes four core rendering classes:

  • Surface - Required rectangular rendering area. Container for the rest.
  • Group - Container for Shapes, Text or other Groups.
  • Shape - Fill and/or stroke an arbitrary vector path.
  • Text - Fill and/or stroke text content rendered using native fonts.

There are also helper classes to work with vector paths, 3x3 transformation matrices, colors, morphing, common shapes etc.

#Demos

See ./demos