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
metexplore
MetExploreViz
Commits
082085b9
Commit
082085b9
authored
Apr 30, 2021
by
Jean-Clement Gallardo
Browse files
add scale save for mapping condition (discrete and continuous)
parent
02a90609
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/view/form/selectConditionForm/SelectConditionFormController.js
View file @
082085b9
...
...
@@ -56,6 +56,32 @@ Ext.define('metExploreViz.view.form.selectConditionForm.SelectConditionFormContr
view
.
lookupReference
(
'
selectCondition
'
).
on
({
change
:
function
(
that
,
newVal
,
old
){
var
conditionType
=
view
.
lookupReference
(
'
selectConditionType
'
).
getValue
();
if
(
conditionType
===
"
Continuous
"
){
var
oldCondition
=
old
+
"
"
+
conditionType
;
var
newCondition
=
newVal
+
"
"
+
conditionType
;
if
(
this
.
getAStyleFormParent
().
scaleRange
!==
undefined
){
this
.
getAStyleFormParent
()[
oldCondition
]
=
this
.
getAStyleFormParent
().
scaleRange
;
}
if
(
this
.
getAStyleFormParent
()[
newCondition
]
!==
null
){
this
.
getAStyleFormParent
().
scaleRange
=
this
.
getAStyleFormParent
()[
newCondition
]
}
}
if
(
conditionType
===
"
Discrete
"
){
var
oldCondition
=
old
+
"
"
+
conditionType
;
var
newCondition
=
newVal
+
"
"
+
conditionType
;
if
(
this
.
getAStyleFormParent
().
valueDiscreteMappings
!==
undefined
){
this
.
getAStyleFormParent
()[
oldCondition
]
=
this
.
getAStyleFormParent
().
valueDiscreteMappings
;
}
if
(
this
.
getAStyleFormParent
()[
newCondition
]
!==
null
){
this
.
getAStyleFormParent
().
valueDiscreteMappings
=
this
.
getAStyleFormParent
()[
newCondition
]
}
}
this
.
map
(
newVal
,
old
,
me
.
getAStyleFormParent
());
this
.
applyToLinkedStyles
(
me
.
getAStyleFormParent
());
},
...
...
Write
Preview
Markdown
is supported
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