Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download function raises Uncaught TypeError: t.getX is not a function #70

Closed
tommyJin opened this issue Dec 31, 2021 · 5 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@tommyJin
Copy link

tommyJin commented Dec 31, 2021

Hi, happy new year,
When I draw something and try to download the state.json file, the error occurs. I've tried the v0.6.0 and v0.7.0-beta. But I found the live demo v0.5.1 is ok with the download function[https://ivmartel.github.io/dwv-jqui/demo/stable/index.html]

Uncaught TypeError: t.getX is not a function
    at A.io.State.toJSON (dwv.min.js:3)
    at A.App.getState (dwv.min.js:3)
    at HTMLAnchorElement.toggleSaveState.onclick (appgui.js:155)

And I traced with the error and found it is located in the file state.js on line 52 position: [position.getX(), position.getY(), position.getZ()], of the dwv project state.js#L52

Thx.

@tommyJin
Copy link
Author

tommyJin commented Jan 4, 2022

Could u pls update the npm repo version? I redo npm install & npm run dev, and the question remains.
In the package.json, the dependency of dwv version is "dwv": "0.30.7"
Thx.

@ivmartel
Copy link
Owner

ivmartel commented Jan 4, 2022

I'll check if everything is ok and then create a release.

@tommyJin
Copy link
Author

tommyJin commented Jan 4, 2022

Cheers!

@ivmartel
Copy link
Owner

ivmartel commented Jan 4, 2022

Just released dwv 0.30.8, check demo/trunk/index.html for an updated dwv-jqui.

@ivmartel ivmartel added this to the 0.7.1 milestone Jan 4, 2022
@tommyJin
Copy link
Author

tommyJin commented Jan 4, 2022

Brilliant job!

@tommyJin tommyJin closed this as completed Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants