MCPcopy
hub / github.com/snarktank/ralph / createNoteNode

Function createNoteNode

flowchart/src/App.tsx:211–226  ·  view source on GitHub ↗
(note: typeof notes[0], visible: boolean, position?: { x: number; y: number })

Source from the content-addressed store, hash-verified

209}
210
211function createNoteNode(note: typeof notes[0], visible: boolean, position?: { x: number; y: number }): Node {
212 return {
213 id: note.id,
214 type: 'note',
215 position: position || positions[note.id],
216 data: { content: note.content, color: note.color },
217 style: {
218 opacity: visible ? 1 : 0,
219 transition: 'opacity 0.5s ease-in-out',
220 pointerEvents: visible ? 'auto' : 'none',
221 },
222 draggable: true,
223 selectable: false,
224 connectable: false,
225 };
226}
227
228function App() {
229 const [visibleCount, setVisibleCount] = useState(1);

Callers 1

getNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected