@rfkit/charts 1.11.0 → 1.12.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.
- package/components/EventBus/tools.d.ts +1 -1
- package/components/Zoom/useZoomEvent.d.ts +1 -1
- package/components/Zoom/xRange.d.ts +17 -0
- package/index.js +11 -7
- package/modules/Heatmap/index.d.ts +1 -1
- package/modules/Heatmap/snapshot.d.ts +2 -1
- package/modules/Spectrum/Limit/Item.d.ts +1 -0
- package/modules/Spectrum/Markers/hooks/useMarkerEvents.d.ts +1 -0
- package/package.json +1 -1
- package/types/store/marker.d.ts +1 -0
- package/types/store/ui.d.ts +1 -0
|
@@ -12,7 +12,7 @@ export declare const createWheelEventManager: (id: string, name?: string, func?:
|
|
|
12
12
|
export declare const createDragEventManager: (id: string, name?: string, func?: CSMCallback) => (...args: any[]) => void;
|
|
13
13
|
export declare const createZoomEventManager: (id: string, name?: string, func?: CSMCallback) => (...args: any[]) => void;
|
|
14
14
|
export declare const createLongPressEventManager: (id: string, name?: string, func?: CSMCallback) => (...args: any[]) => void;
|
|
15
|
-
export declare const calculateEventRelativePosition: (e: React.MouseEvent<HTMLElement> | React.WheelEvent<HTMLElement> | EventPositionSource) => TopRightBottomLeft;
|
|
15
|
+
export declare const calculateEventRelativePosition: (e: React.MouseEvent<HTMLElement> | React.PointerEvent<HTMLElement> | React.WheelEvent<HTMLElement> | EventPositionSource) => TopRightBottomLeft;
|
|
16
16
|
export declare const EVENT_PRIORITY_LEVELS: {
|
|
17
17
|
void: number;
|
|
18
18
|
eventBus: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useZoomEvent(id: string, name: string): void;
|
|
1
|
+
export default function useZoomEvent(id: string, name: string, enabled?: boolean): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AxisXRange } from '../../types/common.ts';
|
|
2
|
+
interface AnchoredZoomParams {
|
|
3
|
+
anchorPercent: number;
|
|
4
|
+
interval: AxisXRange;
|
|
5
|
+
scale: number;
|
|
6
|
+
totalPoints: number;
|
|
7
|
+
}
|
|
8
|
+
interface SelectedZoomParams {
|
|
9
|
+
endPercent: number;
|
|
10
|
+
startPercent: number;
|
|
11
|
+
totalPoints: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const normalizeXZoomInterval: (interval: AxisXRange, totalPoints: number) => AxisXRange;
|
|
14
|
+
export declare const calculateAnchoredXZoomInterval: ({ anchorPercent, interval, scale, totalPoints }: AnchoredZoomParams) => AxisXRange;
|
|
15
|
+
export declare const translateXZoomInterval: (interval: AxisXRange, totalPoints: number, offsetPoints: number) => AxisXRange;
|
|
16
|
+
export declare const createSelectedXZoomInterval: ({ endPercent, startPercent, totalPoints }: SelectedZoomParams) => AxisXRange | null;
|
|
17
|
+
export {};
|