@html-graph/html-graph 8.21.1 → 8.23.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 +64 -1
- package/dist/html-graph.js +7095 -7116
- package/dist/html-graph.min.js +4945 -5195
- package/dist/html-graph.min.umd.cjs +1 -1
- package/dist/html-graph.umd.cjs +7124 -7130
- package/package.json +12 -13
package/dist/html-graph.d.ts
CHANGED
|
@@ -452,7 +452,7 @@ export declare interface EdgeShape {
|
|
|
452
452
|
render(params: EdgeRenderParams): void;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
declare type EdgeShapeConfig = BezierEdgeShapeConfig | StraightEdgeShapeConfig | HorizontalEdgeShapeConfig | VerticalEdgeShapeConfig | DirectEdgeShapeConfig | EdgeShapeFactory;
|
|
455
|
+
declare type EdgeShapeConfig = BezierEdgeShapeConfig | StraightEdgeShapeConfig | HorizontalEdgeShapeConfig | VerticalEdgeShapeConfig | DirectEdgeShapeConfig | OrthogonalEdgeShapeConfig | EdgeShapeFactory;
|
|
456
456
|
|
|
457
457
|
declare type EdgeShapeFactory = (edgeId: Identifier) => EdgeShape;
|
|
458
458
|
|
|
@@ -663,6 +663,10 @@ declare class GraphStore {
|
|
|
663
663
|
private removeEdgeInternal;
|
|
664
664
|
}
|
|
665
665
|
|
|
666
|
+
/**
|
|
667
|
+
* @deprecated
|
|
668
|
+
* use OrthogonalEdgeShape instead
|
|
669
|
+
*/
|
|
666
670
|
export declare interface HorizontalEdgeParams {
|
|
667
671
|
readonly color?: string | undefined;
|
|
668
672
|
readonly width?: number | undefined;
|
|
@@ -676,6 +680,10 @@ export declare interface HorizontalEdgeParams {
|
|
|
676
680
|
readonly detourDistance?: number | undefined;
|
|
677
681
|
}
|
|
678
682
|
|
|
683
|
+
/**
|
|
684
|
+
* @deprecated
|
|
685
|
+
* use OrthogonalEdgeShape instead
|
|
686
|
+
*/
|
|
679
687
|
export declare class HorizontalEdgeShape implements StructuredEdgeShape {
|
|
680
688
|
readonly svg: SVGSVGElement;
|
|
681
689
|
readonly group: SVGGElement;
|
|
@@ -698,6 +706,10 @@ export declare class HorizontalEdgeShape implements StructuredEdgeShape {
|
|
|
698
706
|
render(params: EdgeRenderParams): void;
|
|
699
707
|
}
|
|
700
708
|
|
|
709
|
+
/**
|
|
710
|
+
* @deprecated
|
|
711
|
+
* use type: "orthogonal" instead
|
|
712
|
+
*/
|
|
701
713
|
declare type HorizontalEdgeShapeConfig = {
|
|
702
714
|
readonly type: "horizontal";
|
|
703
715
|
} & HorizontalEdgeParams;
|
|
@@ -835,6 +847,45 @@ export declare interface NextLayerNodesResolverParams {
|
|
|
835
847
|
|
|
836
848
|
export declare type NodeElement = HTMLElement | SVGSVGElement;
|
|
837
849
|
|
|
850
|
+
export declare interface OrthogonalEdgeParams {
|
|
851
|
+
readonly color?: string | undefined;
|
|
852
|
+
readonly width?: number | undefined;
|
|
853
|
+
readonly arrowLength?: number | undefined;
|
|
854
|
+
readonly arrowRenderer?: ArrowRendererConfig | undefined;
|
|
855
|
+
readonly arrowOffset?: number | undefined;
|
|
856
|
+
readonly hasSourceArrow?: boolean | undefined;
|
|
857
|
+
readonly hasTargetArrow?: boolean | undefined;
|
|
858
|
+
readonly cycleSquareSide?: number | undefined;
|
|
859
|
+
readonly roundness?: number | undefined;
|
|
860
|
+
readonly detourDistance?: number | undefined;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export declare class OrthogonalEdgeShape implements StructuredEdgeShape {
|
|
864
|
+
readonly svg: SVGSVGElement;
|
|
865
|
+
readonly group: SVGGElement;
|
|
866
|
+
readonly line: SVGPathElement;
|
|
867
|
+
readonly sourceArrow: SVGPathElement | null;
|
|
868
|
+
readonly targetArrow: SVGPathElement | null;
|
|
869
|
+
readonly onAfterRender: EventHandler<StructuredEdgeRenderModel>;
|
|
870
|
+
private readonly arrowLength;
|
|
871
|
+
private readonly arrowOffset;
|
|
872
|
+
private readonly roundness;
|
|
873
|
+
private readonly cycleSquareSide;
|
|
874
|
+
private readonly detourDistance;
|
|
875
|
+
private readonly hasSourceArrow;
|
|
876
|
+
private readonly hasTargetArrow;
|
|
877
|
+
private readonly pathShape;
|
|
878
|
+
private readonly createCyclePath;
|
|
879
|
+
private readonly createDetourPath;
|
|
880
|
+
private readonly createLinePath;
|
|
881
|
+
constructor(params?: OrthogonalEdgeParams);
|
|
882
|
+
render(params: EdgeRenderParams): void;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
declare type OrthogonalEdgeShapeConfig = {
|
|
886
|
+
readonly type: "orthogonal";
|
|
887
|
+
} & OrthogonalEdgeParams;
|
|
888
|
+
|
|
838
889
|
export declare interface PatchMatrixRequest {
|
|
839
890
|
readonly scale?: number | undefined;
|
|
840
891
|
readonly x?: number | undefined;
|
|
@@ -1087,6 +1138,10 @@ export declare interface UserSelectableNodesConfig {
|
|
|
1087
1138
|
readonly movementThreshold?: number | undefined;
|
|
1088
1139
|
}
|
|
1089
1140
|
|
|
1141
|
+
/**
|
|
1142
|
+
* @deprecated
|
|
1143
|
+
* use OrthogonalEdgeShape instead
|
|
1144
|
+
*/
|
|
1090
1145
|
export declare interface VerticalEdgeParams {
|
|
1091
1146
|
readonly color?: string | undefined;
|
|
1092
1147
|
readonly width?: number | undefined;
|
|
@@ -1100,6 +1155,10 @@ export declare interface VerticalEdgeParams {
|
|
|
1100
1155
|
readonly detourDistance?: number | undefined;
|
|
1101
1156
|
}
|
|
1102
1157
|
|
|
1158
|
+
/**
|
|
1159
|
+
* @deprecated
|
|
1160
|
+
* use OrthogonalEdgeShape instead
|
|
1161
|
+
*/
|
|
1103
1162
|
export declare class VerticalEdgeShape implements StructuredEdgeShape {
|
|
1104
1163
|
readonly svg: SVGSVGElement;
|
|
1105
1164
|
readonly group: SVGGElement;
|
|
@@ -1122,6 +1181,10 @@ export declare class VerticalEdgeShape implements StructuredEdgeShape {
|
|
|
1122
1181
|
render(params: EdgeRenderParams): void;
|
|
1123
1182
|
}
|
|
1124
1183
|
|
|
1184
|
+
/**
|
|
1185
|
+
* @deprecated
|
|
1186
|
+
* use type: "orthogonal" instead
|
|
1187
|
+
*/
|
|
1125
1188
|
declare type VerticalEdgeShapeConfig = {
|
|
1126
1189
|
readonly type: "vertical";
|
|
1127
1190
|
} & VerticalEdgeParams;
|