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
nomad-lab
encyclopedia-gui
Commits
153c4eb2
Commit
153c4eb2
authored
Jan 17, 2018
by
Iker Hurtado
Browse files
Several minor improvements
parent
a4bc2337
Changes
6
Hide whitespace changes
Inline
Side-by-side
client/bundle.js
View file @
153c4eb2
...
...
@@ -1152,6 +1152,7 @@
subcategoryField
.
appendChild
(
createOption
(
'
Phonon dispersion
'
));
subcategoryField
.
appendChild
(
createOption
(
'
Phonon DOS
'
));
subcategoryField
.
appendChild
(
createOption
(
'
Specific heat
'
));
subcategoryField
.
appendChild
(
createOption
(
'
Helmholtz free energy
'
));
break
;
}
}
...
...
@@ -4021,7 +4022,7 @@
//this.addText(-3, this.plotRangeY-3, this.yLabel, 'end', 'statisticsviewer');
this
.
yLabelText
=
svg
.
addText
(
this
.
svg
,
0
,
0
,
this
.
yLabel
,
'
middle
'
,
'
axis-steps-big
'
);
this
.
yLabelText
.
setAttribute
(
'
transform
'
,
'
translate(1
5
,
'
+
(
this
.
plotRangeY
/
2
+
this
.
margins
.
top
)
+
'
) rotate(-90)
'
);
this
.
yLabelText
.
setAttribute
(
'
transform
'
,
'
translate(1
3
,
'
+
(
this
.
plotRangeY
/
2
+
this
.
margins
.
top
)
+
'
) rotate(-90)
'
);
svg
.
addText
(
this
.
plotArea
,
this
.
plotRangeX
/
2
,
this
.
margins
.
bottom
-
1
,
this
.
xLabel
,
'
middle
'
,
'
axis-steps-big
'
);
if
(
xSteps
!==
null
){
...
...
@@ -4036,7 +4037,7 @@
let
i
=
1
;
while
(
this
.
yMax
*
i
>
this
.
yMin
)
{
svg
.
addLine
(
this
.
plotArea
,
0
,
this
.
transformY
(
this
.
yMax
*
i
),
-
3
,
this
.
transformY
(
this
.
yMax
*
i
),
1
);
let
numberText
=
(
Math
.
abs
(
this
.
yMax
*
i
)
>
1000
?
(
this
.
yMax
*
i
).
toExponential
()
:
this
.
yMax
*
i
);
let
numberText
=
(
Math
.
abs
(
this
.
yMax
*
i
)
>
=
1000
0
?
(
this
.
yMax
*
i
).
toExponential
()
:
this
.
yMax
*
i
);
svg
.
addText
(
this
.
plotArea
,
-
5
,
this
.
transformY
(
this
.
yMax
*
i
)
+
3
,
numberText
,
'
end
'
,
'
statisticsviewersteps
'
);
i
--
;
//console.log(i, this.yMax*i, this.yMin);
...
...
@@ -4422,6 +4423,7 @@
<div class="wyckoff-pos-calc-field" >
<b><span info-sys-data="free-wyckoff-parameters">Wyckoff sites</span></b>
(fractional coordinates)
<div class="wyckoff-pos-calc-table"> </div>
</div>
...
...
@@ -6576,7 +6578,7 @@
class
HelmholtzPlotter
extends
PlotterBase
{
constructor
()
{
super
({
left
:
5
0
,
right
:
16
,
top
:
10
,
bottom
:
32
});
super
({
left
:
6
0
,
right
:
16
,
top
:
10
,
bottom
:
32
});
this
.
tooltip
;
}
...
...
client/index.html
View file @
153c4eb2
...
...
@@ -118,6 +118,6 @@
</div>
<!-- <script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script>-->
<script
type=
"text/javascript"
src=
"bundle.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
src=
"bundle
-es5
.js"
charset=
"utf-8"
></script>
</body>
</html>
client/src/common/FlaggingFormPopup.js
View file @
153c4eb2
...
...
@@ -97,6 +97,7 @@ function _setCurrentPage(pageId){
subcategoryField
.
appendChild
(
createOption
(
'
Phonon dispersion
'
));
subcategoryField
.
appendChild
(
createOption
(
'
Phonon DOS
'
));
subcategoryField
.
appendChild
(
createOption
(
'
Specific heat
'
));
subcategoryField
.
appendChild
(
createOption
(
'
Helmholtz free energy
'
));
break
;
}
}
...
...
client/src/common/PlotterBase.js
View file @
153c4eb2
...
...
@@ -67,7 +67,7 @@ class PlotterBase{
//this.addText(-3, this.plotRangeY-3, this.yLabel, 'end', 'statisticsviewer');
this
.
yLabelText
=
svg
.
addText
(
this
.
svg
,
0
,
0
,
this
.
yLabel
,
'
middle
'
,
'
axis-steps-big
'
);
this
.
yLabelText
.
setAttribute
(
'
transform
'
,
'
translate(1
5
,
'
+
(
this
.
plotRangeY
/
2
+
this
.
margins
.
top
)
+
'
) rotate(-90)
'
);
this
.
yLabelText
.
setAttribute
(
'
transform
'
,
'
translate(1
3
,
'
+
(
this
.
plotRangeY
/
2
+
this
.
margins
.
top
)
+
'
) rotate(-90)
'
);
svg
.
addText
(
this
.
plotArea
,
this
.
plotRangeX
/
2
,
this
.
margins
.
bottom
-
1
,
this
.
xLabel
,
'
middle
'
,
'
axis-steps-big
'
);
if
(
xSteps
!==
null
){
...
...
@@ -82,7 +82,7 @@ class PlotterBase{
let
i
=
1
;
while
(
this
.
yMax
*
i
>
this
.
yMin
)
{
svg
.
addLine
(
this
.
plotArea
,
0
,
this
.
transformY
(
this
.
yMax
*
i
),
-
3
,
this
.
transformY
(
this
.
yMax
*
i
),
1
);
let
numberText
=
(
Math
.
abs
(
this
.
yMax
*
i
)
>
1000
?
(
this
.
yMax
*
i
).
toExponential
()
:
this
.
yMax
*
i
);
let
numberText
=
(
Math
.
abs
(
this
.
yMax
*
i
)
>
=
1000
0
?
(
this
.
yMax
*
i
).
toExponential
()
:
this
.
yMax
*
i
);
svg
.
addText
(
this
.
plotArea
,
-
5
,
this
.
transformY
(
this
.
yMax
*
i
)
+
3
,
numberText
,
'
end
'
,
'
statisticsviewersteps
'
);
i
--
;
//console.log(i, this.yMax*i, this.yMin);
...
...
client/src/material-mod/HelmholtzPlotter.js
View file @
153c4eb2
...
...
@@ -7,7 +7,7 @@ let PlotterBase = require('../common/PlotterBase.js');
class
HelmholtzPlotter
extends
PlotterBase
{
constructor
()
{
super
({
left
:
5
0
,
right
:
16
,
top
:
10
,
bottom
:
32
});
super
({
left
:
6
0
,
right
:
16
,
top
:
10
,
bottom
:
32
});
this
.
tooltip
;
}
...
...
client/src/material-mod/StructureDetails.view.js
View file @
153c4eb2
...
...
@@ -309,6 +309,7 @@ class TreeLeafViewer{
<div class="wyckoff-pos-calc-field" >
<b><span info-sys-data="free-wyckoff-parameters">Wyckoff sites</span></b>
(fractional coordinates)
<div class="wyckoff-pos-calc-table"> </div>
</div>
...
...
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