Skip to content

Creates an interactive minimap component based on an SVG element

License

Notifications You must be signed in to change notification settings

Kishanjay/kjn-svg-minimap

Repository files navigation

@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.

About

Creates an interactive minimap component based on an SVG element

Resources

License

Stars

Watchers

Forks

Packages

No packages published