@ngx-km/path-finding 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @ngx-km/path-finding
2
+
3
+ Obstacle-aware path routing service for Angular graph visualization.
4
+
5
+ ## Features
6
+
7
+ - A* pathfinding for orthogonal paths
8
+ - Obstacle avoidance (routes around nodes)
9
+ - Dynamic connection point selection
10
+ - Connection point distribution (no overlapping)
11
+ - Path midpoint calculation
12
+ - Support for bezier and straight line paths
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ npm install @ngx-km/path-finding
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```typescript
23
+ import { PathFindingService } from '@ngx-km/path-finding';
24
+
25
+ @Component({...})
26
+ export class MyComponent {
27
+ private pathFinding = inject(PathFindingService);
28
+
29
+ findPath(source, target, obstacles) {
30
+ return this.pathFinding.findPath(source, target, obstacles);
31
+ }
32
+ }
33
+ ```
34
+
35
+ ## Running unit tests
36
+
37
+ ```bash
38
+ nx test ngx-path-finding
39
+ ```