annotorious / annotorious-v1

Project has moved to http://github.com/annotorious/annotorious
https://annotorious.com
MIT License
593 stars 142 forks source link

[Angular 6] No area selector over the image #210

Open CodingPhantoms opened 5 years ago

CodingPhantoms commented 5 years ago

Hello,

I have imported JS and CSS from the folder that I had downloaded, so in .TS I created:

anno: any;

ngOnInit() {
this.anno = window['anno'];
this.anno.makeAnnotatable(document.getElementById('annotatable'));
}

In .HTML I have: <img src="images/random.jpg" id="annotatable" />

So now, over the image I am able to see "Click and Drag to Annotate" on the left upper corner, but I can't annotate anything, can't see the area selector, just that text. Where am I wrong?