Grapheditor-Bibliotheken integrieren
Verbindet visuelle Graphwerkzeuge mit sauberen Workflowdaten und stabilen Bearbeitungs- und Layoutabläufen.
graph-editor-library-integration
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze diesen Skill für eigene Knoten, automatische Anordnung oder zusätzliche Editorsteuerung.
Wobei hilft er dir?
- Trennt gespeicherte Daten von temporären Zieh- und Messfeldern.
- Verhindert unbeabsichtigtes Verschieben beim Bedienen von Knoteneingaben.
- Wendet Layout als deterministische rückgängig machbare Änderung an.
Das könntest du fragen
Ergänze Auto-Layout ohne Änderungen am Speicherformat, mit nutzbarer Textauswahl und einem Rückgängig-Schritt. Ordne einen gespeicherten Graphen automatisch an und prüfe die Rücknahme dieses Layoutschritts. Kennungen und Verbindungen bleiben unverändert; Textbearbeitung bleibt getrennt nachvollziehbar.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
Graph Editor Library Integration
Use this skill when integrating or extending a visual node-graph library (such as @xyflow/react / React Flow, @vue-flow/core, @xyflow/svelte, or Rete.js) and graph auto-layout engines (dagre, elkjs).
Adapt to the Existing Graph Engine & Framework
- Keep Domain Workflow State Clean of Library-Internal Runtime Fields:
- Node-graph libraries attach ephemeral measurement and dragging properties (
measured,dragging,selected, internal handle bounds) to node objects. - Maintain a clean adapter boundary between your persisted
WorkflowDefinition+WorkflowLayoutmodel and the library's view-state nodes/edges so internal library fields are never leaked into saved workflow JSON or version hashes.
- Node-graph libraries attach ephemeral measurement and dragging properties (
- Memoize Custom Nodes and Edge Components:
- In React Flow / Vue Flow, wrap custom node and edge renderers (
memo/markRaw) and definenodeTypesandedgeTypesoutside the render function so panning or dragging one node never unmounts and remounts every node on the canvas. - Inside custom node views, mark interactive form inputs (
nodrag,nopan,nowheelclasses) so typing, selecting text, or scrolling a dropdown inside a node does not accidentally drag or zoom the canvas.
- In React Flow / Vue Flow, wrap custom node and edge renderers (
Auto-Layout Engines (Dagre / ELK.js) & Viewport Polish
- Deterministic Hierarchical Layout:
- When auto-arranging a workflow (
TBtop-to-bottom orLRleft-to-right) or inserting a new step via keyboard/button between two connected nodes, compute positions using measured node dimensions viadagreorelkjsinside a single undoable layout transaction.
- When auto-arranging a workflow (
- Accessible Focus & Viewport Navigation:
- Enable keyboard focusability (
nodesFocusable,edgesFocusable,autoPanOnNodeFocus), provide a minimap / fit-view control, and allow clicking a step in the run timeline or validation error list to smoothly center (setCenter/fitView) that node on the canvas.
- Enable keyboard focusability (
Checklist
- Are
nodeTypesandedgeTypesdefined stably and memoized so panning/dragging does not remount custom nodes? - Are interactive inputs inside custom nodes marked with
nodrag/nowheelso editing node fields never drags the canvas? - Are library-internal runtime properties stripped before serializing
WorkflowDefinitionand computing version hashes? - Does auto-layout (
dagre/elkjs) arrange nodes cleanly as a single undoable layout update without altering execution semantics?
Enthaltene Dateien 1
SKILL.md
Über dieses Skill-Paket
graph-editor-library-integration
graph-editor-library-integration: Entwickelt Workflow-Editoren und Ausführungsmodelle für konsistente Verzweigungen, Freigaben, Wartezustände, Wiederholungen und versionierte Änderungen.
Weniger anzeigen
graph-editor-library-integration
graph-editor-library-integration: Entwickelt Workflow-Editoren und Ausführungsmodelle für konsistente Verzweigungen, Freigaben, Wartezustände, Wiederholungen und versionierte Änderungen.
Enthält den vollständigen Skill und seine Begleitdateien (1 Dateien). Der genaue, ursprünglich verfasste Anwendungsbereich bleibt unten erhalten.
Ursprüngliche Skill-Beschreibung (Quellsprache)
Use when evaluating, integrating, and extending node-graph editor libraries (XYFlow / React Flow, Vue Flow, Svelte Flow, Rete.js) with auto-layout engines (ELK, Dagre) and custom nodes.
Installiere den Skill, prüfe seine Quelle und Vertrauenseinstellungen und aktiviere ihn für das passende Projekt oder den Agenten.
Voraussetzungen
- Orqestria auf deinem Computer installiert.
