@html-graph/html-graph 0.1.1 → 0.1.2

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/dist/main.d.ts CHANGED
@@ -248,6 +248,7 @@ export declare interface DragOptions {
248
248
  readonly events?: {
249
249
  readonly onNodeDrag?: (payload: NodeDragPayload) => void;
250
250
  readonly onBeforeNodeDrag?: (payload: NodeDragPayload) => boolean;
251
+ readonly onNodeDragFinished?: (nodeId: NodeDragPayload) => void;
251
252
  };
252
253
  }
253
254
 
@@ -579,7 +580,7 @@ export declare type TransformFinishedFn = () => void;
579
580
 
580
581
  export declare interface TransformOptions {
581
582
  readonly scale?: {
582
- readonly wheelSensitivity?: number;
583
+ readonly mouseWheelSensitivity?: number;
583
584
  };
584
585
  readonly shift?: {
585
586
  readonly cursor?: string | null;
@@ -631,7 +632,7 @@ export declare interface UpdateEdgeRequest {
631
632
  readonly priority?: number;
632
633
  }
633
634
 
634
- declare interface UpdateNodeRequest {
635
+ export declare interface UpdateNodeRequest {
635
636
  readonly x?: number;
636
637
  readonly y?: number;
637
638
  readonly priority?: number;
@@ -651,6 +652,7 @@ export declare class UserDraggableNodesCanvas implements Canvas {
651
652
  private grabbedNodeId;
652
653
  private onNodeDrag;
653
654
  private onBeforeNodeDrag;
655
+ private onNodeDragFinished;
654
656
  private readonly nodeIdGenerator;
655
657
  private element;
656
658
  private readonly onWindowMouseMove;