javascript - Croppie: dynamically set option like enforceBoundary? -


using croppie want dynamically set option, can make toggle enabling , disabling enforceboundary. initial code:

var basic = $('#demo-basic').croppie({     viewport: {         width: 150,         height: 200     },     enforceboundary: true, }); basic.croppie('bind', {     url: 'demo/cat.jpg',     points: [77,469,280,739] }); //on button click basic.croppie('result', 'html').then(function(html) {     // ... }); 

how can change enforceboundary after has been instantiated?


Comments

Popular posts from this blog

python - RuntimeError: can't re-enter readline -

python - PyInstaller UAC not working in onefile mode -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -