carto/lib/less/node/alpha.js

9 lines
213 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 () {
2010-02-28 14:03:22 +08:00
return "alpha(opacity=" + (this.value.toCSS ? this.value.toCSS() : this.value + ")");
2010-02-26 11:32:34 +08:00
}
};