Git Product home page Git Product logo

Comments (5)

ajans avatar ajans commented on September 17, 2024 1

Thank you for your engagement!

I think an Enum would be more expressive and thus less confusing.

Since I use the GlideImage-composable from the landscapist-lib as content for the Zoomable, I have no opinion about EasyZoomableImage.

from zoomables.

Mr-Pine avatar Mr-Pine commented on September 17, 2024

This would be handled by ZoomableState. The current way to do this would be to initialize the State by calling

rememberZoomableState { zoomChange, offsetChange, rotationChange ->
    scale *= zoomChange
    offset += offsetChange
}

I think an overload of rememberTransformableState which takes three boolean Values to disable all three actions would be a good idea.

I might also implement a toggle for the EasyZoomableImage. Would you prefer different toggles for lockRotationZoomPan and general Rotation on/off or an Enum class with OFF, ALWAYS and LOCK_ROTATION_ON_ZOOM_PAN

from zoomables.

Mr-Pine avatar Mr-Pine commented on September 17, 2024

This should be possible in v1.1.0 by initializing the ZoomableState with
rememberZoomableState(rotationBehavior = ZoomableState.Rotation.DISABLED)

from zoomables.

ajans avatar ajans commented on September 17, 2024

Thank you for the speedy reaction, I will try it right now and give you feedback.

from zoomables.

ajans avatar ajans commented on September 17, 2024

It works great, thanks!

from zoomables.

Related Issues (9)

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.