@html-graph/html-graph 3.16.0 → 3.17.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 +1 -1
- package/dist/html-graph.d.ts +21 -0
- package/dist/html-graph.js +295 -275
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<img src="/media/favicon.png" alt="HTMLGraph" width="25" height="25"/> HTMLGraph
|
|
3
3
|
</h1>
|
|
4
4
|
|
|
5
|
-
### Graph visualization library that enables nodes customization using HTML
|
|
5
|
+
### Graph visualization library that enables rich nodes customization using HTML
|
|
6
6
|
|
|
7
7
|
<a target="_blank" href="https://html-graph.github.io/use-cases/advanced-demo/">
|
|
8
8
|
<img width="100%" src="https://raw.githubusercontent.com/html-graph/html-graph/master/media/full-demo.gif"/>
|
package/dist/html-graph.d.ts
CHANGED
|
@@ -234,6 +234,8 @@ export declare class CanvasBuilder {
|
|
|
234
234
|
*/
|
|
235
235
|
enableResizeReactiveNodes(): CanvasBuilder;
|
|
236
236
|
/**
|
|
237
|
+
* @deprecated
|
|
238
|
+
* do not use
|
|
237
239
|
* sets emitter for rendering graph inside bounded area
|
|
238
240
|
*/
|
|
239
241
|
enableBoxAreaRendering(trigger: EventSubject<RenderingBox>): CanvasBuilder;
|
|
@@ -333,6 +335,12 @@ declare interface ConnectablePortsConfig {
|
|
|
333
335
|
export { ConnectablePortsConfig }
|
|
334
336
|
export { ConnectablePortsConfig as ConnectablePortsOptions }
|
|
335
337
|
|
|
338
|
+
export declare enum ConnectionCategory {
|
|
339
|
+
Line = "line",
|
|
340
|
+
NodeCycle = "node-cycle",
|
|
341
|
+
PortCycle = "port-cycle"
|
|
342
|
+
}
|
|
343
|
+
|
|
336
344
|
export declare type ConnectionPreprocessor = (request: AddEdgeRequest) => AddEdgeRequest | null;
|
|
337
345
|
|
|
338
346
|
export declare type ConnectionTypeResolver = (portId: unknown) => "direct" | "reverse" | null;
|
|
@@ -428,6 +436,7 @@ declare interface EdgePayload {
|
|
|
428
436
|
export declare interface EdgeRenderParams {
|
|
429
437
|
readonly from: EdgeRenderPort;
|
|
430
438
|
readonly to: EdgeRenderPort;
|
|
439
|
+
readonly category: ConnectionCategory;
|
|
431
440
|
}
|
|
432
441
|
|
|
433
442
|
export declare interface EdgeRenderPort {
|
|
@@ -436,7 +445,15 @@ export declare interface EdgeRenderPort {
|
|
|
436
445
|
readonly width: number;
|
|
437
446
|
readonly height: number;
|
|
438
447
|
readonly direction: number;
|
|
448
|
+
/**
|
|
449
|
+
* @deprecated
|
|
450
|
+
* use category instead
|
|
451
|
+
*/
|
|
439
452
|
readonly portId: unknown;
|
|
453
|
+
/**
|
|
454
|
+
* @deprecated
|
|
455
|
+
* use category instead
|
|
456
|
+
*/
|
|
440
457
|
readonly nodeId: unknown;
|
|
441
458
|
}
|
|
442
459
|
|
|
@@ -1033,6 +1050,10 @@ export declare interface VirtualScrollConfig {
|
|
|
1033
1050
|
readonly vertical: number;
|
|
1034
1051
|
readonly horizontal: number;
|
|
1035
1052
|
};
|
|
1053
|
+
readonly events?: {
|
|
1054
|
+
readonly onBeforeNodeAttached?: (nodeId: unknown) => void;
|
|
1055
|
+
readonly onAfterNodeDetached?: (nodeId: unknown) => void;
|
|
1056
|
+
};
|
|
1036
1057
|
}
|
|
1037
1058
|
|
|
1038
1059
|
export { }
|