carto/lib/less/tree/alpha.js

14 lines
265 B
JavaScript

(function (tree) {
tree.Alpha = function Alpha(val) {
this.value = val;
};
tree.Alpha.prototype = {
toCSS: function () {
return "alpha(opacity=" + this.value.toCSS() + ")";
},
eval: function () { return this }
};
})(require('less/tree'));