Commit 2af20110 authored by Stéfano Pesamosca's avatar Stéfano Pesamosca
Browse files

Corrección en Ts de entrada de segmento

parent 4ed29fd0
......@@ -49,6 +49,9 @@ export class DummyPipe extends React.Component {
let auxValue = listSubType(value)
return ['LIST','LIST',auxValue,auxValue,auxValue,'LIST']
}
if (value == 'POINT'){
return [value,value,value,'MID_MULTIPIPE',value,value]
}
return [value,value,value,mid,value,value]
}
......@@ -106,6 +109,9 @@ export class DummyPipe extends React.Component {
} else if (pipe.dir.bottom) {
return (<BottomLeft className={this.createDummyPipeOutput(pipe.dir.left, mid)}/>)
} else {
console.log("this.createDummyPipeOutput(pipe.dir.left, mid) "+ this.createDummyPipeOutput(pipe.dir.left, mid));
console.log("pipe.dir.left "+ pipe.dir.left);
console.log("mid "+ mid);
return <LI className={this.createDummyPipeOutput(pipe.dir.left, mid)}/>
}
} else if (pipe.dir.bottom) {
......@@ -123,10 +129,17 @@ export class DummyPipe extends React.Component {
if (pipe.multipipeTypes == 'NUMBER' ||
pipe.multipipeTypes == 'COLOR' ||
pipe.multipipeTypes == 'FIGURE'){
console.log("ENTRO AL IF");
var types = [VALUES_TYPES.MULTIPIPE_OUT, pipe.multipipeTypes,pipe.multipipeTypes,
pipe.multipipeTypes,pipe.multipipeTypes, pipe.multipipeTypes];
var typesInverted = types;
}else{
console.log("ENTRO AL ELSE");
console.log("pipe.multipipeTypes "+ pipe.multipipeTypes);
console.log("pipe.dir.bottom "+ pipe.dir.bottom);
console.log("pipe.dir.top "+ pipe.dir.top);
console.log("pipe.dir.left "+ pipe.dir.left);
console.log("pipe.dir.right "+ pipe.dir.right);
var types = [VALUES_TYPES.MULTIPIPE_OUT,pipe.multipipeTypes[0],pipe.multipipeTypes[0],
'MID_MULTIPIPE',pipe.multipipeTypes[1],pipe.multipipeTypes[1]];
......@@ -161,6 +174,9 @@ export class DummyPipe extends React.Component {
else if (pipe.inDirections[0] == "TOP"){
return (<UBR_U className={types}/>)
}
else{
return (<UBR_B className={typesInverted}/>)
}
}
} else if (pipe.dir.left) {
if (pipe.inDirections[0] == "BOTTOM"){
......@@ -172,6 +188,9 @@ export class DummyPipe extends React.Component {
else if (pipe.inDirections[0] == "TOP"){
return (<UBL_U className={typesInverted}/>)
}
else{
return (<UBL_B className={types}/>)
}
} else {
if (pipe.inDirections[0] == "TOP"){
return (<Vertical className={types}/>)
......@@ -189,7 +208,10 @@ export class DummyPipe extends React.Component {
}
else if (pipe.inDirections[0] == "RIGHT"){
return (<URL_R className={typesInverted}/>)
}
}
else{
return (<URL_U className={types}/>)
}
} else {
if (pipe.inDirections[0] == "RIGHT"){
return (<TopRight className={typesInverted}/>)
......@@ -209,6 +231,7 @@ export class DummyPipe extends React.Component {
} else if (pipe.dir.left) {
if (pipe.dir.right) {
if (pipe.dir.bottom) {
console.log("pipe.inDirections[0] "+pipe.inDirections[0]);
if (pipe.inDirections[0] == "BOTTOM"){
return (<BRL_B className={types}/>)
}
......@@ -218,6 +241,9 @@ export class DummyPipe extends React.Component {
else if (pipe.inDirections[0] == "RIGHT"){
return (<BRL_R className={types}/>)
}
else{
return (<BRL_B className={types}/>)
}
} else {
if (pipe.inDirections[0] == "LEFT"){
......@@ -248,6 +274,7 @@ export class DummyPipe extends React.Component {
} else if (pipe.dir.right) {
return (<RI className={types}/>);
}
console.log("ACA LLEGO");
return (<O/>);
}
}
......
......@@ -153,7 +153,7 @@ export class FuncPipe extends React.Component {
return [pipe.dir.top,topInputType[0],topInputType[0],'MID_MULTIPIPE',topInputType[1],topInputType[1]]
}
else if (JSON.stringify(pipe["name"]) == '"poli"'){
return ['POINT','NUMBER','NUMBER','MID_MULTIPIPE','NUMBER','NUMBER']
return ['POINT','LIST','NUMBER','MID_MULTIPIPE','NUMBER','LIST']
}
else{
return [pipe.dir.top,pipe.dir.top,pipe.dir.top,pipe.dir.top,pipe.dir.top,pipe.dir.top]
......
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