-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue/15 implement 3 d model page route #27
base: master
Are you sure you want to change the base?
Issue/15 implement 3 d model page route #27
Conversation
Former-commit-id: 584e6c3
Former-commit-id: 4c02d6e
Former-commit-id: d25679e
Former-commit-id: a45d8e9
Former-commit-id: 17e376b
Former-commit-id: 277769d
Former-commit-id: 0b18ad9
Former-commit-id: a725ff4
Former-commit-id: f7df1cd
Former-commit-id: 6ea792a
Former-commit-id: 9ca06c9
Former-commit-id: aaac4c0
Former-commit-id: 78ffb9e
This is continuing to look better and better. Some more feedback for the creator specifically, as the experience becomes more refined:
|
d32089a
to
9c878f3
Compare
…anuelGitCodes/labeling-materia-widget into issue/15-Implement-3D-model-PageRoute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the CoffeeScript files are no longer necessary, according to the Webpack configuration.
Remove any files that are not necessary and do a sweep for leftover console.logs.
src/core3D.js
Outdated
intersects[0].uv | ||
) | ||
} | ||
console.log(intersects[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't leave in this console.log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to my inline comments, the coffeeBag
and models3D
directories should be removed, except for anything required by the demo.
src/coffeeBag/creator.coffee
Outdated
@@ -14,11 +14,13 @@ Namespace('Labeling').Creator = do -> | |||
# store image dimensions in case the user cancels the resize | |||
_lastImgDimensions = {} | |||
|
|||
# track if the user is "getting started" or well on their way | |||
# track if the user is "get`ting started" or well on their way |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo?
src/coffeeBag/draw.coffee
Outdated
@@ -1,8 +1,12 @@ | |||
|
|||
# Does not import | |||
# import './build/three.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is leftover or placeholder code, it should probably be removed.
src/core3D.js
Outdated
|
||
function onError(error) { | ||
// Returns a console log ERROR when model doesn't load | ||
console.log('ERROR: ' + error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use console.warn
or console.error
for this one.
src/core3D.js
Outdated
intersects[0].uv | ||
) | ||
} | ||
console.log(intersects[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
src/creator.js
Outdated
// Temporarily disable while using MWDK | ||
|
||
// Using this style of import will cause the 3D to run every time even when on 2D. | ||
// import { renderedSpheresGroup } from './core3D.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is placeholder code, it should be removed
src/creator.js
Outdated
|
||
function qsetOption3D(_qset) { | ||
let _anchorOpacityValue = 1.0 | ||
console.log(highlightSpheresGroup.children[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should remove unnecessary console logs
src/creator.js
Outdated
sphereScale: highlightSpheresGroup.children[0].scale | ||
} | ||
|
||
console.log(_qset.options.sphereRadius) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unnecessary console logs
src/creator.js
Outdated
let keyboard = document.createElement('div') | ||
keyboard.id = 'keyboard-text' | ||
keyboard.classList.add('keyboardText') | ||
keyboard.innerHTML = 'Arrow Keys:' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can condense this string to a single line, instead of concatenating multiple strings and using the <br />
tag:
keyboard.innerHTML = 'Arrow Keys: \n · Rotate camera. \n Option/alt: \n · While pressing change between rotating and labeling'
You'll also have to add a new style in your CSS:
.keyboardText {
white-space: pre;
}
function mouseText() { | ||
let mouse = document.createElement('div') | ||
mouse.id = 'mouse-text' | ||
mouse.classList.add('keyboardText') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same deal as my comment on line 1314
src/creator.js
Outdated
label.setAttribute('data-y', vector.y) | ||
}) | ||
|
||
return _drawBoard() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return not required
Review changes done to implement 3d models.