@html-graph/html-graph 8.1.0 → 8.2.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.
@@ -46,6 +46,26 @@ export declare interface AnimatedLayoutAlgorithm {
46
46
  calculateNextCoordinates(params: AnimatedLayoutAlgorithmParams): ReadonlyMap<Identifier, Point>;
47
47
  }
48
48
 
49
+ export declare type AnimatedLayoutAlgorithmConfig = {
50
+ readonly type: "custom";
51
+ readonly instance: AnimatedLayoutAlgorithm;
52
+ } | {
53
+ readonly type?: "forceDirected";
54
+ readonly maxTimeDeltaSec?: number;
55
+ readonly nodeCharge?: number;
56
+ readonly nodeMass?: number;
57
+ readonly edgeEquilibriumLength?: number;
58
+ readonly edgeStiffness?: number;
59
+ readonly seed?: string;
60
+ readonly convergenceVelocity?: number;
61
+ readonly maxForce?: number;
62
+ readonly nodeForceCoefficient?: number;
63
+ readonly barnesHut?: {
64
+ readonly theta?: number;
65
+ readonly areaRadiusThreshold?: number;
66
+ };
67
+ };
68
+
49
69
  export declare interface AnimatedLayoutAlgorithmParams {
50
70
  readonly graph: Graph;
51
71
  readonly dt: number;
@@ -53,25 +73,8 @@ export declare interface AnimatedLayoutAlgorithmParams {
53
73
  }
54
74
 
55
75
  export declare interface AnimatedLayoutConfig {
56
- readonly algorithm?: {
57
- readonly type: "custom";
58
- readonly instance: AnimatedLayoutAlgorithm;
59
- } | {
60
- readonly type?: "forceDirected";
61
- readonly maxTimeDeltaSec?: number;
62
- readonly nodeCharge?: number;
63
- readonly nodeMass?: number;
64
- readonly edgeEquilibriumLength?: number;
65
- readonly edgeStiffness?: number;
66
- readonly seed?: string;
67
- readonly convergenceVelocity?: number;
68
- readonly maxForce?: number;
69
- readonly nodeForceCoefficient?: number;
70
- readonly barnesHut?: {
71
- readonly theta?: number;
72
- readonly areaRadiusThreshold?: number;
73
- };
74
- } | undefined;
76
+ readonly algorithm?: AnimatedLayoutAlgorithmConfig | undefined;
77
+ readonly staticNodeResolver?: ((nodeId: Identifier) => boolean) | undefined;
75
78
  }
76
79
 
77
80
  export declare type ArrowRenderer = (params: ArrowRenderingParams) => string;
@@ -785,6 +788,7 @@ export declare type LayoutApplyOn = {
785
788
  export declare interface LayoutConfig {
786
789
  readonly algorithm?: LayoutAlgorithmConfig | undefined;
787
790
  readonly applyOn?: LayoutApplyOn | undefined;
791
+ readonly staticNodeResolver?: (nodeId: Identifier) => boolean;
788
792
  }
789
793
 
790
794
  export declare type MarkNodePortRequest = {