@crazyhappyone/auto-graph 0.2.8 → 0.2.11
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/dist/cli/index.cjs +507 -91
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +507 -91
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +507 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +507 -91
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -436,7 +436,8 @@ interface ConstraintSolverInput {
|
|
|
436
436
|
minSiblingGap?: number;
|
|
437
437
|
distributeContainedChildren?: boolean | "spread";
|
|
438
438
|
/** When "spread" or true, distribute children inside non-contract
|
|
439
|
-
* swimlane lane content boxes (Issue #60).
|
|
439
|
+
* swimlane lane content boxes (Issue #60). Opt-in: no redistribution
|
|
440
|
+
* occurs unless explicitly set. */
|
|
440
441
|
distributeSwimlaneChildren?: boolean | "spread";
|
|
441
442
|
boxes: ReadonlyMap<string, Box>;
|
|
442
443
|
/** Swimlanes for lane-aware child distribution (Issue #60). */
|
|
@@ -769,6 +770,12 @@ interface RouteEdgeInput {
|
|
|
769
770
|
hardObstacleIndex?: BoxSpatialIndex;
|
|
770
771
|
/** Maximum greedy rerouting iterations (default 5). */
|
|
771
772
|
maxRoutingAttempts?: number;
|
|
773
|
+
/** Corridor expansion margin in px for corner-graph prefilter (default 32).
|
|
774
|
+
* Larger values include more obstacles in the local routing window. */
|
|
775
|
+
corridorMargin?: number;
|
|
776
|
+
/** Route-length / direct-distance ratio above which a backtracking
|
|
777
|
+
* warning is emitted (default 20). */
|
|
778
|
+
maxBacktrackingRatio?: number;
|
|
772
779
|
}
|
|
773
780
|
interface RouteEdgeResult {
|
|
774
781
|
points: Point[];
|
|
@@ -806,7 +813,7 @@ interface SolveDiagramOptions {
|
|
|
806
813
|
minSiblingGap?: number;
|
|
807
814
|
distributeContainedChildren?: boolean | "spread";
|
|
808
815
|
/** When "spread", distribute children within non-contract swimlane
|
|
809
|
-
* lanes (Issue #60).
|
|
816
|
+
* lanes (Issue #60). Opt-in: no redistribution occurs unless explicitly set. */
|
|
810
817
|
distributeSwimlaneChildren?: boolean | "spread";
|
|
811
818
|
pageBounds?: {
|
|
812
819
|
width: number;
|
|
@@ -831,6 +838,15 @@ interface SolveDiagramOptions {
|
|
|
831
838
|
labelPlacement?: "beside" | "on-path";
|
|
832
839
|
/** Pixels to offset edge labels from the edge path when labelPlacement is "beside". */
|
|
833
840
|
labelOffset?: number;
|
|
841
|
+
/** Corridor expansion margin for corner-graph prefilter.
|
|
842
|
+
* - number: fixed px margin
|
|
843
|
+
* - "auto" (default): max(200, contentDiagonal * 0.3)
|
|
844
|
+
* Larger margins include more obstacles in the local routing window,
|
|
845
|
+
* improving path quality on dense diagrams at the cost of more vertices. */
|
|
846
|
+
corridorMargin?: number | "auto";
|
|
847
|
+
/** Route-length / direct-distance ratio above which a backtracking
|
|
848
|
+
* warning is emitted (default 20). */
|
|
849
|
+
maxBacktrackingRatio?: number;
|
|
834
850
|
}
|
|
835
851
|
interface PortShiftingOptions {
|
|
836
852
|
enabled?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -436,7 +436,8 @@ interface ConstraintSolverInput {
|
|
|
436
436
|
minSiblingGap?: number;
|
|
437
437
|
distributeContainedChildren?: boolean | "spread";
|
|
438
438
|
/** When "spread" or true, distribute children inside non-contract
|
|
439
|
-
* swimlane lane content boxes (Issue #60).
|
|
439
|
+
* swimlane lane content boxes (Issue #60). Opt-in: no redistribution
|
|
440
|
+
* occurs unless explicitly set. */
|
|
440
441
|
distributeSwimlaneChildren?: boolean | "spread";
|
|
441
442
|
boxes: ReadonlyMap<string, Box>;
|
|
442
443
|
/** Swimlanes for lane-aware child distribution (Issue #60). */
|
|
@@ -769,6 +770,12 @@ interface RouteEdgeInput {
|
|
|
769
770
|
hardObstacleIndex?: BoxSpatialIndex;
|
|
770
771
|
/** Maximum greedy rerouting iterations (default 5). */
|
|
771
772
|
maxRoutingAttempts?: number;
|
|
773
|
+
/** Corridor expansion margin in px for corner-graph prefilter (default 32).
|
|
774
|
+
* Larger values include more obstacles in the local routing window. */
|
|
775
|
+
corridorMargin?: number;
|
|
776
|
+
/** Route-length / direct-distance ratio above which a backtracking
|
|
777
|
+
* warning is emitted (default 20). */
|
|
778
|
+
maxBacktrackingRatio?: number;
|
|
772
779
|
}
|
|
773
780
|
interface RouteEdgeResult {
|
|
774
781
|
points: Point[];
|
|
@@ -806,7 +813,7 @@ interface SolveDiagramOptions {
|
|
|
806
813
|
minSiblingGap?: number;
|
|
807
814
|
distributeContainedChildren?: boolean | "spread";
|
|
808
815
|
/** When "spread", distribute children within non-contract swimlane
|
|
809
|
-
* lanes (Issue #60).
|
|
816
|
+
* lanes (Issue #60). Opt-in: no redistribution occurs unless explicitly set. */
|
|
810
817
|
distributeSwimlaneChildren?: boolean | "spread";
|
|
811
818
|
pageBounds?: {
|
|
812
819
|
width: number;
|
|
@@ -831,6 +838,15 @@ interface SolveDiagramOptions {
|
|
|
831
838
|
labelPlacement?: "beside" | "on-path";
|
|
832
839
|
/** Pixels to offset edge labels from the edge path when labelPlacement is "beside". */
|
|
833
840
|
labelOffset?: number;
|
|
841
|
+
/** Corridor expansion margin for corner-graph prefilter.
|
|
842
|
+
* - number: fixed px margin
|
|
843
|
+
* - "auto" (default): max(200, contentDiagonal * 0.3)
|
|
844
|
+
* Larger margins include more obstacles in the local routing window,
|
|
845
|
+
* improving path quality on dense diagrams at the cost of more vertices. */
|
|
846
|
+
corridorMargin?: number | "auto";
|
|
847
|
+
/** Route-length / direct-distance ratio above which a backtracking
|
|
848
|
+
* warning is emitted (default 20). */
|
|
849
|
+
maxBacktrackingRatio?: number;
|
|
834
850
|
}
|
|
835
851
|
interface PortShiftingOptions {
|
|
836
852
|
enabled?: boolean;
|