katucharts.js 0.2.9 → 0.2.11
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/interaction/Zoom.d.ts +14 -0
- package/dist/katucharts.es.js +477 -455
- package/dist/katucharts.umd.js +5 -5
- package/package.json +1 -1
|
@@ -50,10 +50,17 @@ export declare class Zoom {
|
|
|
50
50
|
private selectionRect;
|
|
51
51
|
private selectionStart;
|
|
52
52
|
private resetClickHandler;
|
|
53
|
+
private plotGroup;
|
|
53
54
|
constructor(config: ZoomConfig | ZoomType, plotGroup: Selection<SVGGElement, unknown, null, undefined>, plotArea: PlotArea, container: HTMLElement, events: EventBus);
|
|
54
55
|
private setupSelectionZoom;
|
|
55
56
|
private setupPanning;
|
|
56
57
|
private isKeyPressed;
|
|
58
|
+
/**
|
|
59
|
+
* Mouse-wheel zoom is opt-in. Enabled by default it hijacks the wheel from
|
|
60
|
+
* page/plot scrolling — on a scrollable chart the user can no longer scroll,
|
|
61
|
+
* and each tick re-zooms the axis — so it only turns on when explicitly asked
|
|
62
|
+
* for via `mouseWheel: true` (or `{ enabled: true }`).
|
|
63
|
+
*/
|
|
57
64
|
private isMouseWheelEnabled;
|
|
58
65
|
private getMouseWheelSensitivity;
|
|
59
66
|
private createResetButton;
|
|
@@ -64,5 +71,12 @@ export declare class Zoom {
|
|
|
64
71
|
*/
|
|
65
72
|
setResetHandler(fn: () => void): void;
|
|
66
73
|
setResetButtonVisible(visible: boolean): void;
|
|
74
|
+
/**
|
|
75
|
+
* Clears any accumulated wheel/pinch zoom transform back to identity without
|
|
76
|
+
* emitting a `zoom:changed` event, so the reset button can restore the original
|
|
77
|
+
* view (whose domains the caller has already put back) instead of leaving a
|
|
78
|
+
* stale transform that would re-zoom on the next wheel tick.
|
|
79
|
+
*/
|
|
80
|
+
resetTransform(): void;
|
|
67
81
|
destroy(): void;
|
|
68
82
|
}
|