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

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -