Giter Site home page Giter Site logo

akshay2211 / drawbox Goto Github PK

View Code? Open in Web Editor NEW
282.0 6.0 37.0 1.33 MB

DrawBox is a multi-purpose tool to draw anything on canvas, written completely on jetpack compose.

Home Page: https://ak1.io/DrawBox/

License: Apache License 2.0

Kotlin 100.00%
jepackcompose compose android-library android canvas kotlin kotlin-android kotlin-library composable hacktoberfest

drawbox's Introduction

drawbox's People

Contributors

akshay2211 avatar gertminov avatar janimesenpai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

drawbox's Issues

Finish drawing callback

The feature request
Please, can you add a callback when a user finishes drawing a line/curve?

The description of the solution I'd like
To my mind, it will be useful to have a drawing callback when a user finishes drawing a line and put away his/her finger from the screen. We have the trackHistory() callback for the moment when a user starts drawing, but there is no such thing when the user finishes drawing a line.

Alternatives I've considered
It is possible to use some click listener on top of the DrawBox, but this looks more like a hotfix and it is hard to understand for other people.
Also, I was trying to use trackBitmaps(...) to get the bitmap after each drawing, but it is not working as intended. Maybe it is also possible to make this function open so we can override it as we want.

Usage context
I need this callback to execute a function with the latest bitmap data. The thing is that I want to execute it every time a user draws a line.

The lateral sliding fails, and the drawing image cannot be converted to bitmap normally

Describe the bug
The lateral sliding fails, and the drawing image cannot be converted to bitmap normally

DrawBox(
modifier = Modifier.fillMaxSize(),
drawController = drawController,
bitmapCallback = { img,e ->
Log.d(TAG, "SignatureBoard: ${e?.message}")
image=img
},
backgroundColor = Color(0xFFFFFFFF)
)
logs:
W/HiTouch_PressGestureDetector: Touch pointer move a lot. The moving distance of X is:35.266876, limit is:60The moving distance of Y is:65.754395, limit is:60

Add additional elements (Text and Images)

Is your feature request related to a problem? Please describe.
a way to add additional text (with font style) and image(s)

Describe the solution you'd like
a way to add additional text (with font style) and image(s). And the text and images can be rotated

Describe alternatives you've considered

Additional context
ability to add picture and add annotations on it and/or

Implementation update

All the functions like undo and redo etc
Needs to be accessed by a single controller object, that can be manipulated by the users.

Java documentation?

I have seen many of your libraries but none of them have a documentation for Java. I have not knowledge about Kotlin and so am unable to use your amazing libraries. It would be great if you could provide the documentation in java for all the projects. Thanks and I hope you will do it.

Feature Request

Can you make the controller to disable/enable the canvas to be drawn?

hi, i want to save path to svg file, how we to do?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Library request

Can you make this kind of library. Which Is in seekbar. This library does no longer work. And it would be great if you add java docs also.
Thanks.

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.