Greetings,
I've been using krpano 1.20.11 successfully for quite some time now and it's been excellent. However, I'm running into some trouble trying to upgrade to 1.21.
For some background, the current setup I have (which works) is using version 1.20.11, is written in Typescript, where I added the following to the bottom of
krpano.js:
|
Source code
|
1
|
module.exports.embedpano = embedpano; // export it
|
... then import it into my Typescript file with:
|
Source code
|
1
|
import * as KRPano from '../vendor/krpano';
|
... and finally reference it in code:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
|
KRPano.embedpano({
xml: null,
target: targetId,
html5: 'only+webgl',
mobilescale: 1.0,
onready: this.krpanoOnReady.bind(this), // bound member function
onerror: this.krpanoOnError.bind(this), // bound member function
consolelog: true,
debugmode: true,
usestrictjs: false,
});
|
In 1.20.11, the call to
embedpano worked as expected, and the
onready callback was made successfully so I could do what I needed to after.
However, when I followed the same exact steps in 1.21, this isn't the case. While
embedpano does get called (so I know the import works), the
onready callback is
not invoked.I rely on this callback for the other things my code needs to do.
Unfortunately, the code obfuscation makes it impossible for me to debug into it further and figure out why the callback isn't being made, or what the issue could be.
I also did try the
consolelog,
debugmode options as well as disabling
usestrictjs but I don't get any output unfortunately.
As I mentioned, this
does work with 1.20.11, but doesn't in 1.21 (and I can see there is quite a large difference between the two files). I need this upgrade to resolve some issues with iOS and gyros not working (among other things).
Any help with this would be greatly appreciated. Thank you!