octive-lean/widget/js/plot.js
Maximus Gorog db79eb3fde
Some checks are pending
Lean Action CI / build (push) Waiting to run
Initial commit: Lean 4 reimplementation of GNU Octave
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 09:40:46 -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;