Sha256: be67985f63f6846e11fdfb3c41129fdcae357a2b344a1d453fb232a25d476ebf
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
var Node = require("./node"); var Alpha = function (val) { this.value = val; }; Alpha.prototype = new Node(); Alpha.prototype.type = "Alpha"; Alpha.prototype.accept = function (visitor) { this.value = visitor.visit(this.value); }; Alpha.prototype.eval = function (context) { if (this.value.eval) { return new Alpha(this.value.eval(context)); } return this; }; Alpha.prototype.genCSS = function (context, output) { output.add("alpha(opacity="); if (this.value.genCSS) { this.value.genCSS(context, output); } else { output.add(this.value); } output.add(")"); }; module.exports = Alpha;
Version data entries
5 entries across 5 versions & 2 rubygems