# planview

> HTML5 Canvas based library for generating diagrams

Latest version **1.0.0** (published 2022-07-17) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-07-17 |
| First published | 2022-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 0 |
| Unpacked size | 57.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | nihalvaria |
| Maintainers | nihalvaria |
| Keywords | planview, HTML5, canvas |

## Links

- npm: https://www.npmjs.com/package/planview
- Repository: https://github.com/nihalvaria/planview
- Homepage: https://github.com/nihalvaria/planview#readme
- Issues: https://github.com/nihalvaria/planview/issues
- npm.io page: https://npm.io/package/planview

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-07-17
- 0.5.0 — 2022-07-03
- 0.4.0 — 2022-07-03
- 0.3.0 — 2022-07-02
- 0.2.0 — 2022-07-02
- 0.1.0 — 2022-07-02

## README

# Planview

HTML5 Canvas based library for generating and rendering diagrams.

[![npm](https://img.shields.io/npm/v/planview)](https://www.npmjs.com/package/planview)

[![npm bundle size](https://img.shields.io/bundlephobia/min/planview?label=minified%20size)](https://github.com/nihalvaria/planview)

## Generating plan with points relative to image size.

The [relative_points](./demo/sources/relative_points.js) file can be found in the sources folder. It contains the config and the sections to be rendered.

```html
<body>
    <img alt="img-1" id="img-1" />

    <script type="module">
        import { generateDiagram } from '../dist/planview.esm.js';
        import { relative_points } from './sources/relative_points.js';

        const img1 = document.getElementById('img-1');
        img1.src = generateDiagram(relative_points).diagram;
    </script>
</body>
```

The output of the above is following :

<img alt="img-1" id="img-1" src="demo/images/relative_points.png" />

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