-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 15 import #181
Comments
[RESOLVED] Seraching on the source code I suppose that something is wrong in the way that I use to import the library. I get the error. |
@rsimon pheraphs the Getting Started guide can be fixed and also an option that creates a definitions file (.d.ts) can be added during build to not incur in this errors! |
Hey! I am trying your solution and its not working for me... its throwing a Is there a way that you could help me here in this stackblitz? Thanks! |
The problem is that you are using annotorious plugin for osd but the img is not loaded with osd. Check this example |
@Edo2610 Awesome! thanks so much man. |
It's okay to hold down the mouse and drag to draw a rectangle, but what happens when you can't draw a label after just one click |
Concerning Angular integration: I'm reposting from a similar issue here: If anyone is still listening on this issue: the next major release of Annotorious is getting closer to release-ready. It's a complete re-write, and I believe that it will make integration with different frameworks much easier. As of now, v3 has practically no documentation, and it doesn't have feature parity with v2.7. (Most importantly, it's headless mode only for now.) But if anyone wants to look: I believe it will solve a lot of the tedious interoperability issues that you are facing. As written above, I'm not an Angular person. Which means I can still not give any advice. But if you look at how integration is done for React and Svelte, you might find some inspiration on how to do it for Angular.
|
I have to use Annotorious on angular 15 using these versions:
and when I develop I not have any problem with Annotorious plugin, it works perfectly!
When I build my angular app and I deploy it, I get this error when I use Annotorious constructor
that correspond at this line of code
this.annotorious = Annotorious(this.viewer, this.annoOptions);
Does anyone have a solution?
N.B. I try to import in two way and I still always have the same problem:
import * as Annotorious from '@recogito/annotorious-openseadragon';
import * as Annotorious from 'assets/script/openseadragon/openseadragon-annotorious';
The text was updated successfully, but these errors were encountered: