@html-graph/html-graph 3.5.1 → 3.6.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.
@@ -67,10 +67,6 @@ export declare interface BezierEdgeParams {
67
67
 
68
68
  export declare class BezierEdgeShape implements EdgeShape {
69
69
  readonly svg: SVGSVGElement;
70
- private readonly group;
71
- private readonly line;
72
- private readonly sourceArrow;
73
- private readonly targetArrow;
74
70
  private readonly arrowLength;
75
71
  private readonly arrowWidth;
76
72
  private readonly curvature;
@@ -80,6 +76,10 @@ export declare class BezierEdgeShape implements EdgeShape {
80
76
  private readonly detourDistance;
81
77
  private readonly hasSourceArrow;
82
78
  private readonly hasTargetArrow;
79
+ private readonly genericShape;
80
+ private readonly createCyclePath;
81
+ private readonly createDetourPath;
82
+ private readonly createLinePath;
83
83
  constructor(params?: BezierEdgeParams);
84
84
  render(params: EdgeRenderParams): void;
85
85
  }
@@ -306,8 +306,11 @@ declare interface ConnectablePortsConfig {
306
306
  readonly connectionPreprocessor?: ConnectionPreprocessor;
307
307
  readonly mouseDownEventVerifier?: MouseEventVerifier;
308
308
  readonly mouseUpEventVerifier?: MouseEventVerifier;
309
+ readonly dragPortDirection?: number | undefined;
309
310
  readonly events?: {
310
311
  readonly onAfterEdgeCreated?: (edgeId: unknown) => void;
312
+ readonly onEdgeCreationInterrupted?: (staticPortId: unknown, isDirect: boolean) => void;
313
+ readonly onEdgeCreationPrevented?: (request: AddEdgeRequest) => void;
311
314
  };
312
315
  }
313
316
  export { ConnectablePortsConfig }
@@ -539,10 +542,6 @@ export declare interface HorizontalEdgeParams {
539
542
 
540
543
  export declare class HorizontalEdgeShape implements EdgeShape {
541
544
  readonly svg: SVGSVGElement;
542
- private readonly group;
543
- private readonly line;
544
- private readonly sourceArrow;
545
- private readonly targetArrow;
546
545
  private readonly arrowLength;
547
546
  private readonly arrowWidth;
548
547
  private readonly arrowOffset;
@@ -552,6 +551,10 @@ export declare class HorizontalEdgeShape implements EdgeShape {
552
551
  private readonly detourDistance;
553
552
  private readonly hasSourceArrow;
554
553
  private readonly hasTargetArrow;
554
+ private readonly genericShape;
555
+ private readonly createCyclePath;
556
+ private readonly createDetourPath;
557
+ private readonly createLinePath;
555
558
  constructor(params?: HorizontalEdgeParams);
556
559
  render(params: EdgeRenderParams): void;
557
560
  }
@@ -686,10 +689,6 @@ export declare interface StraightEdgeParams {
686
689
 
687
690
  export declare class StraightEdgeShape implements EdgeShape {
688
691
  readonly svg: SVGSVGElement;
689
- private readonly group;
690
- private readonly line;
691
- private readonly sourceArrow;
692
- private readonly targetArrow;
693
692
  private readonly arrowLength;
694
693
  private readonly arrowWidth;
695
694
  private readonly arrowOffset;
@@ -699,6 +698,10 @@ export declare class StraightEdgeShape implements EdgeShape {
699
698
  private readonly detourDistance;
700
699
  private readonly hasSourceArrow;
701
700
  private readonly hasTargetArrow;
701
+ private readonly genericShape;
702
+ private readonly createCyclePath;
703
+ private readonly createDetourPath;
704
+ private readonly createLinePath;
702
705
  constructor(params?: StraightEdgeParams);
703
706
  render(params: EdgeRenderParams): void;
704
707
  }
@@ -792,10 +795,6 @@ export declare interface VerticalEdgeParams {
792
795
 
793
796
  export declare class VerticalEdgeShape implements EdgeShape {
794
797
  readonly svg: SVGSVGElement;
795
- private readonly group;
796
- private readonly line;
797
- private readonly sourceArrow;
798
- private readonly targetArrow;
799
798
  private readonly arrowLength;
800
799
  private readonly arrowWidth;
801
800
  private readonly arrowOffset;
@@ -805,6 +804,10 @@ export declare class VerticalEdgeShape implements EdgeShape {
805
804
  private readonly detourDistance;
806
805
  private readonly hasSourceArrow;
807
806
  private readonly hasTargetArrow;
807
+ private readonly genericShape;
808
+ private readonly createCyclePath;
809
+ private readonly createDetourPath;
810
+ private readonly createLinePath;
808
811
  constructor(params?: VerticalEdgeParams);
809
812
  render(params: EdgeRenderParams): void;
810
813
  }