/** * @file Example component showcasing custom connection rendering with bezier handles. */ import * as React from "react"; import { NodeEditor } from "../../../../../NodeEditor"; import type { NodeEditorData } from "../../../../../types/core"; import { ExampleLayout } from "../../../shared/parts/ExampleLayout"; import { ExampleWrapper } from "../../../shared/parts/ExampleWrapper"; import { createInitialData, getUntypedNodeDefinitions } from "./nodes"; import styles from "./CustomConnectorExample.module.css"; export const CustomConnectorExample: React.FC = () => { const [data, setData] = React.useState(() => createInitialData()); return (
Cyan conduit core
Emerald bezier handles
Ember anchors
Magenta curvature pulse
); }; export default CustomConnectorExample; /** * Debug notes: * - Reviewed src/components/connection/ConnectionView.tsx to ensure the custom renderer preserves pointer handlers and selection state. * - Reviewed src/types/NodeDefinition.ts to double-check ConnectionRenderContext fields for handle positioning. */