Skip to content
Snippets Groups Projects
Commit 33edb4db authored by  Leonel Rosano Montero's avatar Leonel Rosano Montero
Browse files

Soluciona problemas con enumerados, ahora se borra cache si se grafica un enumerado

parent 7f128f3f
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,21 @@ export class Graph2DComponent {
}
if(this.animation.boton && obj.conj.cod != 'Numer' && obj.conj.dom != 'Numer'){
if(this.conjunto.length == 1 && (this.conjunto[0].cod == 'Numer' || this.conjunto[0].dom == 'Numer')){
this.conjunto = [];
this.conjunto.push(obj.conj);
this.id = 0;
this.funciones = [];
this.funciones.push({
id: this.funciones.length,
sampler: 'builtIn',
fn: function(scope) {
return fun(scope.x)
},
graphType: tipoGraf,
color: color
})
}else{
if(this.conjunto.length == 1){
this.id = 1;
this.conjunto.unshift({radio: 2, dom:this.conjunto[0].baseDom, cod:this.conjunto[0].baseCod, baseCod:this.conjunto[0].baseCod, baseDom:this.conjunto[0].baseDom, sets:{fdom:this.conjunto[0].baseDom,fcod:this.conjunto[0].baseCod}});
......@@ -150,7 +165,7 @@ export class Graph2DComponent {
graphType: tipoGraf,
color: color
});
}
}else{
this.conjunto = [];
this.conjunto.push(obj.conj);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment