Function registerEvaluator

  • Parameters

    • samplerName: any
    • expressionCompiler: any

      A function which when called must return an object with the form { eval: function }

    Returns ((meta: any, property: any, variables: any) => any)

      • (meta: any, property: any, variables: any): any
      • Evaluates meta[property] with variables

        • Compiles meta[property] if it wasn't compiled already (also with cache check)
        • Evaluates the resulting function with the merge of meta.scope and variables

        Example

        meta: {
        fn: 'x + 3',
        scope: { y: 3 }
        }
        property: 'fn'
        variables: { x: 3 }

        Returns

        The builtIn evaluator returns a number, the interval evaluator an array

        Parameters

        • meta: any
        • property: any
        • variables: any

        Returns any

Generated using TypeDoc