Skip to content

Commit 2debcb9

Browse files
e-halinenavicarie
authored andcommitted
WIP: AB#61589: Add E-Zone for map generation
1 parent 0532cf3 commit 2debcb9

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

src/components/routeMap/routeMap.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import AZone from 'icons/icon-Zone-A';
99
import BZone from 'icons/icon-Zone-B';
1010
import CZone from 'icons/icon-Zone-C';
1111
import DZone from 'icons/icon-Zone-D';
12+
import EZone from 'icons/icon-Zone-E';
1213

1314
import { preventFromOverlap } from '../../util/terminals';
1415
import { getTransformedCoord } from '../../util/arrows';
@@ -43,6 +44,8 @@ const getZoneIcon = (zone, size) => {
4344
return <CZone size={size} />;
4445
case 'D':
4546
return <DZone size={size} />;
47+
case 'E':
48+
return <EZone size={size} />;
4649
default:
4750
return <div />;
4851
}

src/icons/icon-Zone-E.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
3+
4+
const EZone = (props) => (
5+
<div>
6+
<svg
7+
width={props.size}
8+
height={props.size}
9+
viewBox="0 0 36 36"
10+
version="1.1"
11+
xmlns="http://www.w3.org/2000/svg"
12+
xmlnsXlink="http://www.w3.org/1999/xlink"
13+
>
14+
<title>icon-Zone-E</title>
15+
<desc>Created with Sketch.</desc>
16+
<defs />
17+
<g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
18+
<g id="icon-Zone-E">
19+
<path
20+
d="M36,18.00096 C36,27.94176 27.9408,36.00096 18,36.00096 C8.0592,36.00096 0,27.94176 0,18.00096 C0,8.05776 8.0592,0.00096 18,0.00096 C27.9408,0.00096 36,8.05776 36,18.00096"
21+
id="Fill-1"
22+
fill="#007AC9"
23+
/>
24+
<path
25+
d="M9.94704,8.85792 C9.94704,7.78992 10.77024,6.96672 11.83584,6.96672 L17.90304,6.96672 C24.60864,6.96672 29.24064,11.56992 29.24064,17.57472 L29.24064,17.63472 C29.24064,23.63952 24.60864,28.30512 17.90304,28.30512 L11.83584,28.30512 C10.77024,28.30512 9.94704,27.48192 9.94704,26.41152 L9.94704,8.85792 Z M17.90304,24.88992 C22.38384,24.88992 25.30944,21.87312 25.30944,17.69712 L25.30944,17.63472 C25.30944,13.45872 22.38384,10.38192 17.90304,10.38192 L13.69584,10.38192 L13.69584,24.88992 L17.90304,24.88992 Z"
26+
id="Fill-4"
27+
fill="#FFFFFF"
28+
/>
29+
</g>
30+
</g>
31+
</svg>
32+
</div>
33+
);
34+
35+
EZone.propTypes = {
36+
size: PropTypes.string.isRequired,
37+
};
38+
39+
export default EZone;

0 commit comments

Comments
 (0)