-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature draw #80
Feature draw #80
Conversation
Can you submit a screenshot example of eah? |
It would be hard to explain the difference in screenshots... |
@@ -1,8 +1,8 @@ | |||
import { ReplayData } from "../../models/ReplayData" | |||
import { ReplayMetadata } from "../../models/ReplayMetadata" | |||
|
|||
const fetchByURL = (url: string) => | |||
fetch(url, { | |||
const fetchByURL = (url: string, local?: boolean) => |
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.
This file changes were just to make fewer network calls while testing.
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.
Maybe we should make it a prop that is passed in by the host?
That way we can change it as needed in the future?
Especially options as we use it in more and more different places.
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.
There's an isDevelopment
utility here:
https://github.com/SaltieRL/WebReplayViewer/blob/master/src/utils/isDevelopment.ts
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.
Get's a bit tricky when you are in dev and want to load a different replay, instead of just changing local variable to false or not passing it at all:
- you would need to stop the webpack server
- run webpack-dev-server manually without "--mode development" argument
edit: it turns out that running running without "--mode development" NODE_ENV is still set to development. I needed to specify "--mode production" to get it to be set to production.
Some basic drawing features.
(2D - draw in front of camera, 3D - draw so that objects stick to the field object even when in free cam) - Wasn't sure how to name these modes.
#41