ng-diagram-dangling-edges
Skill by synergycodes
Explains how to use free (unconnected) edge ends in ng-diagram, an Angular diagram library. Covers the danglingEdges config, drawing from a canvas point, and detaching or attaching edge ends from code.
Install ng-diagram-dangling-edges
Built from the published package, never by AI.
git clone --depth 1 https://github.com/synergycodes/ng-diagram /tmp/ng-diagram && mkdir -p ~/.claude/skills && cp -r /tmp/ng-diagram/skills/ng-diagram-dangling-edges ~/.claude/skills/ng-diagram-dangling-edgesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install ng-diagram-dangling-edges in Claude Code
git clone --depth 1 https://github.com/synergycodes/ng-diagram /tmp/ng-diagram && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ng-diagram/skills/ng-diagram-dangling-edges ~/.gemini/antigravity-cli/skills/ng-diagram-dangling-edgesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install ng-diagram-dangling-edges in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives guidance for dangling edges in ng-diagram, a diagram library for Angular. A dangling edge has one or both ends that are not connected to a node. The skill covers the model shape of a free end, switching on the danglingEdges config, and keeping edges dropped on empty canvas or whose node was deleted.
It also documents drawing from a canvas point with startLinkingFromPosition, detachEdge and attachEdge, the isDanglingEdge and hasFreeEndpoint helpers, the dangling CSS classes, and a symptom-to-fix table. It is aimed at developers building Angular diagrams with ng-diagram who need edges with open ends.
Written from the project's SKILL.md and checked against it.
What it can do
- Dangling edge modelDefines a free end as an empty string source or target, with no port and an anchor position.
- danglingEdges configTurns on keeping dropped draws and edges of deleted nodes, with optional shouldKeepOnDrop and shouldDetachOnNodeDelete callbacks.
- startLinkingFromPositionStarts an edge draw from a flow coordinate, for example from a canvas context menu.
- detachEdge and attachEdgeFrees or connects one end of an edge from code.
- Detection helpersUses isDanglingEdge, hasFreeEndpoint and getDanglingEndpoints to find loose ends.
- Dangling stylingApplies the dangling class to edges and paths so free ends can be styled differently.
What you need
- ng-diagram library, version 1.4.0 or later for the newer APIs
- Angular project using the ng-diagram component and provideNgDiagram()
Try asking
- Enable dangling edges in my ng-diagram config and keep dropped draws
- Add a context menu item that draws an edge from a canvas point
- Detach the target end of an edge in my ng-diagram model
Good to know
- danglingEdges.enabled defaults to false, so the user features stay off until it is set.
- The [config] binding is read only when the diagram engine is created; use updateConfig() at runtime.
- validateConnection is not called for drops on empty canvas.
- edgeDrawn is deprecated and never fires for dangling edges.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/ng-diagram-dangling-edges/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ng-diagram-dangling-edges
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ng-diagram-dangling-edges: common questions
What is a dangling edge in ng-diagram?
A dangling edge has one or both ends that are not connected to a node. Its free end uses an empty string for source or target, has no port, and has its anchor position in flow coordinates.
How do I keep edges when their node is deleted?
Set danglingEdges.enabled to true and detachOnNodeDelete to true. Use shouldDetachOnNodeDelete to decide per end whether the edge is kept or deleted.
Which version added the detach and attach APIs?
The source says detachEdge, attachEdge, startLinkingFromPosition, the helpers, detachedEdges and the CSS classes are since 1.4.0.
How do I install ng-diagram-dangling-edges?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ng-diagram-dangling-edges free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is ng-diagram-dangling-edges safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ng-diagram-dangling-edges?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
