entviz — @entviz/core & @entviz/react API
    Preparing search index...

    Function Entviz

    @entviz/react — React components over the certified @entviz/core renderer.

    Ships raw .ts source (no build step); authored with React.createElement so it carries no JSX-transform requirement onto consumers.

    • Renders the entviz inline. Injecting the SVG as raw HTML is safe ONLY because the markup is produced entirely by @entviz/core: it emits a fixed set of SVG shapes with numeric attributes, XML-escapes every text node (the type label and the user note), and never interpolates caller-supplied markup, URLs, or event-handler attributes. The value/note props are escaped by the renderer, not trusted here. If this component is ever changed to embed caller-provided markup, this injection MUST be reconsidered (sanitize, or drop it) — that would reintroduce an XSS vector this wrapper currently does not have. The root carries a viewBox, so the entviz scales responsively.

      Parameters

      Returns ReactElement