# art

> Cross-browser Vector Graphics

Latest version **0.10.3** (published 2018-07-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install art
pnpm add art
yarn add art
bun add art
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.3 |
| Published | 2018-07-12 |
| First published | 2013-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Unpacked size | 224.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1092 |
| Author | Sebastian Markbage |
| Maintainers | kamicane, sebmarkbage, zpao |
| Keywords | art, canvas, svg, vml |

## Links

- npm: https://www.npmjs.com/package/art
- Repository: https://github.com/sebmarkbage/art
- Homepage: http://sebmarkbage.github.io/art
- Issues: https://github.com/sebmarkbage/art/issues
- npm.io page: https://npm.io/package/art

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.10.3 (latest) — 2018-07-12
- 0.10.2 — 2018-04-04
- 0.10.1 — 2016-01-05
- 0.10.0 — 2014-11-06
- 0.9.2 — 2014-05-29
- 0.9.0 — 2013-09-11
- 0.0.0 — 2013-01-29

## README

# 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](./demos)

---
_Source: https://npm.io/package/art · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
