Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Dwelly
speccy
Commits
027f9ab5
Commit
027f9ab5
authored
Jun 09, 2020
by
Tom Dwelly
Browse files
added info stamp to canvas
parent
f603cc3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/speccy.js
View file @
027f9ab5
...
...
@@ -662,7 +662,23 @@ function plotData() {
ctx
.
stroke
();
ctx
.
closePath
();
// write the plate-mjd-fiberid in the top left hand corner
{
var
plate
=
parseInt
(
document
.
getElementById
(
"
pipeParams_PLATE
"
).
innerHTML
);
var
mjd
=
parseInt
(
document
.
getElementById
(
"
pipeParams_MJD
"
).
innerHTML
);
var
fiberid
=
parseInt
(
document
.
getElementById
(
"
pipeParams_FIBERID
"
).
innerHTML
);
var
run2d
=
document
.
getElementById
(
"
pipeParams_RUN2D
"
).
innerHTML
;
ctx
.
font
=
"
18px Arial
"
;
ctx
.
textAlign
=
"
left
"
;
ctx
.
beginPath
();
var
str_label
=
(
"
0000
"
+
plate
).
slice
(
-
4
)
+
"
-
"
+
mjd
+
"
-
"
+
(
"
0000
"
+
fiberid
).
slice
(
-
4
)
+
"
(
"
+
run2d
+
"
)
"
;
ctx
.
fillText
(
str_label
,
5.0
+
xsize
*
0.005
,
10.0
+
ysize
*
0.01
);
ctx
.
stroke
();
ctx
.
closePath
();
ctx
.
font
=
"
14px Arial
"
;
ctx
.
textAlign
=
"
center
"
;
}
//now draw wavelengths of common lines
if
(
document
.
getElementById
(
"
ToggleLines
"
).
checked
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment