ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
34 lines (33 loc) • 1.28 kB
JavaScript
import { n as o, t as d } from "./path-Bja5PoYn.js";
import { t as h } from "./array-By5736M5.js";
import { rt as v } from "./chunk-ICXQ74PX-DR8rL-xF.js";
function b(t) {
return t[0];
}
function w(t) {
return t[1];
}
function S(t, u) {
var a = o(!0), i = null, l = v, r = null, m = 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, g = (n = h(n)).length, s, c = !1, p;
for (i == null && (r = l(p = m())), f = 0; f <= g; ++f)
!(f < g && a(s = n[f], f, n)) === c && ((c = !c) ? r.lineStart() : r.lineEnd()), c && r.point(+t(s, f, n), +u(s, f, n));
if (p) return r = null, p + "" || 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 ? (a = typeof n == "function" ? n : o(!!n), e) : a;
}, 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 {
S as t
};