Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Montag, 13. Mai 2013, 10:33

krpano editor plugin question

Greetings,

There is so little documentation about krpano editor plugin. I am trying to make it possible to put polygonal hotspots by the user with using javascript. But the page about editor plugin is this:
http://krpano.com/plugins/editor/


Could anyone tell me where can I find editor plugin methods to use them explicitly? like startDrawingPolygon or polygonEnds methods/callbacks etc. I think I am looking at wrong documentation, or was it meant to be embedded as it is and no explicit usage is allowed? Even examples would be so useful for adding polygonal hotspots. I don't want to sound so desperate but my boss is 110 kg wrestling master and hates image hotspots, loves polygon hotspots.

Thank you for the answer already,

Best Regards

2

Dienstag, 14. Mai 2013, 11:56

Hi,

you only need to set the points,
e.g.

Quellcode

1
2
3
4
5
6
7
8
9
addhotspot(spot);
set(hotspot[spot].point[0].ath, 0.0);
set(hotspot[spot].point[0].atv, 0.0);
set(hotspot[spot].point[1].ath, 20.0);
set(hotspot[spot].point[1].atv, 0.0);
set(hotspot[spot].point[2].ath, 20.0);
set(hotspot[spot].point[2].atv, 20.0);
set(hotspot[spot].point[3].ath, 0.0);
set(hotspot[spot].point[3].atv, 20.0);


Best regards,
Klaus

3

Dienstag, 14. Mai 2013, 14:11

Thank you, I could manage creating polygonal hotspots and rectangles with listening mouse events, right now I am working on elliptical surfaces...

Ähnliche Themen