carto/lib/less/node/alpha.js

9 lines
211 B
JavaScript
Raw Normal View History

2010-02-28 14:01:43 +08:00
node.Alpha = function Alpha(val) {
2010-02-26 11:32:34 +08:00
this.value = val;
};
node.Alpha.prototype = {
toCSS: function () {
return "alpha(opacity=" + this.value.toCSS ? this.value.toCSS() : this.value + ")";
}
};