# isomer-route

> isomer-route allows you to draw complex isometric shapes and illusions with ease on the HTML5 canvas, extending on the great work of [isomer](https://github.com/jdan/isomer). Inspired by isometric illusions such as the Penrose triangleand the beautiful ga

Latest version **1.1.0** (published 2020-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install isomer-route
pnpm add isomer-route
yarn add isomer-route
bun add isomer-route
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-05-10 |
| First published | 2020-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 71.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Darragh Mc Kay @darraghmckay |
| Maintainers | darraghmckay |

## Links

- npm: https://www.npmjs.com/package/isomer-route
- npm.io page: https://npm.io/package/isomer-route

## Dependencies (2)

- [isomer](https://npm.io/package/isomer.md) ^0.2.6
- [topological-sort](https://npm.io/package/topological-sort.md) ^0.3.0

## Recent versions

- 1.1.0 (latest) — 2020-05-10
- 1.0.4 — 2020-04-27
- 1.0.2 — 2020-04-27
- 1.0.0 — 2020-04-26

## README

![isomer-route-portfolio-cover](https://user-images.githubusercontent.com/11474806/80754705-63a58a00-8b27-11ea-8088-ac1cf04ffbba.png)



# isomer-route
isomer-route allows you to draw complex isometric shapes and illusions with ease on the HTML5 canvas, extending on the great work of [isomer](https://github.com/jdan/isomer). Inspired by isometric illusions such as the Penrose triangleand the beautiful gameMonument Valley

Easily build _routes_ using `Track`s, `Column`s and `Stairs`, taking care of the hard things such as positioning, complex transformations and drawing order. 
 
## Installation

```bash
yarn add isomer-route
```

or with npm

```bash
npm install isomer-route --save
```

## Usage

```js
import IsomerRoute from 'isomer-route'

const canv = document.querySelector('#isomer-canvas');

new IsomerRoute(canv, Point(0, 0, 0))
 .setGridSize(6)
 .setRotation(rotation)
 .addTrack(6, DIR.X)
 .addTrack(6, DIR.Y)
 .addColumn(6, DIR.DOWN)
 .draw();


<canvas id="isomer-canvas" height="600" widht="600" />
```

## Documentation
Full documentation and reference is available on the [project page on my website](https://darraghmckay.com/projects/isomer-route)

## Examples
For more fun examples I made check out my [blog post](https://darraghmckay.com/blog/isometric-illusions)

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License
[MIT](https://choosealicense.com/licenses/mit/)

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