@html-graph/html-graph 0.1.4 → 0.1.5
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 +8 -6
- package/dist/main.js +292 -281
- package/dist/main.umd.cjs +1 -1
- package/package.json +3 -2
package/dist/main.d.ts
CHANGED
|
@@ -244,7 +244,11 @@ declare type CustomPriority = PriorityFn;
|
|
|
244
244
|
|
|
245
245
|
export declare interface DragOptions {
|
|
246
246
|
readonly moveOnTop?: boolean;
|
|
247
|
-
readonly
|
|
247
|
+
readonly mouse?: {
|
|
248
|
+
readonly dragCursor?: string | null;
|
|
249
|
+
readonly mouseDownEventValidator?: (event: MouseEvent) => boolean;
|
|
250
|
+
readonly mouseUpEventValidator?: (event: MouseEvent) => boolean;
|
|
251
|
+
};
|
|
248
252
|
readonly events?: {
|
|
249
253
|
readonly onNodeDrag?: (payload: NodeDragPayload) => void;
|
|
250
254
|
readonly onBeforeNodeDrag?: (payload: NodeDragPayload) => boolean;
|
|
@@ -587,6 +591,8 @@ export declare interface TransformOptions {
|
|
|
587
591
|
};
|
|
588
592
|
readonly transformPreprocessor?: TransformPreprocessorOption | TransformPreprocessorOption[];
|
|
589
593
|
readonly events?: {
|
|
594
|
+
readonly onTransformStarted?: () => void;
|
|
595
|
+
readonly onTransformFinished?: () => void;
|
|
590
596
|
readonly onBeforeTransformChange?: BeforeTransformChangeFn;
|
|
591
597
|
readonly onTransformChange?: TransformChangeFn;
|
|
592
598
|
};
|
|
@@ -650,9 +656,6 @@ export declare class UserDraggableNodesCanvas implements Canvas {
|
|
|
650
656
|
private maxNodePriority;
|
|
651
657
|
private readonly nodes;
|
|
652
658
|
private grabbedNodeId;
|
|
653
|
-
private onNodeDrag;
|
|
654
|
-
private onBeforeNodeDrag;
|
|
655
|
-
private onNodeDragFinished;
|
|
656
659
|
private readonly nodeIdGenerator;
|
|
657
660
|
private element;
|
|
658
661
|
private readonly onWindowMouseMove;
|
|
@@ -660,9 +663,8 @@ export declare class UserDraggableNodesCanvas implements Canvas {
|
|
|
660
663
|
private readonly onWindowTouchMove;
|
|
661
664
|
private readonly onWindowTouchFinish;
|
|
662
665
|
private previousTouchCoords;
|
|
663
|
-
private readonly freezePriority;
|
|
664
666
|
private readonly window;
|
|
665
|
-
private readonly
|
|
667
|
+
private readonly options;
|
|
666
668
|
constructor(canvas: Canvas, dragOptions?: DragOptions);
|
|
667
669
|
attach(element: HTMLElement): UserDraggableNodesCanvas;
|
|
668
670
|
detach(): UserDraggableNodesCanvas;
|