Commit 1cd61484 authored by Stéfano Pesamosca's avatar Stéfano Pesamosca
Browse files

Correccion en Ts

parent ee055bea
......@@ -9,10 +9,19 @@ import TopLeft from './dummies/TopLeft';
import BottomLeft from './dummies/BottomLeft';
import BottomRight from './dummies/BottomRight';
import Cross from './dummies/Cross';
import UBR from './dummies/UBR';
import UBL from './dummies/UBL';
import URL from './dummies/URL';
import BRL from './dummies/BRL';
import UBR_U from './dummies/UBR_U';
import UBR_B from './dummies/UBR_B';
import UBR_R from './dummies/UBR_R';
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';
import O from './dummies/O';
import LI from './dummies/LI';
import TI from './dummies/TI';
......@@ -123,10 +132,26 @@ export class DummyPipe extends React.Component {
if (pipe.dir.left) {
return (<Cross className={types}></Cross>)
} else {
return (<UBR className={types}/>)
if (pipe.inDirections[0] == "BOTTOM"){
return (<UBR_B className={types}/>)
}
else if (pipe.inDirections[0] == "RIGHT"){
return (<UBR_R className={types}/>)
}
else if (pipe.inDirections[0] == "TOP"){
return (<UBR_U className={types}/>)
}
}
} else if (pipe.dir.left) {
if (pipe.inDirections[0] == "BOTTOM"){
return (<UBL_B className={types}/>)
}
else if (pipe.inDirections[0] == "LEFT"){
return (<UBL_L className={types}/>)
}
else if (pipe.inDirections[0] == "TOP"){
return (<UBL_U className={typesInverted}/>)
}
} else if (pipe.dir.left) {
return (<UBL className={typesInverted}/>)
} else {
if (pipe.inDirections[0] == "TOP"){
return (<Vertical className={types}/>)
......@@ -136,7 +161,15 @@ export class DummyPipe extends React.Component {
}
} else if (pipe.dir.right) {
if (pipe.dir.left) {
return (<URL className={types}/>)
if (pipe.inDirections[0] == "TOP"){
return (<URL_U className={types}/>)
}
else if (pipe.inDirections[0] == "LEFT"){
return (<URL_L className={types}/>)
}
else if (pipe.inDirections[0] == "RIGHT"){
return (<URL_R className={typesInverted}/>)
}
} else {
if (pipe.inDirections[0] == "RIGHT"){
return (<TopRight className={typesInverted}/>)
......@@ -156,7 +189,16 @@ export class DummyPipe extends React.Component {
} else if (pipe.dir.left) {
if (pipe.dir.right) {
if (pipe.dir.bottom) {
return (<BRL className={types}/>)
if (pipe.inDirections[0] == "BOTTOM"){
return (<BRL_B className={types}/>)
}
else if (pipe.inDirections[0] == "LEFT"){
return (<BRL_L className={typesInverted}/>)
}
else if (pipe.inDirections[0] == "RIGHT"){
return (<BRL_R className={types}/>)
}
} else {
if (pipe.inDirections[0] == "LEFT"){
return (<Horizontal className={typesInverted}/>)
......
import React from 'react';
import T from './T';
const BRL = (props) => (
const BRL_B = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T transform="rotate(90 20 20)" className={props.className}/>
</svg>
);
export default BRL;
\ No newline at end of file
export default BRL_B;
\ No newline at end of file
import React from 'react';
import T from './T';
const BRL_L = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T transform="rotate(90 20 20)" className={props.className}/>
</svg>
);
export default BRL_L;
\ No newline at end of file
import React from 'react';
import TSI from './TSI';
const BRL_R = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<TSI transform="rotate(90 20 20)" className={props.className}/>
</svg>
);
export default BRL_R;
\ No newline at end of file
import React from 'react';
const T = (props) => (
<g transform={props.transform}>
<path className={props.className[5]} d="M 10 0 L 10 40 L 15 40 L 15 0 z"/>
<path className={props.className[4]} 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[2]} d="M 22 0 L 22 40 L 27 40 L 27 0 z"/>
<path className={props.className[1]} 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;
\ No newline at end of file
import React from 'react';
const T = (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[5]} d="M 30 10 L 40 10 L 40 15 L 30 15 z"/>
<path className={props.className[4]} 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[2]} d="M 30 22 L 40 22 L 40 27 L 30 27 z"/>
<path className={props.className[1]} 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;
\ No newline at end of file
import React from 'react';
import T from './T';
const UBL = (props) => (
const UBL_B = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T transform="rotate(180 20 20)" className={props.className}/>
</svg>
);
export default UBL;
\ No newline at end of file
export default UBL_B;
\ No newline at end of file
import React from 'react';
import TLI from './TLI';
const UBL_L = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<TLI transform="rotate(180 20 20)" className={props.className}/>
</svg>
);
export default UBL_L;
\ No newline at end of file
import React from 'react';
import T from './T';
const UBL_U = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T transform="rotate(180 20 20)" className={props.className}/>
</svg>
);
export default UBL_U;
\ No newline at end of file
import React from 'react';
import T from './T';
const UBR_B = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T transform="rotate(0 20 20)" className={props.className}/>
</svg>
);
export default UBR_B;
\ No newline at end of file
import React from 'react';
import TSI from './TSI';
const UBR_U = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<TSI transform="rotate(0 20 20)" className={props.className}/>
</svg>
);
export default UBR_U;
\ No newline at end of file
import React from 'react';
import TSI from './TSI';
const URL_L = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<TSI transform="rotate(270 20 20)" className={props.className}/>
</svg>
);
export default URL_L;
import React from 'react';
import T from './T';
const URL = (props) => (
const URL_R = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<T transform="rotate(270 20 20)" className={props.className}/>
</svg>
);
export default URL;
export default URL_R;
import React from 'react';
import TLI from './TLI';
const URL_U = (props) => (
<svg viewBox="0 0 40 40" className={props.className[0]}>
<TLI transform="rotate(270 20 20)" className={props.className}/>
</svg>
);
export default URL_U;
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