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

Uncaught Type Error in viewer.js in package Web #999 #1002

Merged
merged 2 commits into from
Feb 23, 2022

Conversation

samuelwang48
Copy link
Contributor

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Does your submission pass tests?

Note: please do NOT include build files (those generate by the build-xxx commands) with your PR,

Thank you for your help in advance, much appreciated !

Copy link
Member

@z3dev z3dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samuelwang48 please revert the change to the jscad-web.min.js library. this is rebuilt during the release process, and shouldn't be part of code changes. thanks

you can just copy the latest from 'master', and commit that version. that should remove these changes.

@samuelwang48
Copy link
Contributor Author

@samuelwang48 please revert the change to the jscad-web.min.js library. this is rebuilt during the release process, and shouldn't be part of code changes. thanks

you can just copy the latest from 'master', and commit that version. that should remove these changes.

Hi @z3dev the specific change aforementioned has been reverted. Feel free to let me know if there is anything else I can help. Thanks

@z3dev
Copy link
Member

z3dev commented Feb 23, 2022

@samuelwang48 thanks for these changes, but i think another solution might be slightly better.

The viewer only supports the JSCAD geometries, so it's probably better just to filter the solids returned from the design, here... viewer.js, line 146

const solids = state.design.solids.filter((solid) => solid && (solid instanceof Object))

Thoughts?

@samuelwang48
Copy link
Contributor Author

@samuelwang48 thanks for these changes, but i think another solution might be slightly better.

The viewer only supports the JSCAD geometries, so it's probably better just to filter the solids returned from the design, here... viewer.js, line 146

const solids = state.design.solids.filter((solid) => solid && (solid instanceof Object))

Thoughts?

Hi @z3dev, Thanks! I've made the changes accordingly. The said issue seems to have been solved. All tests passed.

@z3dev z3dev self-requested a review February 23, 2022 23:20
Copy link
Member

@z3dev z3dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samuelwang48 thanks. i hope this is the last time fixing this issue. ;)

@z3dev z3dev merged commit 96ff951 into jscad:master Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants