dist file

This commit is contained in:
javi 2014-02-25 09:53:20 +01:00
parent 5c8963f02d
commit c288d09dcc

13
dist/carto.js vendored
View File

@ -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;