1.1.0 • Published 9 months ago

jsyg-boundingbox v1.1.0

Weekly downloads
47
License
MIT
Repository
github
Last release
9 months ago

JSYG.BoundingBox

BoundingBox plugin for JSYG framework

demo

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>