Commit 5a1e8eb2 authored by Federico Santiago Luongo Gonnet's avatar Federico Santiago Luongo Gonnet
Browse files

arreglos T listas

parent 116d1841
......@@ -15,13 +15,16 @@ import Cross_R from './dummies/Cross_R';
import UBR_U from './dummies/UBR_U';
import UBR_B from './dummies/UBR_B';
import UBR_R from './dummies/UBR_R';
import UBR_LIST from './dummies/UBR_LIST';
import URL_LIST from './dummies/URL_LIST';
import UBL_LIST from './dummies/UBL_LIST'
import BRL_LIST from './dummies/BRL_LIST'
import UBL_U from './dummies/UBL_U';
import UBL_B from './dummies/UBL_B';
import UBL_L from './dummies/UBL_L';
import URL_U from './dummies/URL_U';
import URL_R from './dummies/URL_R';
import URL_L from './dummies/URL_L';
import BRL from './dummies/BRL_B';
import BRL_L from './dummies/BRL_L';
import BRL_B from './dummies/BRL_B';
import BRL_R from './dummies/BRL_R';
......@@ -30,7 +33,6 @@ import LI from './dummies/LI';
import TI from './dummies/TI';
import RI from './dummies/RI';
import DI from './dummies/DI';
import classNames from 'classnames';
export class DummyPipe extends React.Component {
......@@ -73,24 +75,36 @@ export class DummyPipe extends React.Component {
if (this.isEmpty(pipe.multipipeTypes) ||
pipe.multipipeTypes[0] == VALUES_TYPES.MULTIPIPE_OUT &&
pipe.multipipeTypes[1] == VALUES_TYPES.MULTIPIPE_OUT){
let mid = !this.isEmpty(pipe.multipipeTypes) ? 'MID_MULTIPIPE' : null
if (pipe.dir.top) {
var esListaTop = isList(pipe.dir.top);
if (pipe.dir.bottom) {
if (pipe.dir.right) {
if (pipe.dir.left) {
return (<Cross_U className={this.createDummyPipeOutput(pipe.dir.top, mid)}></Cross_U>)
} else {
return (<UBR_U className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
if(esListaTop){
return (<UBR_LIST className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
} else{
return (<UBR_U className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>) //TODO
}
}
} else if (pipe.dir.left) {
return (<UBL_U className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
if(esListaTop){
return (<UBL_LIST className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
} else{
return (<UBL_U className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>) //TODO
}
} else {
return (<Vertical className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
}
} else if (pipe.dir.right) {
if (pipe.dir.left) {
return (<URL_U className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
if(esListaTop){
return (<URL_LIST className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
} else{
return (<URL_U className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>) //TODO
}
} else {
return (<TopRight className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
}
......@@ -100,9 +114,14 @@ export class DummyPipe extends React.Component {
return (<TI className={this.createDummyPipeOutput(pipe.dir.top, mid)}/>)
}
} else if (pipe.dir.left) {
var esListaLeft = isList(pipe.dir.left);
if (pipe.dir.right) {
if (pipe.dir.bottom) {
return (<BRL_B className={this.createDummyPipeOutput(pipe.dir.left, mid)}/>)
if(esListaLeft){
return (<BRL_LIST className={this.createDummyPipeOutput(pipe.dir.left, mid)}/>)
} else{
return (<BRL_B className={this.createDummyPipeOutput(pipe.dir.left, mid)}/>) //TODO
}
} else {
return (<Horizontal className={this.createDummyPipeOutput(pipe.dir.left, mid)}/>)
}
......
import React from 'react';
import T_LIST from './T_LIST';
const BRL_LIST = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T_LIST transform="rotate(90 20 20)" className={props.className}/>
</svg>
);
export default BRL_LIST;
......@@ -11,7 +11,7 @@ const T = (props) => (
<path class={props.className[5]} d="M 26 22 L 26 40 L 30 40 L 30 22 z"></path>
<path class={props.className[1]} d="M 22 0 L 22 18 L 27 18 L 27 0 z"></path>
<path class={props.className[2]} d="M 26 0 L 26 18 L 30 18 L 30 0 z"></path>
<path class={props.className[1]}d="M 18 10 L 40 10 L 40 15 L 18 15 z"></path>
<path class={props.className[1]} d="M 18 10 L 40 10 L 40 15 L 18 15 z"></path>
<path class={props.className[2]} d="M 18 14 L 40 14 L 40 19 L 18 19 z"></path>
<path class={props.className[3]} d="M 18 18 L 40 18 L 40 23 L 18 23 z"></path>
<path class={props.className[4]} d="M 18 22 L 40 22 L 40 27 L 18 27 z"></path>
......
import React from 'react';
const T_LIST = (props) => (
<g transform={props.transform}>
<path className={props.className[1]} d="M 10 0 L 10 40 L 15 40 L 15 0 z"/>
<path className={props.className[2]} d="M 14 0 L 14 40 L 19 40 L 19 0 z"/>
<path className={props.className[3]} d="M 18 0 L 18 40 L 23 40 L 23 0 z"/>
<path className={props.className[4]} d="M 22 0 L 22 40 L 27 40 L 27 0 z"/>
<path className={props.className[5]} d="M 26 0 L 26 40 L 30 40 L 30 0 z"/>
<path className={props.className[1]} d="M 30 10 L 40 10 L 40 15 L 30 15 z"/>
<path className={props.className[2]} d="M 30 14 L 40 14 L 40 19 L 30 19 z"/>
<path className={props.className[3]} d="M 30 18 L 40 18 L 40 23 L 30 23 z"/>
<path className={props.className[4]} d="M 30 22 L 40 22 L 40 27 L 30 27 z"/>
<path className={props.className[5]} d="M 30 26 L 40 26 L 40 30 L 30 30 z"/>
</g>
);
{/* <path d="M 10 0 L 10 40 L 30 40 C 30 30 35 30 35 30 L 40 30 L 40 10 C 30 10 30 5 30 5 L 30 0 Z"/>
<path className="border" d="M 30 40 C 30 30 35 30 35 30 L 40 30 L 40 25 L 25 25 L 25 40 Z"/>
<path className="border" d="M 40 10 C 30 10 30 5 30 5 L 30 0 L 25 0 L 25 15 L 40 15 Z"/> */}
export default T_LIST;
import React from 'react';
import T_LIST from './T_LIST';
const UBL_LIST = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T_LIST transform="rotate(180 20 20)" className={props.className}/>
</svg>
);
export default UBL_LIST;
import React from 'react';
import T from './TSI';
import T_LIST from './T_LIST';
import Vertical from './Vertical';
const UBR_LIST = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T_LIST transform="rotate(0 20 20)" className={props.className}/>
</svg>
);
export default UBR_LIST;
import React from 'react';
import T_LIST from './T_LIST';
const URL_LIST = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T_LIST transform="rotate(270 20 20)" className={props.className}/>
</svg>
);
export default URL_LIST;
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