| 8818 | ); |
| 8819 | } |
| 8820 | function od(e) { |
| 8821 | let { legendConfig: t, legendType: n, orient: i, legend: r } = e; |
| 8822 | return ( |
| 8823 | r.direction ?? |
| 8824 | t[n ? "gradientDirection" : "symbolDirection"] ?? |
| 8825 | (function (e, t) { |
| 8826 | switch (e) { |
| 8827 | case "top": |
| 8828 | case "bottom": |
| 8829 | return "horizontal"; |
| 8830 | case "left": |
| 8831 | case "right": |
| 8832 | case "none": |
| 8833 | case void 0: |
| 8834 | return; |
| 8835 | default: |
| 8836 | return "gradient" === t ? "horizontal" : void 0; |
| 8837 | } |
| 8838 | })(i, n) |
| 8839 | ); |
| 8840 | } |
| 8841 | function ad(e, t, n, i) { |
| 8842 | return { signal: `clamp(${e.getSizeSignalRef(t).signal}, ${n}, ${i})` }; |
| 8843 | } |