Krpano Javascript Action Arguments

  • How to access arguments of JavaScript type actions? I had to add a non-JavaScript wrapper action. Is there a way?

  • Hi,

    there are currently these variables predefined inside Javascript actions:

    • krpano - the krpano interface object
    • args[] - an Array with the passed arguments (args[0] = the name of the action, args[1] = first parameter, ...)
    • caller - the caller object of the action (the object of the <layer> or <hotspot> element)
    • resolve() - an function for resolving/getting the value of a krpano variable/path
    • actions - an object for accessing the native krpano actions (e.g. call 'actions.tween(...);' to call the tween action);


    More informations about Javascript actions on the final 1.19 release.

    Best regards,
    Klaus

Jetzt mitmachen!

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