From 449be47e916b4175ee64624b22ebd8587625baa6 Mon Sep 17 00:00:00 2001 From: javi Date: Tue, 21 Jan 2014 10:17:27 +0100 Subject: [PATCH] dist file --- dist/carto.js | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/dist/carto.js b/dist/carto.js index 57255e8..017d2d2 100644 --- a/dist/carto.js +++ b/dist/carto.js @@ -72,6 +72,7 @@ var _mapnik_reference_latest = { "overlay", "darken", "lighten", + "lighter", // added for torque "color-dodge", "color-burn", "hard-light", @@ -205,6 +206,7 @@ var _mapnik_reference_latest = { "overlay", "darken", "lighten", + "lighter", // added for torque "color-dodge", "color-burn", "hard-light", @@ -1688,6 +1690,53 @@ var _mapnik_reference_latest = { "type": "expression", "default-value": "0" } + }, + "torque": { + "-torque-frame-count": { + "css": "-torque-frame-count", + "default-value": "128", + "type":"float", + "default-meaning": "the data is broken into 128 time frames", + "doc": "Number of animation steps/frames used in the animation. If the data contains a fewere number of total frames, the lesser value will be used." + }, + "-torque-resolution": { + "css": "-torque-resolution", + "default-value": "2", + "type":"float", + "default-meaning": "", + "doc": "Spatial resolution in pixels. A resolution of 1 means no spatial aggregation of the data. Any other resolution of N results in spatial aggregation into cells of NxN pixels. The value N must be power of 2" + }, + "-torque-animation-duration": { + "css": "-torque-animation-duration", + "default-value": "30", + "type":"float", + "default-meaning": "the animation lasts 30 seconds", + "doc": "Animation duration in seconds" + }, + "-torque-aggregation-function": { + "css": "-torque-aggregation-function", + "default-value": "count(cartodb_id)", + "type": "string", + "default-meaning": "the value for each cell is the count of points in that cell", + "doc": "A function used to calculate a value from the aggregate data for each cell. See -torque-resolution" + }, + "-torque-time-attribute": { + "css": "-torque-time-attribute", + "default-value": "time", + "type": "string", + "default-meaning": "the data column in your table that is of a time based type", + "doc": "The table column that contains the time information used create the animation" + }, + "-torque-data-aggregation": { + "css": "-torque-data-aggregation", + "default-value": "linear", + "type": [ + "linear", + "cumulative" + ], + "default-meaning": "previous values are discarded", + "doc": "A linear animation will discard previous values while a cumulative animation will accumulate them until it restarts" + } } }, "colors": { @@ -4811,7 +4860,7 @@ tree.Value.prototype.toJS = function() { //var v = this.value[0].value[0]; var val = this.eval() var v = val.toString(); - if(val.is === "color" || val.is === 'uri' || val.is === 'string') { + if(val.is === "color" || val.is === 'uri' || val.is === 'string' || val.is === 'keyword') { v = "'" + v + "'"; } else if (val.is === 'field') { // replace [varuable] by ctx['variable']