- // The drawing area doesn't start at (0, 0), it starts at (area.x, area.y).
- // That's why we subtract them from splitX and splitY. This gives us the
- // actual distance from the upper-left hand corder of the graph itself.
- var leftSideWidth = splitX - area.x;
- var rightSideWidth = area.w - leftSideWidth;
- var topHeight = splitY - area.y;
- var bottomHeight = area.h - topHeight;
+ // The drawing area doesn't start at (0, 0), it starts at (area.x, area.y).
+ // That's why we subtract them from splitX and splitY. This gives us the
+ // actual distance from the upper-left hand corder of the graph itself.
+ var leftSideWidth = splitX - area.x;
+ var rightSideWidth = area.w - leftSideWidth;
+ var topHeight = splitY - area.y;
+ var bottomHeight = area.h - topHeight;