Commit Graph

722 Commits

Author SHA1 Message Date
Raul Ochoa
ac3df42b15 This gets interesting: renderTile defers the rendering until all icons are loaded 2015-03-04 11:05:26 +01:00
Raul Ochoa
c0131cdebf Icon preloading now downloads a set of URLs so if there are duplicated URLs it won't request the same image multiple times
Image loading can be provided and defaults to previous behaviour: client side `src = url`.
2015-03-04 11:03:46 +01:00
Raul Ochoa
656d082568 Trigger allIconsLoaded when there are no icons to load 2015-03-04 10:54:30 +01:00
Raul Ochoa
2ceeba0d82 Renderer.renderTile now accepts an optional {Function} callback parameter that will be called when it finish rendering 2015-03-04 10:49:52 +01:00
Raul Ochoa
f2a4c22dc7 Make torque_filters accept options param to add canvasClass 2015-03-04 10:46:02 +01:00
Andy Eschbacher
8bc49bcb3e added events -- tentative 2015-03-03 12:35:30 -05:00
Francisco Dans
043e7b0090 adds dists for 2.10.1 2015-03-02 17:35:13 +01:00
Francisco Dans
6c094e3ba9 bumps version to 2.10.1 2015-03-02 17:32:56 +01:00
Francisco Dans
cfe01c5dbe reflects changes for 2.10.1 in NEWS 2015-03-02 17:32:04 +01:00
Francisco Dans
7e43d0ecee Merge branch 'master' of github.com:CartoDB/torque 2015-03-02 17:26:15 +01:00
Francisco Dans
6ba2e42625 Merge pull request #138 from CartoDB/onesteppause
Makes sure that animation is paused when steps === one
2015-03-02 17:19:43 +01:00
Francisco Dans
ef42324b29 documents loop and cartocss options 2015-03-02 16:12:37 +01:00
javi santana
d744c9a497 Merge pull request #141 from abenrob/loop-pause-max
animation loop option to pause on max frame, not reset to beginning
2015-03-02 15:09:58 +01:00
abenrob
fa8a9bbc2b removed uneccesary frame update request 2015-03-02 14:09:09 +01:00
Francisco Dans
b605bd56ce Merge pull request #142 from CartoDB/anchor-middle
Fixes points position according to resolution
2015-03-02 14:07:02 +01:00
Francisco Dans
9a1571d79e precalculates anchor 2015-03-02 14:00:25 +01:00
Francisco Dans
dbc3c1c8f3 reverts navy_leaflet to norml 2015-03-02 12:46:20 +01:00
Francisco Dans
5006d6495d adds half the resolution size to x and y positions 2015-03-02 12:43:17 +01:00
Francisco Dans
d81bb5855c temporarily applies changes to leaflet examples 2015-03-02 12:18:38 +01:00
abenrob
d5e8007dce animation loop option to pause on max frame, not reset to beginning 2015-03-02 11:56:25 +01:00
Francisco Dans
767fae6272 adds start in animator rescale 2015-03-02 11:43:18 +01:00
Francisco Dans
c524df2f01 comments out cumulative in example 2015-02-27 10:32:08 +01:00
Francisco Dans
6ded5dafc9 makes isopleth work again in spito of lack of movement 2015-02-27 10:31:23 +01:00
Francisco Dans
aa79eeda20 adds getballindices 2015-02-26 18:19:48 +01:00
Francisco Dans
5a27243f07 makes sure that animation is paused when steps is one 2015-02-26 16:10:18 +01:00
Francisco Dans
dc7516e9e6 modifies navy example to try renderer 2015-02-26 16:07:39 +01:00
Francisco Dans
3f9a8f4a18 full invalidation only on animation end 2015-02-26 16:06:39 +01:00
Francisco Dans
deacb1ae00 adds repeat checks in isopleth 2015-02-26 16:05:58 +01:00
Francisco Dans
83b6b3d058 invalidates layers a bit smarter 2015-02-26 16:05:25 +01:00
Francisco Dans
a8a8d79d86 caches balls 2015-02-26 16:03:20 +01:00
Francisco Dans
204df7829d makes sure that animation is paused when steps is one 2015-02-26 16:02:06 +01:00
Francisco Dans
98a37771ca gets rid of unnecessary stuff in isopleth 2015-02-25 18:10:31 +01:00
Francisco Dans
6a0fe4beb7 removes map_range 2015-02-25 18:08:33 +01:00
Francisco Dans
68ff448f78 invalidates pointarray when not cumulative 2015-02-25 18:02:41 +01:00
Francisco Dans
171a5b6e0c optimizes horizontalLine 2015-02-25 18:01:38 +01:00
Francisco Dans
7f72ae01af conveys draw calls in flush method 2015-02-25 12:47:55 +01:00
Francisco Dans
8e8ae30dc8 adds isInvalid to check for layers with wrong values 2015-02-25 12:47:12 +01:00
Francisco Dans
3fe1c60d61 simplifies invalidate 2015-02-25 12:46:45 +01:00
Francisco Dans
51fc104793 changes name to pointLayer 2015-02-25 12:46:26 +01:00
Francisco Dans
d048652ba9 optimizes drawnTemp a bit more 2015-02-25 12:45:45 +01:00
Francisco Dans
9479b214fa initialises layers JIT, instead of in the constructor 2015-02-25 12:42:21 +01:00
Francisco Dans
43e6cb7a37 invalidates the canvas properly 2015-02-25 12:40:43 +01:00
Francisco Dans
4f41136d24 calls draw at the end of each tile render instead of each canvas 2015-02-24 12:12:04 +01:00
Francisco Dans
a36fd0936a comments out comp ops 2015-02-24 12:11:37 +01:00
Francisco Dans
bc37a754a8 constructs the ballRenderer JIT 2015-02-24 12:11:04 +01:00
Francisco Dans
7ad4f21cc7 removes normalisation to 255 since native already does that 2015-02-24 12:10:21 +01:00
Francisco Dans
ea7f4efb23 checks for repeated lines using a simple array, optimizing the hell of horizontalLine 2015-02-24 12:09:46 +01:00
Francisco Dans
169de36bcf uses only canvas object, renames it to avoid future problems 2015-02-24 12:08:11 +01:00
Francisco Dans
4b240a4485 passes position on renderTile 2015-02-24 12:07:11 +01:00
Francisco Dans
d7d7396ba8 properly invalidates ballrenderer with each tile 2015-02-24 12:06:47 +01:00