Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: bf42e08f56cee075ee0d985cc65302fc0d3e924b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Pan-Zoom

Pan/zoom library for SVG elements. Hold and drag to pan. Use the mouse wheel to
zoom. See `src/app.js` for a usage example.

## View demo

1. Install the development server packages.

        docker run --rm -w /app -v $PWD:/app -u $(id -u):$(id -u) node npm install

2. Start the server.

        docker run --rm --init -it -w /app -v $PWD:/app -p 8080:8080 node node dev-server.js

3. Visit `localhost:8080` to view.