nwjs experts here?

  • Title says it all. Am busy creating a standalone version of my "panorama" on MacOS using nwjs, but am anything but an expert. Managed to get the baby running nicely, but would love to get some custom menus in the MacOS menu bar, accessing some functions created in the panorama.

    This, for instance, doesn't work. The submenu item is created, the shortcut shown, but the krpano.call doesn't yield a result. The pano.js has been called up earlier, and i am not aware of anything else I would have to do. Or do I?

    I also get a "unknown version" when using krpano.version from the sample code given in the docs, so I am stumped, as it looks as if krpano has NOT been loaded.

    Any help is appreciated.

    Happy days,

    Helmar

  • are you trying to make a menu in the device interface?
    maybe it would be enough to make it on the krpano or html page side?
    I use nwjs and similar for the shell/container to package the tour into an apk and run offline on devices.

  • I'll have a look at what you suggested. I would love to make it as "native" as possible, at least for MacOS. That said, I'm still at a loss as to the correct syntax to call krpano functions via JS, because I've not been successful with the samples given in the krpano documentation.

    Cheers,

    Helmar

  • are you trying to make a menu in the device interface?
    maybe it would be enough to make it on the krpano or html page side?
    I use nwjs and similar for the shell/container to package the tour into an apk and run offline on devices.

    How do you package it into an APK, if I may ask?

Participate now!

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