Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ehasa-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WIMMA Lab 2019
Overflow
ehasa-frontend
Commits
f2b0ce38
Commit
f2b0ce38
authored
5 years ago
by
L4168
Browse files
Options
Downloads
Patches
Plain Diff
add config file for replaysettings
parent
a3f038ca
No related branches found
Branches containing commit
No related tags found
2 merge requests
!46
Development to testing
,
!45
Mapdrawing replay
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/ReplayConfig.js
+45
-0
45 additions, 0 deletions
src/components/ReplayConfig.js
with
45 additions
and
0 deletions
src/components/ReplayConfig.js
0 → 100644
+
45
−
0
View file @
f2b0ce38
import
React
from
"
react
"
;
var
options
=
{
trackPointOptions
:
{
// whether to draw track point
isDraw
:
true
,
// whether to use canvas to draw it, if false, use leaflet api `L.circleMarker`
useCanvas
:
false
,
stroke
:
true
,
color
:
"
#000000
"
,
fill
:
true
,
fillColor
:
"
rgba(0,0,0,0)
"
,
opacity
:
0
,
radius
:
12
},
targetOptions
:
{
// whether to use an image to display target, if false, the program provides a default
useImg
:
true
,
// if useImg is true, provide the imgUrl
imgUrl
:
"
../light-infantry.svg
"
,
// the width of target, unit: px
width
:
60
,
// the height of target, unit: px
height
:
40
,
// the stroke color of target, effective when useImg set false
color
:
"
#00f
"
,
// the fill color of target, effective when useImg set false
fillColor
:
"
#9FD12D
"
},
clockOptions
:
{
// the default speed
// caculate method: fpstime * Math.pow(2, speed - 1)
// fpstime is the two frame time difference
speed
:
10
,
// the max speed
maxSpeed
:
100
},
toolTipOptions
:
{
offset
:
[
0
,
0
],
direction
:
"
top
"
,
permanent
:
false
}
};
export
default
options
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment