summaryrefslogtreecommitdiff
path: root/themes/blowfish/assets/lib/mermaid/line-87f517ef.js
diff options
context:
space:
mode:
authorChristoph Cullmann <christoph@cullmann.io>2024-06-26 21:44:28 +0200
committerChristoph Cullmann <christoph@cullmann.io>2024-06-26 21:44:28 +0200
commit58e2c9ae87f09dac79ecf962331ae2c51f4ba7f1 (patch)
treed819d1747427f81d1883a715ec60d13d575053e4 /themes/blowfish/assets/lib/mermaid/line-87f517ef.js
parentb1a7697b03cfb0143af78993387f758836e842bf (diff)
update the theme
Diffstat (limited to 'themes/blowfish/assets/lib/mermaid/line-87f517ef.js')
-rw-r--r--themes/blowfish/assets/lib/mermaid/line-87f517ef.js50
1 files changed, 50 insertions, 0 deletions
diff --git a/themes/blowfish/assets/lib/mermaid/line-87f517ef.js b/themes/blowfish/assets/lib/mermaid/line-87f517ef.js
new file mode 100644
index 0000000..8e82b21
--- /dev/null
+++ b/themes/blowfish/assets/lib/mermaid/line-87f517ef.js
@@ -0,0 +1,50 @@
+import { a as array } from "./array-b7dcf730.js";
+import { w as withPath, c as constant } from "./path-39bad7e2.js";
+import { n as curveLinear } from "./mermaid-dcacb631.js";
+function x(p) {
+ return p[0];
+}
+function y(p) {
+ return p[1];
+}
+function line(x$1, y$1) {
+ var defined = constant(true), context = null, curve = curveLinear, output = null, path = withPath(line2);
+ x$1 = typeof x$1 === "function" ? x$1 : x$1 === void 0 ? x : constant(x$1);
+ y$1 = typeof y$1 === "function" ? y$1 : y$1 === void 0 ? y : constant(y$1);
+ function line2(data) {
+ var i, n = (data = array(data)).length, d, defined0 = false, buffer;
+ if (context == null)
+ output = curve(buffer = path());
+ for (i = 0; i <= n; ++i) {
+ if (!(i < n && defined(d = data[i], i, data)) === defined0) {
+ if (defined0 = !defined0)
+ output.lineStart();
+ else
+ output.lineEnd();
+ }
+ if (defined0)
+ output.point(+x$1(d, i, data), +y$1(d, i, data));
+ }
+ if (buffer)
+ return output = null, buffer + "" || null;
+ }
+ line2.x = function(_) {
+ return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line2) : x$1;
+ };
+ line2.y = function(_) {
+ return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line2) : y$1;
+ };
+ line2.defined = function(_) {
+ return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line2) : defined;
+ };
+ line2.curve = function(_) {
+ return arguments.length ? (curve = _, context != null && (output = curve(context)), line2) : curve;
+ };
+ line2.context = function(_) {
+ return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line2) : context;
+ };
+ return line2;
+}
+export {
+ line as l
+};