# @tracespace/plotter

> Plot @tracespace/parser ASTs into image trees.

Latest version **5.0.0-alpha.0** (published 2023-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tracespace/plotter
pnpm add @tracespace/plotter
yarn add @tracespace/plotter
bun add @tracespace/plotter
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0-alpha.0 |
| Published | 2023-01-16 |
| First published | 2023-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 216.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 952 |
| Maintainers | mcous |
| Keywords | pcb, circuit, board, hardware, electronics |

## Links

- npm: https://www.npmjs.com/package/@tracespace/plotter
- Repository: https://github.com/tracespace/tracespace
- Homepage: https://github.com/tracespace/tracespace#readme
- Issues: https://github.com/tracespace/tracespace/issues
- npm.io page: https://npm.io/package/@tracespace/plotter

## Dependencies (2)

- [@types/unist](https://npm.io/package/@types/unist.md) ^2.0.6
- [@tracespace/parser](https://npm.io/package/@tracespace/parser.md) 5.0.0-alpha.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 5.0.0-alpha.0 (latest) — 2023-01-16

## README

# @tracespace/plotter

[![npm][npm badge]][npm package]

Plot [@tracespace/parser][] ASTs into image trees. Part of the [tracespace][] collection of PCB visualization tools.

This module is one part of the tracespace render pipeline, and you may not need to use it directly. See [@tracespace/core][] to integrate the full render pipeline into your project.

```shell
npm install @tracespace/plotter@next
```

[tracespace]: https://github.com/tracespace/tracespace
[@tracespace/parser]: ../parser
[@tracespace/core]: ../core
[npm package]: https://www.npmjs.com/package/@tracespace/plotter/v/next
[npm badge]: https://img.shields.io/npm/v/@tracespace/plotter/next?style=flat-square

## usage

```js
import fs from 'node:fs/promises'
import {parse} from '@tracespace/parser'
import {plot} from '@tracespace/plotter'

const gerberContents = await fs.readFile('gerber.gbr', 'utf-8')
const syntaxTree = parse(gerberContents)
const imageTree = plot(syntaxTree)

await fs.writeFile('plot.json', JSON.stringify(imageTree, null, 2), 'utf-8')
```

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