const pushToPolylines = function()

in custom-series/violin/src/index.ts [95:113]


    const pushToPolylines = function () {
      if (points.length > 1) {
        for (let j = points.length - 1; j >= 0; --j) {
          points.push([coord[0] * 2 - points[j][0], points[j][1]]);
        }
        const areaOpacity = params.itemPayload.areaOpacity as number | null;
        polylines.push({
          type: 'polygon',
          shape: {
            points: points.slice(),
          },
          style: {
            fill: api.visual('color'),
            opacity: areaOpacity == null ? 0.5 : areaOpacity,
          },
        });
      }
      points.length = 0;
    };