ruochao / cidrawing Goto Github PK
View Code? Open in Web Editor NEWA vector graphics library for Android
License: Apache License 2.0
A vector graphics library for Android
License: Apache License 2.0
Currently we only draw the stroke of the shape, we should support fill. Before that, we need to add one more property fill color for our paint.
Once you Resize any shapes like rectangle then save it , but after loading it is coming on previous size.
Can you please add star, heart and arrow shapes as well
It's possible to do shape recognition from a set of strokes.
We need to find out a way to support all related operations from api level 14.
Horizontal: Left, Center, Right
Vertical: Top, Middle, Bottom
different brush types
can we have different brush types , like this image
I am facing issue into eraser tool while using it with selection tool. when I draw something and erase some part and then select it and move to other position it move full object that I have created at first removed area also move with selected tool.
Eraser should remove drawing from view not paint with background colour
please help me thanks in advance
Here we can define two mode for drawing board, which is painting mode and vector mode.
Vector mode means all elements added to board is managed and should be independent. We can choose element from that, and do some operations for elements.
Painting mode means all elements draw to the board directly, we cannot figure it out for each element later. Just treat as a canvas.
Some operations may have different behavior on different mode. e.g. eraser.
If eraser on painting mode, it's easy to understand, we just clean what we need via drawing a path. But if it's in vector mode, the eraser will be added as an element, it may be moved, that's strange.
drag image and text
can we drag , scale rotate image and text like we can do with this code
code
Hi,
I am using Ci Drawing Library, its amazing for sure.
I am facing a little bit problem with loadDrawing method.
What I am Doing ?
1- I draw some shape on Drawing View
2- Erase some path/points of that drawing
3- I Saved that drawing using saveDrawing Method
4- I called loadDrawing Method, It has an issue that the erase data got filled with black color.
I have then again tried this scenario in our sample app, the result is same there too.
Please fix this as soon as possible. Regardless this issue, everything is working fine in my case.
Regards,
Faran Iqbal.
Should be able to export current view as picture.
Hi There,
I am using you library and trying to show preview of each layer in thumbnail.
I want to ask is there any method in CiDrawing Library to get layer wise drawing preview.
Please guide me.
Thank you.
Element for display text.
Hi, I am facing issue into load saved drawing feature.
I draw some shape then erase some part of shape after that I saved this drawing it saved successfully but when I reload this saved drawing the eraser path get removed from drawing and I am unable to load drawing with erased path drawing.
please help me to fix this issue.
thanks in advance
Best Regards,
Rashid Abbas
Since we don't care about element's order, so it's hard to figure out which element is first, that's why the path different may cause different result.
To solve the issue, we need to re-think about the element order mechanism.
Transformation includes: resizing, rotation
We only check for point position, but not time. e.g. So if user draw a circle, the start point will close to end point, we will recognize as single tap, but actually not.
All elements or objects (e.g. layer, board) should be able to save to file or other media, also it can be loaded again.
Currently group element's touch area is the default bounding box.
Currently we only have rectangle select, we should also provide lasso mode, which can select element more freely.
Isococeles Triangle, is not drawing correctly when stroke is set to maximum
Since the canvas doesn't have the element, we don't invalidate the view.
Hey how are you, i want it to import svg and use it in my app. Can you guid me how to do it? the library support export what we draw but the structure of the exported file is json and can be used only in this library, now i want to do somethig so i can parse the svg file and convert it to json file so the library can read it
Currently we only support object eraser, I do think we can support more.
e.g.
stroke eraser: work as normal eraser just clean the path we draw.
path eraser: re-build the path once eraser over it.
Element for display photo
Support forward and backward operation.
Step to reproduce:
Reproduce steps:
Please add the feature of zoom and pan or Is there any way i can achieve this ? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.