Uncaught TypeError: this._updateCameraUpVector is not a function
Closed this issue · 6 comments
Uncaught TypeError: this._updateCameraUpVector is not a function
at Object.e [as Plots] (babyplots.ts:347:14)
at line3d.html:9:24
I'm using Egde 116.0.1903.0 canary
Hi! Could you provide a bit more information on what you were trying to do? Can you add a minimal version of your "myPlotData"? This will make it easier to find the cause of your issue.
Thank you!
I use the new version.
I created a new HTML page using the sample data("examples/heatMap.js"), but the same error still occurred.
`
<title>babyplot</title> <script src="dist/babyplots.js"></script> <script src="dist/examples/heatMap.js"></script> <script> var vis = Baby.Plots("babyplot", {backgroundColor:"#ffffffff"}); vis.fromJSON(heatMapData); vis.doRender(); </script> `the error:
Uncaught TypeError: this._updateCameraUpVector is not a function
at Object.e [as Plots] (babyplots.ts:347:14)
at line3d.html:14:24
Hi! Could you provide a bit more information on what you were trying to do? Can you add a minimal version of your "myPlotData"? This will make it easier to find the cause of your issue. Thank you!
I cloned the project and compiled the version according to the instructions
Hi! Could you provide a bit more information on what you were trying to do? Can you add a minimal version of your "myPlotData"? This will make it easier to find the cause of your issue. Thank you!
I used the minimal version and the example heatMap.js data, but the same error still occurred. Do I need other dependencies? I followed the example in the instructions.
Thank you for the additional information.
I believe the issue is because in your code, you initialize the Babyplots object with:
var vis = Baby.Plots("babyplot", {backgroundColor:"#ffffffff"});
but it should be:
var vis = new Baby.Plots("babyplot", {backgroundColor:"#ffffffff"});
Notice the new
keyword before Baby.Plots
. Can you try adding that and seeing if it solves the problem for you?
Thank you for the additional information.
I believe the issue is because in your code, you initialize the Babyplots object with:
var vis = Baby.Plots("babyplot", {backgroundColor:"#ffffffff"});but it should be:
var vis = new Baby.Plots("babyplot", {backgroundColor:"#ffffffff"});Notice the
new
keyword beforeBaby.Plots
. Can you try adding that and seeing if it solves the problem for you?
Yes, I also found this error. Previously, I copied the example code and got confused with the language syntax. Thank you very much.