* Wraps an expression function with access to external parameters. * @constructor * @param {object} params - The parameters for this operator. * @param {function} params.expr - The expression function. The * function should accept both a datum and a parameter object. * This operator's value w
(params)
| 117044 | * This operator's value will be a new function that wraps the |
| 117045 | * expression function with access to this operator's parameters. |
| 117046 | */ function Expression(params) { |
| 117047 | (0, _vegaDataflow.Operator).call(this, null, update$4, params); |
| 117048 | this.modified(true); |
| 117049 | } |
| 117050 | (0, _vegaUtil.inherits)(Expression, (0, _vegaDataflow.Operator)); |
| 117051 | function update$4(_) { |
| 117052 | const expr = _.expr; |