function coordinateEvaluator(flatStyle, name, context) {
  if (!(name in flatStyle)) {
    return null;
  }
  const evaluator = buildExpression(flatStyle[name], NumberArrayType, context);
  return function (context) {
    const array = requireNumberArray(evaluator(context), name);
    if (array.length !== 2) {
      throw new Error(`Expected two numbers for ${name}`);
    }
    return array;
  };
}
@param {FlatStyle} flatStyle The flat style.
@param {string} name The property name.
@param {ParsingContext} context The parsing context.
@return {import('../../expr/cpu.js').CoordinateEvaluator?} The expression evaluator.