Comments (10)
Hello @Kampii,
Do you mean something like an eraser kind of button? Something that would allow the user to go over the image erasing parts of the annotations?
from openseadragon-annotations.
You know like in fabricjs (http://fabricjs.com/) you can select an element and delete it. The link I gave does not provide the functionality, but it just illustrates how one can delete the element.
from openseadragon-annotations.
Hey Emigre, when looking at your demo image, I think I just realized that it adds the annotation similarly like MS Paint, is that right? Do you have a demo page to play with?
from openseadragon-annotations.
Ah, I see what you mean. Well, this is not something that you can do at the moment. It is doable, yes, but it would require a certain amount of work. It looks like a good addition, but I would need to have the time to invest on it.
Yes, you draw over the image like in Paint, but the strokes are vectorial, so it would be possible to erase them separately as you say. I did this example page at some point, I hope it still works.
from openseadragon-annotations.
You should have an email from me :)
from openseadragon-annotations.
👍
from openseadragon-annotations.
An eraser tool is added to this branch, most of the job has been done thanks to @j-hudecek, with some additional adaptations from my side to the new structure in 1.0.0. Although it does the job in a basic way, I don't think it is ready to be used.
For example, the way the eraser behaves at the moment, you click on a line and then the whole stroke disappears. As an user I would expect the eraser to behave like the eraser from most graphic programs such as Photoshop, erasing only the part of the stroke that is below a certain radio around the cursor.
Apart from that, I have noticed that the calculation of which stroke to delete depending on the cursor position does not work very well sometimes.
Because of these details I don't think that it's ready to be used. I'd like to merge this functionality to master but it still needs some development until it's ready, in my opinion.
from openseadragon-annotations.
It's a pity but I don't think that I have the time to work in this feature at the moment - perhaps in the future. Contributions welcomed!
from openseadragon-annotations.
Hello @Kampii , because of work reasons, I also encountered deletion problems. Thanks to @emigre , I reintegrated his code and wrote demo.
Links:
Https://github.com/jerrygit1/openseadragon-draw
I hope I can help you.
from openseadragon-annotations.
@Kampii, we spoke about the plugin some time ago. I hope all is well. I just wanted to let you know that I'm going to discontinue it, please keep a fork if you need it.
from openseadragon-annotations.
Related Issues (20)
- The canvas is activated to do what work HOT 3
- Uncaught TypeError: Super expression must either be null or a function, not undefined HOT 4
- The position of lines I drew is not the mouse position. HOT 7
- Draw annotations programmatically. HOT 1
- OpenSeadragon.Annotations is not a constructor: Initialization Error HOT 1
- failed to compile HOT 4
- vue import 'openseadragon-annotations' HOT 1
- viewer.annotations.clean() in vue.js
- vue.js
- initializeAnnotations is not a function HOT 3
- Uncaught TypeError: openseadragon_1.OpenSeadragon is not a function HOT 3
- v1.0.5 not compiling HOT 2
- problem with use this plugin HOT 1
- annotation does not align with zoom HOT 1
- How to disable drag event and resize event on annotation HOT 1
- It does not work if add rotation functinality. HOT 1
- When calling new OpenSeadragon.Annotations({ viewer }); there is an error HOT 6
- Changing the cursor style for draw mode
- Load and render heavy annotation HOT 1
- Can't load this plugin with OpenseaDragon using vue. HOT 3
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 openseadragon-annotations.