main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
512 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import { RefObject } from 'react';
|
---|
| 2 | export declare type CacheRef = {
|
---|
| 3 | prevDiff: number;
|
---|
| 4 | evCache: Array<PointerEvent>;
|
---|
| 5 | };
|
---|
| 6 | export declare enum ZoomState {
|
---|
| 7 | 'ZOOMING_IN' = "ZOOMING_IN",
|
---|
| 8 | 'ZOOMING_OUT' = "ZOOMING_OUT"
|
---|
| 9 | }
|
---|
| 10 | export declare type ZoomStateType = ZoomState.ZOOMING_IN | ZoomState.ZOOMING_OUT;
|
---|
| 11 | declare const usePinchZoom: (ref: RefObject<HTMLElement>) => {
|
---|
| 12 | zoomingState: ZoomState;
|
---|
| 13 | pinchState: number;
|
---|
| 14 | } | {
|
---|
| 15 | zoomingState: null;
|
---|
| 16 | pinchState: number;
|
---|
| 17 | };
|
---|
| 18 | export default usePinchZoom;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.