@kjn/svg-minimap
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@kjn/svg-minimap

semantic-release: angular

npm version

Creates a zoomable, pannable minimap component for your svg elements.

Usage

Install this package

npm install @kjn/svg-minimap

Import and initialise the minimap

import SvgMinimap from "@kjn/svg-minimap";

new SvgMinimap(document.getElementById("svg"), document.getElementById("minimapContainer"));

Assuming that we have a <svg> element that contains various svg drawings. AND that there exists a (preferably bounded) container where the minimap should be placed into.

For more details on how to use, check the examples directory.

Package Sidebar

Install

npm i @kjn/svg-minimap

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

21.6 kB

Total Files

7

Last publish

Collaborators

  • kishannirghin