Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caillat Michel
yafits
Commits
3cf0412e
Commit
3cf0412e
authored
Nov 25, 2019
by
Caillat Michel
Browse files
Added statistics, tooltips activation and sliceViewer as a parameter to YAFITSContourGUI.connect
parent
5b0ca68f
Changes
1
Hide whitespace changes
Inline
Side-by-side
yafitsv/views/olqv_2d.ejs
View file @
3cf0412e
...
...
@@ -31,6 +31,9 @@
<script
src=
"../javascript/FITSHeaderTable.js"
></script>
<script
src=
"../javascript/olqv_utils.js"
></script>
<script
src=
"https://code.highcharts.com/highcharts.js"
></script>
<!-- Conditional code generation -->
<
%
if
(
useSAMP
){%
>
<script
src=
"../javascript/samp.js"
></script>
...
...
@@ -305,6 +308,8 @@ function SliceViewer ( relFITSFilePath, width, height, RADECRangeInDegrees, FITS
let
_sliceIndex
;
let
_statistics
;
var
_interaction_mode
;
_relFITSFilePath
=
relFITSFilePath
;
...
...
@@ -720,6 +725,8 @@ var _marker_styles_f = function(feature) {
}
else
{
_data_steps_1
=
resp
[
"
result
"
][
"
data_steps
"
];
_statistics
=
resp
[
"
result
"
][
"
statistics
"
];
console
.
log
(
JSON
.
stringify
(
_statistics
,
0
,
4
));
var
path_to_png
=
resp
[
"
result
"
][
"
path_to_png
"
];
console
.
log
(
"
path_to_png=
"
+
path_to_png
);
if
(
_im_layer_1
)
{
...
...
@@ -772,6 +779,10 @@ var _marker_styles_f = function(feature) {
return
_map_1
;
}
this
.
getStatistics
=
function
()
{
return
_statistics
;
}
this
.
refresh
=
function
()
{
console
.
log
(
"
refresh: entering
"
)
_updateSliceWithPOST
();
...
...
@@ -1037,6 +1048,9 @@ var SAMPPublisher = function ( FITSHeader, connector) {
$
(
document
).
ready
(
function
()
{
console
.
log
(
"
$( document ).ready(function() {: entering
"
);
$
(
'
[data-tooltip="tooltip"]
'
).
tooltip
();
//$("a#jupyter").attr("href", "https://romeo.obspm.fr:8500/user/partemix/notebooks/openURL.ipynb?kernel_name=python3&?Variable1="+relFITSFilePath+"&?kernel_name=python3");
<%
if
(
useSAMP
){
%>
console
.
log
(
"
Yes we use SAMP
"
);
...
...
@@ -1175,7 +1189,7 @@ $( document ).ready(function() {
customControls
.
addButton
(
yAFITSContoursViewer
.
getButton
());
yAFITSContoursGUI
=
new
ContoursGUI
();
yAFITSContoursGUI
.
connect
(
yAFITSContoursViewer
);
yAFITSContoursGUI
.
connect
(
yAFITSContoursViewer
,
sliceViewer
);
$
(
'
a#rccap
'
).
click
(
function
()
{
sliceViewer
.
refresh
()});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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