summaryrefslogtreecommitdiff
path: root/src/shapes/index.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-25 21:10:40 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:44 +0200
commit8f5e6d1e73f16e3cdd523f961d06e4b4eb5a8cef (patch)
tree57cafd6d8bf42f804da8e2246f64c43a1c52b100 /src/shapes/index.js
parentc47a27b826f7d76410308a4151611a366f9eaf46 (diff)
Implement wall drawing
Diffstat (limited to 'src/shapes/index.js')
-rw-r--r--src/shapes/index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shapes/index.js b/src/shapes/index.js
index bea0f1aa..7f65982b 100644
--- a/src/shapes/index.js
+++ b/src/shapes/index.js
@@ -136,4 +136,11 @@ Shapes.Path = PropTypes.shape({
sections: PropTypes.arrayOf(Shapes.Section),
});
+Shapes.WallSegment = PropTypes.shape({
+ startPosX: PropTypes.number.isRequired,
+ startPosY: PropTypes.number.isRequired,
+ isHorizontal: PropTypes.bool.isRequired,
+ length: PropTypes.number.isRequired,
+});
+
export default Shapes;