@relation-graph/vue3 3.0.9 → 3.0.10

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.
@@ -6,6 +6,8 @@ export type RGClientXy = RGCoordinate;
6
6
  */
7
7
  export declare class RelationGraphWith5Zoom extends RelationGraphWith4Line {
8
8
  constructor();
9
+ protected getClampedZoom(finalZoom: number): number;
10
+ protected applyZoom(newZoom: number, canvasOffset: RGCoordinate, e?: WheelEvent): void;
9
11
  /**
10
12
  * Zoom based on the current zoom level
11
13
  * @param buff The additional zoom level to be added based on the current zoom level. A positive number indicates zooming in, and a negative number indicates zooming out, in percentage. For example: 10 means zoom in by 10%, -10 means zoom out by 10%
@@ -14,6 +16,7 @@ export declare class RelationGraphWith5Zoom extends RelationGraphWith4Line {
14
16
  *
15
17
  */
16
18
  zoom(buff: number, userZoomCenter?: RGClientXy, e?: WheelEvent): void;
19
+ protected setZoomAndOffset(finalZoom: number, canvasOffset: RGCoordinate, e?: WheelEvent): void;
17
20
  /**
18
21
  * @inner
19
22
  * @protected
@@ -8,6 +8,15 @@ export declare class RelationGraphWith95Dom extends RelationGraphWith93Image {
8
8
  protected resizeObserver: ResizeObserver;
9
9
  protected resizeListenerMap: WeakMap<object, any>;
10
10
  protected domToNodeIdMap: WeakMap<Element, string>;
11
+ private _trackpadGestureActive;
12
+ private _trackpadGestureStartZoom;
13
+ private _trackpadGestureAnchorView;
14
+ private _trackpadGestureStartOffset;
15
+ private _mouseMoveHandler?;
16
+ private _gestureStartHandler?;
17
+ private _gestureChangeHandler?;
18
+ private _gestureEndHandler?;
19
+ private _lastMouseClientXy?;
11
20
  constructor();
12
21
  /**
13
22
  * [Used internally by relation-graph] This method will be called after the RelationGraph component is mounted, to facilitate DOM operations in the JS instance object (this will only obtain visual information of the DOM and monitor changes in size and position).
@@ -46,6 +55,9 @@ export declare class RelationGraphWith95Dom extends RelationGraphWith93Image {
46
55
  protected destroyMutationObserver(): void;
47
56
  private onKeyDownHanlder;
48
57
  private onKeyUpHanlder;
58
+ private getTrackpadGestureAnchorView;
59
+ protected addTrackpadGestureListeners(): void;
60
+ protected removeTrackpadGestureListeners(): void;
49
61
  /**
50
62
  * @inner
51
63
  * @private
@@ -7,8 +7,8 @@ export declare const getTextSize: (text: string) => number;
7
7
  export declare const mergeRGObject: (oldObj: Record<string, any>, newObj: Record<string, any>) => Record<string, any>;
8
8
  export declare const isSupportTouch: (e: MouseEvent | TouchEvent) => boolean;
9
9
  export declare const getClientCoordinate: (e: MouseEvent | TouchEvent) => {
10
- clientX: any;
11
- clientY: any;
10
+ clientX: number;
11
+ clientY: number;
12
12
  };
13
13
  export declare const devLog: (...args: any[]) => void;
14
14
  export declare const deprecatedWaring: (...args: any[]) => void;