@love-rox/kumihimo-react
v0.9.3
Published
React component and hook rendering kumihimo AV signal flow diagrams (系統図)
Maintainers
Readme
@love-rox/kumihimo-react
React component and hook for kumihimo — AV signal flow diagrams (系統図) written as text.
pnpm add @love-rox/kumihimo-reactimport { Kumihimo, useKumihimo } from '@love-rox/kumihimo-react';
<Kumihimo source={src} theme="dark" fallback={<Spinner />} onDiagnostics={report} />;
const { svg, diagram, diagnostics, pending, error } = useKumihimo(src);Compiling is asynchronous, so the previous diagram stays on screen while a new one is produced and a slow earlier compile can never overwrite a newer one. Without both, live editing flickers and can show a stale drawing.
See kumihimo.love-rox.cc for the guide and an editor you can type into, or the project README for the other packages.
License
MIT © SASAGAWA Kiyoshi
