1 |
- import{a as m}from"./array-BKyUJesY.js";import{aT as d,Y as o,o as v}from"./index-BPCszWWQ.js";function b(t){return t[0]}function w(t){return t[1]}function L(t,u){var s=o(!0),i=null,l=v,r=null,h=d(e);t=typeof t=="function"?t:t===void 0?b:o(t),u=typeof u=="function"?u:u===void 0?w:o(u);function e(n){var f,p=(n=m(n)).length,a,c=!1,g;for(i==null&&(r=l(g=h())),f=0;f<=p;++f)!(f<p&&s(a=n[f],f,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(a,f,n),+u(a,f,n));if(g)return r=null,g+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}export{L as l};
|