@html-graph/html-graph 0.1.5 → 0.1.7

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 CHANGED
@@ -11,7 +11,7 @@
11
11
  Instead of connecting nodes directly this library uses concept of ports, which provide greater fexibility at managing edges.
12
12
  Port is an entity of a node to which edges can be attached to.
13
13
 
14
- Visit <a target="_blank" href="https://html-graph.github.io/use-cases/">use cases</a> and [use cases implementation](use-cases).
14
+ Visit <a target="_blank" href="https://html-graph.github.io">DOCUMENTATION</a> for more.
15
15
 
16
16
  ## Getting started:
17
17
 
package/dist/main.d.ts CHANGED
@@ -42,8 +42,6 @@ declare interface AddPortRequest {
42
42
  readonly direction: number;
43
43
  }
44
44
 
45
- export declare type BeforeTransformChangeFn = () => void;
46
-
47
45
  export declare interface BezierEdgeParams {
48
46
  readonly color?: string | undefined;
49
47
  readonly width?: number | undefined;
@@ -246,8 +244,8 @@ export declare interface DragOptions {
246
244
  readonly moveOnTop?: boolean;
247
245
  readonly mouse?: {
248
246
  readonly dragCursor?: string | null;
249
- readonly mouseDownEventValidator?: (event: MouseEvent) => boolean;
250
- readonly mouseUpEventValidator?: (event: MouseEvent) => boolean;
247
+ readonly mouseDownEventVerifier?: (event: MouseEvent) => boolean;
248
+ readonly mouseUpEventVerifier?: (event: MouseEvent) => boolean;
251
249
  };
252
250
  readonly events?: {
253
251
  readonly onNodeDrag?: (payload: NodeDragPayload) => void;
@@ -580,21 +578,22 @@ declare interface StraightEdgeShape_2 {
580
578
  readonly detourDirection?: number;
581
579
  }
582
580
 
583
- export declare type TransformChangeFn = () => void;
584
-
585
581
  export declare interface TransformOptions {
586
582
  readonly scale?: {
587
583
  readonly mouseWheelSensitivity?: number;
584
+ readonly mouseWheelEventVerifier?: (event: WheelEvent) => boolean;
588
585
  };
589
586
  readonly shift?: {
590
587
  readonly cursor?: string | null;
588
+ readonly mouseDownEventVerifier?: (event: MouseEvent) => boolean;
589
+ readonly mouseUpEventVerifier?: (event: MouseEvent) => boolean;
591
590
  };
592
591
  readonly transformPreprocessor?: TransformPreprocessorOption | TransformPreprocessorOption[];
593
592
  readonly events?: {
594
593
  readonly onTransformStarted?: () => void;
595
594
  readonly onTransformFinished?: () => void;
596
- readonly onBeforeTransformChange?: BeforeTransformChangeFn;
597
- readonly onTransformChange?: TransformChangeFn;
595
+ readonly onBeforeTransformChange?: () => void;
596
+ readonly onTransformChange?: () => void;
598
597
  };
599
598
  }
600
599