Skip to content

Viewport ​

Zoom and pan the viewport through mouse wheel or trackpad gestures, similar to browsers and design software viewport interactions.

Install Plugin ​

You need to install the viewport plugin to use it. Visit Github repository.

sh
npm install @leafer-in/viewport
sh
pnpm add @leafer-in/viewport
sh
yarn add @leafer-in/viewport
sh
bun add @leafer-in/viewport

Or include via script tag and access plugin features through the global variable LeaferIN.viewport.

html
<script src="https://unpkg.com/@leafer-in/viewport@2.3.0/dist/viewport.min.js"></script>
html
<script src="https://unpkg.com/@leafer-in/viewport@2.3.0/dist/viewport.js"></script>

Next Steps ​

Viewport Zoom & Pan ​

Released under the MIT License.