@html-graph/html-graph 8.22.0 → 8.24.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 +77 -1
- package/dist/html-graph.js +438 -128
- package/dist/html-graph.min.js +722 -504
- package/dist/html-graph.min.umd.cjs +1 -1
- package/dist/html-graph.umd.cjs +438 -127
- package/package.json +1 -1
package/dist/html-graph.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export declare interface BezierEdgeParams {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
export declare class BezierEdgeShape implements StructuredEdgeShape {
|
|
129
|
+
readonly element: SVGSVGElement;
|
|
129
130
|
readonly svg: SVGSVGElement;
|
|
130
131
|
readonly group: SVGGElement;
|
|
131
132
|
readonly line: SVGPathElement;
|
|
@@ -353,6 +354,7 @@ export declare interface DirectEdgeParams {
|
|
|
353
354
|
}
|
|
354
355
|
|
|
355
356
|
export declare class DirectEdgeShape implements StructuredEdgeShape {
|
|
357
|
+
readonly element: SVGSVGElement;
|
|
356
358
|
readonly svg: SVGSVGElement;
|
|
357
359
|
readonly group: SVGGElement;
|
|
358
360
|
readonly line: SVGPathElement;
|
|
@@ -448,11 +450,16 @@ export declare interface EdgeRenderPort {
|
|
|
448
450
|
}
|
|
449
451
|
|
|
450
452
|
export declare interface EdgeShape {
|
|
453
|
+
/**
|
|
454
|
+
* @deprecated
|
|
455
|
+
* use element instead
|
|
456
|
+
*/
|
|
451
457
|
readonly svg: SVGSVGElement;
|
|
458
|
+
readonly element: SVGSVGElement;
|
|
452
459
|
render(params: EdgeRenderParams): void;
|
|
453
460
|
}
|
|
454
461
|
|
|
455
|
-
declare type EdgeShapeConfig = BezierEdgeShapeConfig | StraightEdgeShapeConfig | HorizontalEdgeShapeConfig | VerticalEdgeShapeConfig | DirectEdgeShapeConfig | EdgeShapeFactory;
|
|
462
|
+
declare type EdgeShapeConfig = BezierEdgeShapeConfig | StraightEdgeShapeConfig | HorizontalEdgeShapeConfig | VerticalEdgeShapeConfig | DirectEdgeShapeConfig | OrthogonalEdgeShapeConfig | EdgeShapeFactory;
|
|
456
463
|
|
|
457
464
|
declare type EdgeShapeFactory = (edgeId: Identifier) => EdgeShape;
|
|
458
465
|
|
|
@@ -663,6 +670,10 @@ declare class GraphStore {
|
|
|
663
670
|
private removeEdgeInternal;
|
|
664
671
|
}
|
|
665
672
|
|
|
673
|
+
/**
|
|
674
|
+
* @deprecated
|
|
675
|
+
* use OrthogonalEdgeShape instead
|
|
676
|
+
*/
|
|
666
677
|
export declare interface HorizontalEdgeParams {
|
|
667
678
|
readonly color?: string | undefined;
|
|
668
679
|
readonly width?: number | undefined;
|
|
@@ -676,7 +687,12 @@ export declare interface HorizontalEdgeParams {
|
|
|
676
687
|
readonly detourDistance?: number | undefined;
|
|
677
688
|
}
|
|
678
689
|
|
|
690
|
+
/**
|
|
691
|
+
* @deprecated
|
|
692
|
+
* use OrthogonalEdgeShape instead
|
|
693
|
+
*/
|
|
679
694
|
export declare class HorizontalEdgeShape implements StructuredEdgeShape {
|
|
695
|
+
readonly element: SVGSVGElement;
|
|
680
696
|
readonly svg: SVGSVGElement;
|
|
681
697
|
readonly group: SVGGElement;
|
|
682
698
|
readonly line: SVGPathElement;
|
|
@@ -698,6 +714,10 @@ export declare class HorizontalEdgeShape implements StructuredEdgeShape {
|
|
|
698
714
|
render(params: EdgeRenderParams): void;
|
|
699
715
|
}
|
|
700
716
|
|
|
717
|
+
/**
|
|
718
|
+
* @deprecated
|
|
719
|
+
* use type: "orthogonal" instead
|
|
720
|
+
*/
|
|
701
721
|
declare type HorizontalEdgeShapeConfig = {
|
|
702
722
|
readonly type: "horizontal";
|
|
703
723
|
} & HorizontalEdgeParams;
|
|
@@ -730,6 +750,7 @@ export declare interface InteractiveEdgeParams {
|
|
|
730
750
|
|
|
731
751
|
export declare class InteractiveEdgeShape implements StructuredEdgeShape {
|
|
732
752
|
private readonly baseEdge;
|
|
753
|
+
readonly element: SVGSVGElement;
|
|
733
754
|
readonly svg: SVGSVGElement;
|
|
734
755
|
readonly group: SVGGElement;
|
|
735
756
|
readonly line: SVGPathElement;
|
|
@@ -817,6 +838,7 @@ export declare class MidpointEdgeShape implements StructuredEdgeShape {
|
|
|
817
838
|
readonly sourceArrow: SVGPathElement | null;
|
|
818
839
|
readonly targetArrow: SVGPathElement | null;
|
|
819
840
|
readonly onAfterRender: EventHandler<StructuredEdgeRenderModel>;
|
|
841
|
+
readonly element: SVGSVGElement;
|
|
820
842
|
readonly svg: SVGSVGElement;
|
|
821
843
|
constructor(baseShape: StructuredEdgeShape, midpointElement: SVGElement);
|
|
822
844
|
render(params: EdgeRenderParams): void;
|
|
@@ -835,6 +857,46 @@ export declare interface NextLayerNodesResolverParams {
|
|
|
835
857
|
|
|
836
858
|
export declare type NodeElement = HTMLElement | SVGSVGElement;
|
|
837
859
|
|
|
860
|
+
export declare interface OrthogonalEdgeParams {
|
|
861
|
+
readonly color?: string | undefined;
|
|
862
|
+
readonly width?: number | undefined;
|
|
863
|
+
readonly arrowLength?: number | undefined;
|
|
864
|
+
readonly arrowRenderer?: ArrowRendererConfig | undefined;
|
|
865
|
+
readonly arrowOffset?: number | undefined;
|
|
866
|
+
readonly hasSourceArrow?: boolean | undefined;
|
|
867
|
+
readonly hasTargetArrow?: boolean | undefined;
|
|
868
|
+
readonly cycleSquareSide?: number | undefined;
|
|
869
|
+
readonly roundness?: number | undefined;
|
|
870
|
+
readonly detourDistance?: number | undefined;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
export declare class OrthogonalEdgeShape implements StructuredEdgeShape {
|
|
874
|
+
readonly element: SVGSVGElement;
|
|
875
|
+
readonly svg: SVGSVGElement;
|
|
876
|
+
readonly group: SVGGElement;
|
|
877
|
+
readonly line: SVGPathElement;
|
|
878
|
+
readonly sourceArrow: SVGPathElement | null;
|
|
879
|
+
readonly targetArrow: SVGPathElement | null;
|
|
880
|
+
readonly onAfterRender: EventHandler<StructuredEdgeRenderModel>;
|
|
881
|
+
private readonly arrowLength;
|
|
882
|
+
private readonly arrowOffset;
|
|
883
|
+
private readonly roundness;
|
|
884
|
+
private readonly cycleSquareSide;
|
|
885
|
+
private readonly detourDistance;
|
|
886
|
+
private readonly hasSourceArrow;
|
|
887
|
+
private readonly hasTargetArrow;
|
|
888
|
+
private readonly pathShape;
|
|
889
|
+
private readonly createCyclePath;
|
|
890
|
+
private readonly createDetourPath;
|
|
891
|
+
private readonly createLinePath;
|
|
892
|
+
constructor(params?: OrthogonalEdgeParams);
|
|
893
|
+
render(params: EdgeRenderParams): void;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
declare type OrthogonalEdgeShapeConfig = {
|
|
897
|
+
readonly type: "orthogonal";
|
|
898
|
+
} & OrthogonalEdgeParams;
|
|
899
|
+
|
|
838
900
|
export declare interface PatchMatrixRequest {
|
|
839
901
|
readonly scale?: number | undefined;
|
|
840
902
|
readonly x?: number | undefined;
|
|
@@ -929,6 +991,7 @@ export declare interface StraightEdgeParams {
|
|
|
929
991
|
}
|
|
930
992
|
|
|
931
993
|
export declare class StraightEdgeShape implements StructuredEdgeShape {
|
|
994
|
+
readonly element: SVGSVGElement;
|
|
932
995
|
readonly svg: SVGSVGElement;
|
|
933
996
|
readonly group: SVGGElement;
|
|
934
997
|
readonly line: SVGPathElement;
|
|
@@ -1087,6 +1150,10 @@ export declare interface UserSelectableNodesConfig {
|
|
|
1087
1150
|
readonly movementThreshold?: number | undefined;
|
|
1088
1151
|
}
|
|
1089
1152
|
|
|
1153
|
+
/**
|
|
1154
|
+
* @deprecated
|
|
1155
|
+
* use OrthogonalEdgeShape instead
|
|
1156
|
+
*/
|
|
1090
1157
|
export declare interface VerticalEdgeParams {
|
|
1091
1158
|
readonly color?: string | undefined;
|
|
1092
1159
|
readonly width?: number | undefined;
|
|
@@ -1100,7 +1167,12 @@ export declare interface VerticalEdgeParams {
|
|
|
1100
1167
|
readonly detourDistance?: number | undefined;
|
|
1101
1168
|
}
|
|
1102
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* @deprecated
|
|
1172
|
+
* use OrthogonalEdgeShape instead
|
|
1173
|
+
*/
|
|
1103
1174
|
export declare class VerticalEdgeShape implements StructuredEdgeShape {
|
|
1175
|
+
readonly element: SVGSVGElement;
|
|
1104
1176
|
readonly svg: SVGSVGElement;
|
|
1105
1177
|
readonly group: SVGGElement;
|
|
1106
1178
|
readonly line: SVGPathElement;
|
|
@@ -1122,6 +1194,10 @@ export declare class VerticalEdgeShape implements StructuredEdgeShape {
|
|
|
1122
1194
|
render(params: EdgeRenderParams): void;
|
|
1123
1195
|
}
|
|
1124
1196
|
|
|
1197
|
+
/**
|
|
1198
|
+
* @deprecated
|
|
1199
|
+
* use type: "orthogonal" instead
|
|
1200
|
+
*/
|
|
1125
1201
|
declare type VerticalEdgeShapeConfig = {
|
|
1126
1202
|
readonly type: "vertical";
|
|
1127
1203
|
} & VerticalEdgeParams;
|