diff --git a/dist/carto.js b/dist/carto.js index 017d2d2..7dffd0d 100644 --- a/dist/carto.js +++ b/dist/carto.js @@ -57,6 +57,7 @@ var _mapnik_reference_latest = { "src", "dst", "src-over", + "source-over", // added for torque "dst-over", "src-in", "dst-in", @@ -191,6 +192,7 @@ var _mapnik_reference_latest = { "src", "dst", "src-over", + "source-over", // added for torque "dst-over", "src-in", "dst-in", @@ -3227,6 +3229,10 @@ tree.Dimension.prototype = { return this; }, + round: function() { + this.value = Math.round(this.value); + return this; + }, toColor: function() { return new tree.Color([this.value, this.value, this.value]); }, @@ -4112,6 +4118,13 @@ tree.Reference.validValue = function(env, selector, value) { } } else if (tree.Reference.selector(selector).type == 'expression') { return true; + } else if (tree.Reference.selector(selector).type === 'unsigned') { + if (value.value[0].is === 'float') { + value.value[0].round(); + return true; + } else { + return false; + } } else { if (tree.Reference.selector(selector).validate) { var valid = false;