carto/lib/mess/tree/alpha.js

15 lines
305 B
JavaScript
Raw Normal View History

(function(tree) {
tree.Alpha = function(val) {
2010-02-26 11:32:34 +08:00
this.value = val;
};
tree.Alpha.prototype = {
toCSS: function() {
return 'alpha(opacity=' +
(this.value.toCSS ? this.value.toCSS() : this.value) + ')';
},
eval: function() { return this }
2010-02-26 11:32:34 +08:00
};
2011-01-06 03:23:28 +08:00
})(require('mess/tree'));