Git Product home page Git Product logo

cidrawing's People

Contributors

ruochao 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cidrawing's Issues

Shape element with fill effect

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.

Erased shapes should stay erased when moved

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

Drawing board should support painting mode

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.

Load Data has an issue with erased drawing

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.

Query regarding layer wise preview

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.

Load Data not working properly

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

Path different operation is unstable

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.

Single tap detection is not stable

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.

Support more select style

Currently we only have rectangle select, we should also provide lasso mode, which can select element more freely.

Isococeles Triangle

Isococeles Triangle, is not drawing correctly when stroke is set to maximum

Import Svg files

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

Support more eraser mode

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.

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.