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:
    https://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

  • Hi,

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

    Code
    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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!