freeze-view
v1.0.2
Published
gets all the computed styles in a given moment in time and allows to reset them
Downloads
15
Maintainers
Readme
FreezeView
holds all the style informations in a given point in time (and allows to reset them)
Installation
npm install freeze-view
Usage
var freeze = require("freeze-view");
Initializing the object looks like this:
var view = new freeze();
// now the **view** object holds all the style information
If you want to reset the view to its original state, you just evoke
view.set();
If you want to read in a modified view (ater having added a dom element for example), you evoke:
view.get();
Since freeze is an object, you can have multiple instances representing the state of the view in a given moment in time
Non npm usage
If you want to use freeze-view in a non-ppm environment, you can embed the library in your html-file as well:
<script src="FreezeView.js"></script>