global variables list in krpano.js

  • Hi.

    Since krpano variables are global, so we must be careful when defining variables.

    I incautiously used a variable named 'index' that caused loadscene() freeze.
    It took long time to find out what the cause was.

    Here shows global variables list which can be used for developers.
    https://krpano.com/docu/actions/#globalvariables


    But what I want to say is other than those variables, which are used in krpano.js.
    Since we cannot see the source code so I'd like to know what kind of variables are safe to use in our scripting.

    Thanks in advance.

  • Oh, I see.

    But how do you distinguish whether it is global or member variable?
    Hotspot or layer can add arbitrary variables by defining variables in xml or in action.
    When a code is called from layer or hotspot events, if variable are already defined in other place, it is used otherwise global variable is created. Is this correct?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!