Commit 9c262180 authored by Jean-Clement Gallardo's avatar Jean-Clement Gallardo
Browse files

Finish hotfix/NumberMappingEditor

parents 695d01a2 92c022a6
......@@ -127,9 +127,9 @@ Ext.define('metExploreViz.view.form.continuousNumberMappingEditor.ContinuousNumb
margin: "5 15 5 5",
xtype: 'button',
reference: 'cancelButton',
text : 'Cancel'
text : 'Close'
}
]
}
]
});
\ No newline at end of file
});
......@@ -747,15 +747,21 @@ metExploreD3.GraphNumberScaleEditor = {
reset : function(){
var me = this;
me.numberRange = me.numberRangeInit.slice(0);
me.numberPercent = me.numberPercentInit.slice(0);
me.numberDomain = me.numberDomainInit.slice(0);
// me.numberRange = me.numberRangeInit.slice(0);
// me.numberPercent = me.numberPercentInit.slice(0);
// me.numberDomain = me.numberDomainInit.slice(0);
me.numberMin = me.numberMinInit.slice(0);
me.numberMax = me.numberMaxInit.slice(0);
me.number.range(me.numberRange).domain(me.numberDomain);
// me.valueMin = me.numberMinInit;
// me.ValueMax = me.numberMaxInit;
// me.number.range(me.numberRange).domain(me.numberDomain);
me.createNumberScaleEditor(me.svg, me.width, me.height, me.numberField, me.textfieldValue, me.delButton, me.data);
dataInit = [];
dataInit.push(me.begin);
dataInit.push({"id": 1, "value": me.begin.value, "styleValue": me.begin.styleValue});
dataInit.push({"id": 2, "value": me.end.value, "styleValue": me.end.styleValue});
dataInit.push(me.end);
me.createNumberScaleEditor(me.svg, me.width, me.height, me.numberField, me.textfieldValue, me.delButton, dataInit);
},
updateSizeNumber : function(id, size){
......@@ -822,10 +828,10 @@ metExploreD3.GraphNumberScaleEditor = {
},
delNumber : function(){
var me = this;
me.data.splice(me.selectedValue-1, 1);
me.createNumberScaleEditor(me.svg, me.width, me.height, me.numberField, me.textfieldValue, me.delButton, me.data);
if(me.data.length>4){
me.data.splice(me.selectedValue, 1);
me.createNumberScaleEditor(me.svg, me.width, me.height, me.numberField, me.textfieldValue, me.delButton, me.data);
}
},
updateArea : function(){
var me = this;
......@@ -1004,4 +1010,4 @@ metExploreD3.GraphNumberScaleEditor = {
return me.data;
}
};
\ No newline at end of file
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment