@html-graph/html-graph 3.19.0 → 3.21.0
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/html-graph.d.ts +13 -2
- package/dist/html-graph.js +534 -456
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/html-graph.d.ts
CHANGED
|
@@ -415,8 +415,13 @@ declare interface DraggableNodesConfig {
|
|
|
415
415
|
readonly mouseUpEventVerifier?: MouseEventVerifier;
|
|
416
416
|
};
|
|
417
417
|
readonly gridSize?: number | null;
|
|
418
|
+
readonly nodeDragVerifier?: (payload: NodeDragPayload) => boolean;
|
|
418
419
|
readonly events?: {
|
|
419
420
|
readonly onNodeDrag?: (payload: NodeDragPayload) => void;
|
|
421
|
+
/**
|
|
422
|
+
* @deprecated
|
|
423
|
+
* use nodeDragVerifier instead
|
|
424
|
+
*/
|
|
420
425
|
readonly onBeforeNodeDrag?: (payload: NodeDragPayload) => boolean;
|
|
421
426
|
readonly onNodeDragFinished?: (payload: NodeDragPayload) => void;
|
|
422
427
|
};
|
|
@@ -638,6 +643,10 @@ export declare interface HorizontalEdgeParams {
|
|
|
638
643
|
readonly cycleSquareSide?: number | undefined;
|
|
639
644
|
readonly roundness?: number | undefined;
|
|
640
645
|
readonly detourDistance?: number | undefined;
|
|
646
|
+
/**
|
|
647
|
+
* @deprecated
|
|
648
|
+
* do not use
|
|
649
|
+
*/
|
|
641
650
|
readonly detourDirection?: number | undefined;
|
|
642
651
|
}
|
|
643
652
|
|
|
@@ -653,7 +662,6 @@ export declare class HorizontalEdgeShape implements StructuredEdgeShape {
|
|
|
653
662
|
private readonly arrowOffset;
|
|
654
663
|
private readonly roundness;
|
|
655
664
|
private readonly cycleSquareSide;
|
|
656
|
-
private readonly detourDirection;
|
|
657
665
|
private readonly detourDistance;
|
|
658
666
|
private readonly hasSourceArrow;
|
|
659
667
|
private readonly hasTargetArrow;
|
|
@@ -977,6 +985,10 @@ export declare interface VerticalEdgeParams {
|
|
|
977
985
|
readonly cycleSquareSide?: number | undefined;
|
|
978
986
|
readonly roundness?: number | undefined;
|
|
979
987
|
readonly detourDistance?: number | undefined;
|
|
988
|
+
/**
|
|
989
|
+
* @deprecated
|
|
990
|
+
* do not use
|
|
991
|
+
*/
|
|
980
992
|
readonly detourDirection?: number | undefined;
|
|
981
993
|
}
|
|
982
994
|
|
|
@@ -992,7 +1004,6 @@ export declare class VerticalEdgeShape implements StructuredEdgeShape {
|
|
|
992
1004
|
private readonly arrowOffset;
|
|
993
1005
|
private readonly roundness;
|
|
994
1006
|
private readonly cycleSquareSide;
|
|
995
|
-
private readonly detourDirection;
|
|
996
1007
|
private readonly detourDistance;
|
|
997
1008
|
private readonly hasSourceArrow;
|
|
998
1009
|
private readonly hasTargetArrow;
|