Generates a closed SVG path string for a filled area.
D3 parity: d3-shape/src/area.js — topline is drawn forward with the chosen curve, baseline is appended in reverse as straight segments, then closed.
[x, y1] points — the curved upper boundary
Constant baseline y, or per-point [x, y0] array (straight baseline)
Generates a closed SVG path string for a filled area.
D3 parity: d3-shape/src/area.js — topline is drawn forward with the chosen curve, baseline is appended in reverse as straight segments, then closed.