art
Cross-browser Vector Graphics
Last updated a year ago by sebmarkbage .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install art 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.10.3                                ...           latest (a year ago)

7 Versions

  • 0.10.3                                ...           a year ago
  • 0.10.2                                ...           2 years ago
  • 0.10.1                                ...           4 years ago
  • 0.10.0                                ...           5 years ago
  • 0.9.2                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.0.0                                ...           7 years ago
Downloads
Today 79
This Week 3,858
This Month 8,262
Last Day 251
Last Week 4,201
Last Month 18,255
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (129)

Copyright 2014 - 2017 © taobao.org |