Giter Club home page Giter Club logo

Comments (7)

deakjahn avatar deakjahn commented on August 26, 2024

I'm not sure I understand the question. If you don't want an aspect ratio, just don't set one. Actually, you need a controller to be able to set the aspect ratio in the first place, so if you don't use a controller at all, or if you use one but you don't specify the aspect ratio, you won't get it enforced.

from crop_image.

prolongservices avatar prolongservices commented on August 26, 2024

Hi thank you for reply,

no no i m not asking for initial setup,

i want to reset aspect ratio after setting it,

for example
in my app i want to give option to select landscape aspect ratio, and if user is not comfortable in landscape and want to select in free size mode, then i want to give them option to reset aspect ratio so that they can select according to their need.

i hope now my question is clear

from crop_image.

deakjahn avatar deakjahn commented on August 26, 2024

Pass null when you want to remove the aspect ratio. The controller's aspectRatio is a double?.

from crop_image.

prolongservices avatar prolongservices commented on August 26, 2024

Yes i tried passing null, but its not working,

because in code if aspect ratio is coming null then its using previously passed value,

please correct me if i m wrong

from crop_image.

prolongservices avatar prolongservices commented on August 26, 2024

image

from crop_image.

prolongservices avatar prolongservices commented on August 26, 2024

and here is the setter,

image

from crop_image.

deakjahn avatar deakjahn commented on August 26, 2024

OK, I see. What happens if you change that last line in the setter to:

else
  value = _CropControllerValue(null, value.crop);

Could you test this?

from crop_image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.