carto/lib/mess/tree/alpha.js

15 lines
309 B
JavaScript
Raw Normal View History

(function (tree) {
2010-06-19 13:51:26 +08:00
tree.Alpha = function (val) {
2010-02-26 11:32:34 +08:00
this.value = val;
};
tree.Alpha.prototype = {
2010-02-26 11:32:34 +08:00
toCSS: function () {
2010-06-21 10:18:04 +08:00
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'));