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 = ;
Initializing the object looks like this:
var view = ; // now the **view** object holds all the style information
If you want to reset the view to its original state, you just evoke
view;
If you want to read in a modified view (ater having added a dom element for example), you evoke:
view;
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: