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
Post a Comment