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

toggle rotation on click #79

Draft
wants to merge 1 commit into
base: front-end
Choose a base branch
from

Conversation

stevegt
Copy link

@stevegt stevegt commented Oct 23, 2021

The important bits that address #76 are in App.js. Everything else here and in #78 shows what I needed to do to get the build working.

- closes rodrigo-brito#76
- adds package.lock for versioning of npm modules, yarn version in package.json
- generates more complex (chunked js) structure for assets
  - assumes build is via `make build-with-assets` in master branch, or equivalent
  - Makefile in stevegt's fork at commit 3a47b3d
  - see rodrigo-brito#77 for discussion
@stevegt stevegt mentioned this pull request Oct 23, 2021
Copy link
Owner

@rodrigo-brito rodrigo-brito left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution, it looks great.

@@ -0,0 +1,15281 @@
{
Copy link
Owner

Choose a reason for hiding this comment

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

The project uses Yarn instead of NPM, and we have yarn.lock

@@ -13,7 +13,8 @@
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react-router-dom": "^4.3.1",
"sweetalert2": "^7.28.10"
"sweetalert2": "^7.28.10",
"yarn": "^1.22.17"
Copy link
Owner

Choose a reason for hiding this comment

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

Please, do not remove yarn.

Comment on lines +171 to +173
new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, () => {
this.toggleRotation();
})
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, () => {
this.toggleRotation();
})
new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, this.toggleRotation)

@@ -208,12 +216,20 @@ class App extends Component {
});
}

toggleRotation() {
Copy link
Owner

Choose a reason for hiding this comment

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

Please, you need to include a bind in the constructor for this. Check the constructor for some examples.

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