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/viewportsh
pnpm add @leafer-in/viewportsh
yarn add @leafer-in/viewportsh
bun add @leafer-in/viewportOr include via script tag and access plugin features through the global variable LeaferIN.viewport.
html
<script src="https://unpkg.com/@leafer-in/viewport@2.1.0/dist/viewport.min.js"></script>html
<script src="https://unpkg.com/@leafer-in/viewport@2.1.0/dist/viewport.js"></script>