DNS Container
This library is built on top of react-image-drag-and-scale to provide user with a container that detects it's dimensions and provides grid suggestions.
Install
npm install --save dns-container # or yarn add dns-container # peer dependencies (install these separately) # "@material-ui/core": "^4.6.1" # "clsx": "^1.0.4", # "image-drag-and-scale": "^1.1.5-beta.0" # "prop-types": "^15.5.4"
Usage
;;;; { const data setImageData = React; const history setHistory = React; const historyPos setHistoryPos = React; React; return <div className="App"> <DNSContainer width=500 height=700> <DNSImage data=data onChangeEnd= { if historylength > 10 history; if historyPos >= 0 history; history; ; ; } onRemove= { console; } /> </DNSContainer> </div> ;} ;
Version Update
v3.0.6
What is new? you can not monitor the data on update making it easier to keep data persistent
License
MIT © lgdelacruz92