crosslang/octive-lean/widget/js/plot.js
Maximus Gorog 6592cd058d Add 'octive-lean/' from commit '4b6fcec565a170d7029d4ccba21be2ecd0512d13'
git-subtree-dir: octive-lean
git-subtree-mainline: fd3d42ae33
git-subtree-split: 4b6fcec565
2026-05-12 02:59:14 -06:00

14 lines
364 B
JavaScript

window;
import { jsx as h } from "react/jsx-runtime";
/** Renders pre-built SVG markup directly into the infoview.
* Props: { svgStr: string }
*/
function PlotDisplay({ svgStr }) {
return h("div", {
dangerouslySetInnerHTML: { __html: svgStr },
style: { background: "#f8f8f8", padding: "4px", userSelect: "none" }
});
}
export default PlotDisplay;