mutable-div
v2.0.0
Published
Directives to enable moving or resizing a div element.
Downloads
4,928
Readme
MutableDiv
This is an Angular project which was created to enable changing the div element by moving it or resizing it.
Getting Started
Add the package to your project
npm install mutable-div --save
How to use
draggable
- Import the 'MutableDivModule' in app module
- Add the directive draggable to the div
- Add rotation inputs if the div is rotated 0 (default), 90, 180, 270
resizable
- Import the 'MutableDivModule' in app module
- Add the directive resize to the div element
- Add rotation inputs if the div is rotated 0 (default), 90, 180, 270
Example of these can be found on the github repo.