UNPKG

carto

Version:

Mapnik Stylesheet Compiler

23 lines (17 loc) 439 B
(function(tree) { tree.ImageFilter = function ImageFilter(filter, args) { this.filter = filter; this.args = args || null; }; tree.ImageFilter.prototype = { is: 'imagefilter', ev: function() { return this; }, toString: function() { if (this.args) { return this.filter + '(' + this.args.join(',') + ')'; } else { return this.filter; } } }; })(require('../tree'));