@html-graph/html-graph 8.12.1 → 8.14.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/README.md +10 -4
- package/dist/html-graph.d.ts +11 -0
- package/dist/html-graph.js +5623 -3698
- package/dist/html-graph.min.js +5108 -0
- package/dist/html-graph.min.umd.cjs +1 -0
- package/dist/html-graph.umd.cjs +6988 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,16 +2,22 @@
|
|
|
2
2
|
<img src="/media/logo-label.svg" alt="HTMLGraph" width="520" height="100"/>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
<h3 align="center">
|
|
6
|
+
Graph visualization library that enables rich nodes customization using HTML
|
|
7
|
+
</h3>
|
|
8
|
+
|
|
9
|
+
<div>
|
|
10
|
+
|
|
9
11
|
</div>
|
|
10
12
|
|
|
11
13
|
<a target="_blank" href="https://html-graph.github.io">
|
|
12
14
|
<img src="https://raw.githubusercontent.com/html-graph/html-graph/master/media/preview.jpg">
|
|
13
15
|
</a>
|
|
14
16
|
|
|
17
|
+
<div>
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
15
21
|
## Getting Started
|
|
16
22
|
|
|
17
23
|
```bash
|
package/dist/html-graph.d.ts
CHANGED
|
@@ -203,6 +203,7 @@ export declare class CanvasBuilder {
|
|
|
203
203
|
private readonly boxRenderingTrigger;
|
|
204
204
|
private readonly window;
|
|
205
205
|
private readonly animationStaticNodes;
|
|
206
|
+
private readonly pointInsideVerifier;
|
|
206
207
|
constructor(element: HTMLElement);
|
|
207
208
|
setDefaults(defaults: CanvasDefaults): CanvasBuilder;
|
|
208
209
|
enableUserDraggableNodes(config?: DraggableNodesConfig | undefined): CanvasBuilder;
|
|
@@ -735,6 +736,7 @@ declare type LayoutAlgorithmConfig = {
|
|
|
735
736
|
readonly layerWidth?: number | undefined;
|
|
736
737
|
readonly layerSpace?: number | undefined;
|
|
737
738
|
readonly transform?: CoordsTransformConfig | undefined;
|
|
739
|
+
readonly nextLayerNodesResolver?: NextLayerNodesResolverDeclaration | undefined;
|
|
738
740
|
};
|
|
739
741
|
|
|
740
742
|
export declare interface LayoutAlgorithmParams {
|
|
@@ -786,6 +788,15 @@ export declare class MidpointEdgeShape implements StructuredEdgeShape {
|
|
|
786
788
|
|
|
787
789
|
export declare type MouseEventVerifier = (event: MouseEvent) => boolean;
|
|
788
790
|
|
|
791
|
+
export declare type NextLayerNodesResolver = (params: NextLayerNodesResolverParams) => Iterable<Identifier>;
|
|
792
|
+
|
|
793
|
+
export declare type NextLayerNodesResolverDeclaration = NextLayerNodesResolver | "adjacent" | "outgoing" | "incoming";
|
|
794
|
+
|
|
795
|
+
export declare interface NextLayerNodesResolverParams {
|
|
796
|
+
readonly graph: Graph;
|
|
797
|
+
readonly currentNodeId: Identifier;
|
|
798
|
+
}
|
|
799
|
+
|
|
789
800
|
export declare type NodeElement = HTMLElement | SVGSVGElement;
|
|
790
801
|
|
|
791
802
|
export declare interface PatchMatrixRequest {
|