I added a custom icon (a circle) for StickyAnnotation by overriding the draw function:
StickyAnnotation.prototype.draw = function (ctx) {
ctx.fillStyle = “#ffff00”;
ctx.beginPath();
ctx.arc(0, 0, MARKER_RADIUS, 0, 2 * Math.PI);
ctx.fill();
};
However, the selection area is still square shaped and it starts from the center of the circle leaving the top half unselectable. I tried to provide a custom selection model but I was only able to fix the selection outline. The actual selectable area stays the same. Is there a way to specify the selection area to cover the whole circle? Thanks
web www.filestage.io
phone +49 711 96589050
office Lautenschlagerstraße 16, 70173 Stuttgart, DE
Filestage GmbH, Amtsgericht Stuttgart: HRB 749557
Geschäftsführer: Niklas Dorn, Maël Frize, Simon Kontschak
Working from home? We’ve created these resources for you: