@joint/react
Version:
React bindings and hooks for JointJS to build interactive diagrams and graphs.
31 lines (15 loc) • 534 B
text/mdx
import { Meta, Story, Canvas, Controls, Markdown } from '@storybook/blocks';
import * as Stories from './story';
import Code from './code?raw';
<Meta of={Stories} />
This example demonstrates how to rotate nodes in the diagram. You can rotate a node by dragging its rotation handle.
Below is a live demo of the node rotation feature. Try it out by interacting with the rotation handle.
<Canvas of={Stories.Default} />
<Markdown>
{`\`\`\`tsx
${Code}
\`\`\``}
</Markdown>