Skip to content
Shapemetry

@huukhanhnguyen/model / lanes/textures/formula

lanes/textures/formula

compileAst()

compileAst(ast, params): Formula

AST-level form of compileFormula — lets evalValueArg compile a NESTED non-literal (an array element like [1, tilt, 2]) without re-parsing the whole input string as one formula.

Parameters

ast

Expression

params

Record<string, number>

Returns

Formula


compileFormula()

compileFormula(source, params): Formula

Parameters

source

string

params

Record<string, number>

Returns

Formula

Last updated: 📖 1 min readEdit on GitHub