Adds shape recognition and .gitignore support#12
Adds shape recognition and .gitignore support#12Zaitam wants to merge 2 commits intostyluslabs:masterfrom
Conversation
|
Hi, I appreciate the PR, however, I might not merge this since it is already possible to add shapes and more using the clippings library. Anyway, updating the dirty area for the current stroke and calling ScribbleArea::doRefresh() should re-render, e.g., |
|
Okay so I am aware of the clippings feature, however I found it useful to be able to draw a line and hold the pen for some milliseconds (currently set to 0.7s) and the shape to be updated to a simple shape like a straight line. The difference I find with the Clippings is the simplicity of the drawings. While I suppose clippings can get as complex as an SVG can get, the Shape Recognition would be exclusively available for Circles (Maybe ellipses too), Lines, Arrows and Rectangles. Regarding the updating of the dirty area, I attempted triggering the if(scribbleDoc->strokeBuilder->shapeRecognize(event.t)) {
// True if the shape was updated
scribbleDoc->updateCurrStroke(scribbleDoc->strokeBuilder->getDirty());
doRefresh();
}However I need to trigger a movement of the camera (pan/zoom) for the figure to actually update. |
Introduces shape recognition functionality to enhance user experience:
Includes a
.gitignorefile to avoid committing build artifacts and IDE-specific files.TODO: