summaryrefslogtreecommitdiffstats
path: root/prevnext1/cell.js
diff options
context:
space:
mode:
Diffstat (limited to 'prevnext1/cell.js')
-rw-r--r--prevnext1/cell.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/prevnext1/cell.js b/prevnext1/cell.js
new file mode 100644
index 0000000..7e071e0
--- /dev/null
+++ b/prevnext1/cell.js
@@ -0,0 +1,14 @@
+( function() {
+
+function Cell( props ) {
+ this.width = props.width;
+ this.height = props.height;
+ this.x = props.x;
+ this.index = props.index;
+
+ this.target = this.x + this.width * 0.5;
+}
+
+window.Cell = Cell;
+
+})();