Comments (4)
Update: So it looks like when you draw on a decoded drawing, the append(shape:) method gets called in Drawing, but the new shape doesn't appear in the drawing's shapes array. I haven't been able to figure out why, so instead i just made a hacky fix.
If anyone's having the same problem, here's what I did to temporarily solve it: Overlay 2 drawsana views, decode your saved drawing into the background drawsana view, and let the user interact with the foreground one. Then, when you want to save your edits, merge the shapes of the 2 drawsana view drawings into a new Drawing, and encode.
from drawsana.
Thanks for taking the time to report and investigate this issue. Serialization isn't well-tested and I'm sorry you ran into a bug. As you can probably tell, time to work on this project is short and I hope to be able to give it a deeper look soon.
from drawsana.
I have another possibility for the root cause of this bug. Could it be that you're hanging onto the old Drawing
instance somewhere? I just noticed that for example the active tool isn't informed if the Drawing
instance changes.
from drawsana.
There was a bug in the library where the drawingOperationStack
would never be updated with the new Drawing
instance. That would probably cause the symptoms you described.
from drawsana.
Related Issues (20)
- How to get edited video HOT 1
- How to block text editing
- Drawing Lags Badly on Large UIViews
- Rotate RectTool's shape
- Select Shape from code
- how can I add drag and resize function to EllipseTool HOT 1
- multiple selection of strokes
- Some way to get shape points
- Why install via cocoapods required min deploy target to iOS 11?
- populate undostack or operation stack?
- Image not Save
- Ability to delete an object that has been selected HOT 1
- can we add this library through pod.
- is there a way to rotate shape like rotate text with different angle.
- [Bug] Text tool + Orientation Change HOT 1
- Drawsana is not having feature of zooming image HOT 4
- editing CGImage with Drawsana
- overlapImage and maskImage size not same
- How Pen tool use and which Algorithm used for smooting?
- [Bug] Xcode 15 Crash HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawsana.