An open API service indexing awesome lists of open source software.

https://github.com/dulnan/artboard-deluxe

Mouse and touch friendly artboard library to pan and zoom any DOM element or canvas.
https://github.com/dulnan/artboard-deluxe

artboard drag momentum pan smooth-scrolling typescript zoom

Last synced: 6 months ago
JSON representation

Mouse and touch friendly artboard library to pan and zoom any DOM element or canvas.

Awesome Lists containing this project

README

          

# Artboard Deluxe - Mouse and touch friendly artboard library

**[Demo](https://artboard-deluxe.dulnan.net)** -
**[Docs](https://artboard-deluxe.dulnan.net/docs)** -
**[NPM](https://npmjs.com/package/artboard-deluxe)**

- Use mouse, touch or wheel to pan, drag, scroll or zoom
- Smooth/momentum scrolling, animations, scroll velocity
- Works with a DOM element or HTML canvas (2D, WebGL)
- Plugins for rendering scrollbars, overview or additional interactions
- Plugin for adding keyboard shortcuts (Arrow, Page Up/Down, Ctrl+0, etc.)

Screen recording of using the artboard-deluxe library

## Usage

```bash
npm install --save artboard-deluxe
```

### Minimal Example

```html


Hello World!

#root {
position: relative;
width: 500px;
height: 500px;
}

#artboard {
background: white;
}

import { createArtboard, mouse, wheel, raf, dom } from 'artboard-deluxe'

const artboard = createArtboard(document.getElementById('root'), [
dom({
element: document.getElementById('artboard'),
}),
mouse(),
wheel(),
raf(),
])

```