Shivam Dave
e8739ede0e
[Gestures] Tests
...
Cleaned up/removed placeholder
console.log calls.
2015-09-04 14:56:31 -07:00
Shivam Dave
8101fd7a20
[Gestures] Tests
...
MCTPinch tests nearly complete.
Does not check scope destroy, however does
run through the touch firings.
2015-09-04 14:53:14 -07:00
Shivam Dave
820960f879
[Gestures] Tests
...
Setup the gestures for the MCTPlot
2015-09-04 14:52:14 -07:00
Shivam Dave
6f130ae48c
[Plot] Tests
...
Initialization and addition of MCTPlotSpec
tests. Currently runs through file, however
need to call calls.
2015-09-04 13:11:14 -07:00
Shivam Dave
4e44571819
[Gestures] Tests
...
Created initialization of variables
and components to MCTChart additions.
2015-09-04 12:54:35 -07:00
Shivam Dave
8920b5454b
[Plot] Clean Up
...
Removed unused from MCTChart.
2015-09-04 12:50:26 -07:00
Shivam Dave
989819c7bd
[plot-reborn] Tests
...
Completes PlotController tests for the
viewportChangeEnd functions and
call.
2015-09-04 11:33:57 -07:00
Shivam Dave
f5da8252af
[plot-reborn] Tests
...
Initialize MCTPinch, MCTPlot, MCTChart
tests.
2015-09-04 11:32:21 -07:00
Shivam Dave
00a8aea6ea
[plot-reborn] Tests
...
Initialize PlotController tests and the
json suite file.
2015-09-04 11:31:42 -07:00
Shivam Dave
8072e829ad
[Mobile] Comments
...
Added comments to plot controller
regarding the change in the snapping
to right and mobile adjustment.
2015-09-03 16:30:12 -07:00
Shivam Dave
e866ddb9fd
[Mobile] Plot & Gestures
...
Plot adjusted so that when snapping to the right
the left domain value also moves same amount that
the right domain did. Also Interval between left
and right domains on screen are dyanmically set to
amount zoomed in/out, instead of being defaulted
to 2 minutes. Made small edit to display if the chart
has been manipulated (panned or zoomed) or is updating
live.
2015-09-03 16:15:34 -07:00
Shivam Dave
4fa29d30f5
[Mobile] Gestures
...
Distance change to differentiate between
pan and pinch increased from 2 to 3.
2015-09-03 11:48:42 -07:00
Shivam Dave
c394151c46
[Mobile] Gestures
...
Redraw rate adjusted to redraw on
mobile every 15ms instead of 1000ms
(like on desktop). Also added agentservice
to PlotController and MCTChart (bundles and
file.
2015-09-03 11:47:33 -07:00
Shivam Dave
db1b76413c
[Mobile] Clean Up
...
Removed test PlotController functions
which are unused.
2015-09-03 09:53:17 -07:00
Shivam Dave
c8b02d355f
[Mobile] Comments
...
Clarifies what the ratio is for the
distance.
2015-09-03 09:51:12 -07:00
Shivam Dave
7c110ee8af
[Mobile] Gestures
...
Removed plot.html mct-pinch reference
because it was not being used. Also
adjusted MCTPlot comment.
2015-09-03 09:21:10 -07:00
Shivam Dave
49213f550f
[Mobile] Comments
...
Commented on the trackTouchPosition
addition.
2015-09-03 09:08:47 -07:00
Shivam Dave
447ae3f20b
[Mobile] Comments
...
Added comments to the MCTPinch file.
2015-09-02 13:44:17 -07:00
Shivam Dave
7288db1908
[Mobile] Comments
...
Added comments to the MCTPinch file.
2015-09-02 13:37:17 -07:00
Shivam Dave
908fbdbf73
[Mobile] Clean Up
...
Changed one line space.
2015-09-02 12:59:44 -07:00
Shivam Dave
052a359738
[Mobile] Comments
...
Added comments to the MCTPinch file.
2015-09-02 12:58:56 -07:00
Shivam Dave
f9be00a70f
[Mobile] Clean Up
...
Reorganizaed MCTPlot touch
functions to be in suitable order. Also
made code DRYer by removing unnecessary functions
and combining statements that are used once. Also
renamed variables to differentiate similar ones
from one another. Added marks to show where
comments are needed (will be edited in next
commit).
2015-09-02 12:45:52 -07:00
Shivam Dave
d1055f0839
[Mobile] Refactor
...
Refactored calculateViewport
to use ratio to cacluate the sign of
required zoom in or zoom out, and then
apply that to the ZOOM_AMT. Makes function
DRYer.
2015-09-02 11:23:33 -07:00
Shivam Dave
0b7ab75512
[Mobile] Comments
...
Added comments to destroy and remaining
MCTPinch functions.
2015-09-02 10:20:49 -07:00
Shivam Dave
9d1841db55
[Mobile] Adjust pan/pinch check
...
Now check done for pan/pinch using
variables set during start of gesture.
Also added functions to touch amount
checks to make MCTPinch DRYer. Comments
regarding touch functions and added
variables/functions.
2015-09-02 10:18:40 -07:00
Shivam Dave
50d10639e1
[Mobile] Clean Up
...
Changed variable placement
for amount of distance changed allowed
for a pinch drag.
2015-09-02 09:23:25 -07:00
Shivam Dave
5a9619ce26
[Mobile] Clean Up
...
Removed unneeded variables passed into
MCTPlot functions.
2015-09-02 09:16:01 -07:00
Shivam Dave
42b7427816
[Mobile] Clean up
...
Renamed the setDR to be set
Dimensions. Also removed unneeded
calculateDistance function.
2015-09-02 09:14:54 -07:00
Shivam Dave
a1b37b1269
[Mobile] Clean Up
...
Added comments and cleaned up a bit
of the MCTPinch file.
2015-09-02 09:13:28 -07:00
Shivam Dave
c8ca1deb9b
[Mobile] Gestures
...
Fixed the range of values for
differentiating between pan and
pinch zoom to not assign the +2/-2
value to the variable.
2015-09-01 12:15:48 -07:00
Shivam Dave
5be6e90388
[Mobile] Clean Up
...
Commented out console calls from gesture
pinch/plot classes. Also allowed pan with
single finger.
2015-09-01 11:53:41 -07:00
Shivam Dave
814b04858a
[Mobile] Gestures
...
MCTPinch adjusted the touch check to help
differentiate between a two finger touch
vs a single singer pan.
2015-09-01 11:45:11 -07:00
Shivam Dave
aedbd3bd9b
[Mobile] Gestures
...
ZOOM_AMT set back to original
0.02, because .025 made zoom out
too fast.
2015-09-01 10:45:02 -07:00
Shivam Dave
aa4dbf7062
[Mobile] Gestures
...
Ratio used to check if
zoom should be in or out now
divides lastDistance/distance
instead of firstDistance/distance.
Therefore by comparing last distance,
user is able to zoom in and out on
same pinch without removing fingers.
2015-09-01 10:24:32 -07:00
Shivam Dave
5b95574673
[Mobile] Gestures
...
Slight adjustment to the ZOOM_AMT,
increased by .005 from .02 to .025.
2015-09-01 10:22:02 -07:00
Shivam Dave
2295be5e35
[Mobile] Gestures
...
Set the range of difference allowed between
the last distance and current distance to
differenciate panning and zooming. If
lastDistance - 2 <= currentDistance <= lastDistance + 2
than panning occurs, otherwise user is zooming.
BUG: The auto snap to right side of chart causes the
chart to resize narrower overtime and as user BOTH
zooms and pans more.
2015-09-01 10:17:53 -07:00
Shivam Dave
0ac6caa823
[Mobile] Gestures
...
Added a zoom amount variable
that is set at top of MCTPlot.
Sets the amount of zoom multiplier.
2015-09-01 10:14:51 -07:00
Shivam Dave
5e1dd04e6d
[Mobile] Pinch & Pan
...
Adjusted Pinch to check if
distance between 2 fingers
(rounded to whole number) is equal to
last distance or first distance, if this
is true, than will pan otherwise do
pinch zoom.
2015-08-31 16:25:44 -07:00
Shivam Dave
29df378851
[Mobile] Gestures
...
Removed firstTouchPan and use
firstTouch for both the pinch and the
single touch pan.
2015-08-31 16:22:43 -07:00
Shivam Dave
8511c957a0
[Mobile] Gestures
...
Adjusted the 0.03 'multiplier'
from 0.01, to allow faster zooming in
and out.
2015-08-31 15:48:11 -07:00
Shivam Dave
f4efc79539
[Mobile] Clean up
...
Removed call to console.
2015-08-31 15:47:19 -07:00
Shivam Dave
3926d6f617
[Mobile] Gesture
...
Zooms in at 0.01 amount (like last commit)
however the pinch's midpoint is the center
point at which the zoom focuses on.
2015-08-31 15:33:33 -07:00
Shivam Dave
d65e0f820f
[Mobile] Gestures
...
Currently zooms into center by narrowing each
dimension by 0.01
2015-08-31 14:47:02 -07:00
Shivam Dave
24fe419be4
[Mobile] Gestures
...
Slight clean up to MCTPinch.
2015-08-31 13:01:15 -07:00
Shivam Dave
3e2c3f913b
[Mobile] Gesture Check
...
Commented out panand trackes current 2
touches on pinch.
2015-08-28 16:48:54 -07:00
Shivam Dave
a45b09277e
[Mobile} Pan/Pinch
...
Cleaned up the variables.
2015-08-28 16:01:00 -07:00
Shivam Dave
bdf3e4d8a3
[Mobile] Pan/Pinch
...
On destoying the scope of
MCTPinch, all the listeners for
touch events on the element are
destroyed.
2015-08-28 15:39:16 -07:00
Shivam Dave
e4a2904213
[Mobile] Pan Gesture
...
Added pan gesture functionality
with one finger to MCTPlot.
2015-08-28 15:23:19 -07:00
Shivam Dave
f1d4e36c02
[Mobile] Gestures
...
Added an endTouch/Zoom to the
MCTPlot to mark when the user
has canceled/ended their touch
event.
2015-08-28 15:22:15 -07:00
Shivam Dave
b3792c21be
[Mobile] Gestures
...
Adjusted MCTPinch names to work
for both pan and pinch.
2015-08-28 15:20:46 -07:00