This commit is contained in:
vdv committed 2022-10-19 13:04:56 +02:00
1 parent acbefa983d
commit b3a8f60f1e
2 files changed
+18 -3

No files matched your search

+9 -3
View File
@@ -1,11 +1,16 @@
import react, { useRef, useState } from 'react';
import { atom, useAtom } from 'jotai';
import react, { useRef } from 'react';
import { useAtom } from 'jotai';
import { Point } from './types';
import './Handler.css';
import { handlersConfig } from './config';
import { Transformation, relativeCoordinateSystemAtom } from './Map';
import { relativeCoordinateSystemAtom } from './Map';
/**
*
* See also {@link components/map/Map!relativeCoordinateSystemAtom}.
*
*/
export interface HandlersProperties {}
/**
*
@@ -18,6 +23,7 @@ export interface HandlersProperties {}
* * touchStart, touchEnd and touchCancel to track touch state
* * touchMove to shift the map (single finger) or shift and zoom (two fingers).
*
* Communication with the parent `<Map>` is done through {@link components/map/Map!relativeCoordinateSystemAtom}.
*/
export const Handlers: react.FC<HandlersProperties> = (
props: HandlersProperties