@ebscn/ui 0.0.10 → 0.0.12
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/drag/drag.d.ts +6 -0
- package/drag/index.d.ts +16 -0
- package/handRead/handRead.js +398 -260
- package/handRead/index.d.ts +3 -3
- package/handRead/index.js +2 -9
- package/imageViewer/imageViewer.js +23 -23
- package/imageViewer/index.js +2 -6
- package/index.js +6 -12
- package/keyboard/index.d.ts +4 -6
- package/keyboard/index.js +2 -5
- package/keyboard/keyboard.js +40 -70
- package/package.json +2 -1
- package/react-ui.css +1 -0
- package/visualList/index.d.ts +7 -0
- package/visualList/visualList.d.ts +3 -0
- package/style.css +0 -1
- /package/{__vendor/__vendor.js → visualList/index.js} +0 -0
package/drag/drag.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MemoExoticComponent } from 'react';
|
|
2
|
+
import type { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { DragProps } from ".";
|
|
4
|
+
declare function Drag(props: DragProps): JSX.Element;
|
|
5
|
+
declare const _default: MemoExoticComponent<typeof Drag>;
|
|
6
|
+
export default _default;
|
package/drag/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Drag from "./drag";
|
|
2
|
+
export declare type DragProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
onStop: (e: TouchEvent, dragStart: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}) => void;
|
|
8
|
+
onStart?: (e: TouchEvent) => void;
|
|
9
|
+
onTouch?: (e: TouchEvent) => void;
|
|
10
|
+
position?: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
axis?: "x" | "y";
|
|
15
|
+
};
|
|
16
|
+
export default Drag;
|