UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

40 lines (39 loc) 904 B
import { jsx as h } from "react/jsx-runtime"; import { SynapsePlot as L } from "../../Plot/SynapsePlot.js"; const t = (o, e) => o ? o.toLowerCase() == "true" : e ?? !1, g = (o) => { const { query: e, title: r, xtitle: n, ytitle: p, type: y, xaxistype: l, showlegend: i, barmode: s, horizontal: d, displayModebar: c } = o, w = t(i, !0), x = t(d, !1), f = t(c, !1), m = s ? s.toLowerCase() : void 0, u = y.toLowerCase(); let a; return l && (a = l.toLowerCase()), /* @__PURE__ */ h( L, { synapsePlotWidgetParams: { query: e, xtitle: n, ytitle: p, type: u, barmode: m, displayModeBar: f, horizontal: x, showlegend: w, title: r, xaxistype: a } } ); }; export { g as MarkdownSynapsePlot, g as default }; //# sourceMappingURL=MarkdownSynapsePlot.js.map