jsyg-boundingbox
v1.1.0
Published
Bounding Box plugin for JSYG framework
Downloads
662
Maintainers
Readme
JSYG.BoundingBox
BoundingBox plugin for JSYG framework
Installation
npm install jsyg-boundingbox
Usage
Include the css file JSYG.BoundingBox.css.
es6 modules (webpack+babel)
import BoundingBox from "jsyg-boundingbox"
var box = new BoundingBox("#myElement");
box.show();
box.hide();
browserify
var BoundingBox = require("jsyg-boundingbox")
var box = new BoundingBox("#myElement");
box.show();
box.hide();
without bundler
<link rel="stylesheet" href="node_modules/jsyg-boundingbox/JSYG.BoundingBox.css">
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/jsyg/dist/JSYG.js"></script>
<script src="node_modules/pathseg/pathseg.js"></script>
<script src="node_modules/jsyg-path/JSYG.Path.js"></script>
<script src="node_modules/jsyg-boundingbox/JSYG.BoundingBox.js"></script>
<script>
var box = new JSYG.BoundingBox("#myElement");
box.show();
box.hide();
//or as a plugin
new JSYG("#myElement").boundingBox("show");
</script>