gesture-kit-air 1.0.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/dist/AirDrawGesture.d.ts +11 -0
- package/dist/AirDrawGesture.js +18 -0
- package/dist/AirPinchGesture.d.ts +11 -0
- package/dist/AirPinchGesture.js +18 -0
- package/dist/AirRotateGesture.d.ts +11 -0
- package/dist/AirRotateGesture.js +18 -0
- package/dist/AirSwipeGesture.d.ts +11 -0
- package/dist/AirSwipeGesture.js +18 -0
- package/dist/AirTapGesture.d.ts +11 -0
- package/dist/AirTapGesture.js +18 -0
- package/dist/HandWaveGesture.d.ts +11 -0
- package/dist/HandWaveGesture.js +18 -0
- package/dist/MultiHandGesture.d.ts +11 -0
- package/dist/MultiHandGesture.js +18 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +17 -0
- package/dist/hooks/useAirDraw.d.ts +10 -0
- package/dist/hooks/useAirDraw.js +14 -0
- package/dist/hooks/useAirPinch.d.ts +10 -0
- package/dist/hooks/useAirPinch.js +14 -0
- package/dist/hooks/useAirRotate.d.ts +10 -0
- package/dist/hooks/useAirRotate.js +14 -0
- package/dist/hooks/useAirSwipe.d.ts +10 -0
- package/dist/hooks/useAirSwipe.js +14 -0
- package/dist/hooks/useAirTap.d.ts +10 -0
- package/dist/hooks/useAirTap.js +14 -0
- package/dist/hooks/useHandWave.d.ts +10 -0
- package/dist/hooks/useHandWave.js +14 -0
- package/dist/hooks/useMultiHand.d.ts +10 -0
- package/dist/hooks/useMultiHand.js +14 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +36 -0
- package/dist/types.d.ts +29 -0
- package/dist/types.js +5 -0
- package/package.json +34 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Air Draw Gesture - Detects air drawing
|
|
3
|
+
* @module gestures
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface AirDrawGestureProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const AirDrawGesture: React.FC<AirDrawGestureProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Air Draw Gesture - Detects air drawing
|
|
4
|
+
* @module gestures
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AirDrawGesture = void 0;
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
const AirDrawGesture = ({ children, enabled = true, ...rest }) => {
|
|
14
|
+
// TODO: Implement Air Draw Gesture logic
|
|
15
|
+
return react_1.default.createElement(react_native_1.View, { ...rest }, children);
|
|
16
|
+
};
|
|
17
|
+
exports.AirDrawGesture = AirDrawGesture;
|
|
18
|
+
exports.AirDrawGesture.displayName = 'AirDrawGesture';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Air Pinch Gesture - Detects air pinch
|
|
3
|
+
* @module gestures
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface AirPinchGestureProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const AirPinchGesture: React.FC<AirPinchGestureProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Air Pinch Gesture - Detects air pinch
|
|
4
|
+
* @module gestures
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AirPinchGesture = void 0;
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
const AirPinchGesture = ({ children, enabled = true, ...rest }) => {
|
|
14
|
+
// TODO: Implement Air Pinch Gesture logic
|
|
15
|
+
return react_1.default.createElement(react_native_1.View, { ...rest }, children);
|
|
16
|
+
};
|
|
17
|
+
exports.AirPinchGesture = AirPinchGesture;
|
|
18
|
+
exports.AirPinchGesture.displayName = 'AirPinchGesture';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Air Rotate Gesture - Detects air rotation
|
|
3
|
+
* @module gestures
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface AirRotateGestureProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const AirRotateGesture: React.FC<AirRotateGestureProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Air Rotate Gesture - Detects air rotation
|
|
4
|
+
* @module gestures
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AirRotateGesture = void 0;
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
const AirRotateGesture = ({ children, enabled = true, ...rest }) => {
|
|
14
|
+
// TODO: Implement Air Rotate Gesture logic
|
|
15
|
+
return react_1.default.createElement(react_native_1.View, { ...rest }, children);
|
|
16
|
+
};
|
|
17
|
+
exports.AirRotateGesture = AirRotateGesture;
|
|
18
|
+
exports.AirRotateGesture.displayName = 'AirRotateGesture';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Air Swipe Gesture - Detects air swipe
|
|
3
|
+
* @module gestures
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface AirSwipeGestureProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const AirSwipeGesture: React.FC<AirSwipeGestureProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Air Swipe Gesture - Detects air swipe
|
|
4
|
+
* @module gestures
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AirSwipeGesture = void 0;
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
const AirSwipeGesture = ({ children, enabled = true, ...rest }) => {
|
|
14
|
+
// TODO: Implement Air Swipe Gesture logic
|
|
15
|
+
return react_1.default.createElement(react_native_1.View, { ...rest }, children);
|
|
16
|
+
};
|
|
17
|
+
exports.AirSwipeGesture = AirSwipeGesture;
|
|
18
|
+
exports.AirSwipeGesture.displayName = 'AirSwipeGesture';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Air Tap Gesture - Detects air tap
|
|
3
|
+
* @module gestures
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface AirTapGestureProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const AirTapGesture: React.FC<AirTapGestureProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Air Tap Gesture - Detects air tap
|
|
4
|
+
* @module gestures
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AirTapGesture = void 0;
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
const AirTapGesture = ({ children, enabled = true, ...rest }) => {
|
|
14
|
+
// TODO: Implement Air Tap Gesture logic
|
|
15
|
+
return react_1.default.createElement(react_native_1.View, { ...rest }, children);
|
|
16
|
+
};
|
|
17
|
+
exports.AirTapGesture = AirTapGesture;
|
|
18
|
+
exports.AirTapGesture.displayName = 'AirTapGesture';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hand Wave Gesture - Detects hand wave
|
|
3
|
+
* @module gestures
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface HandWaveGestureProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const HandWaveGesture: React.FC<HandWaveGestureProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Hand Wave Gesture - Detects hand wave
|
|
4
|
+
* @module gestures
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.HandWaveGesture = void 0;
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
const HandWaveGesture = ({ children, enabled = true, ...rest }) => {
|
|
14
|
+
// TODO: Implement Hand Wave Gesture logic
|
|
15
|
+
return react_1.default.createElement(react_native_1.View, { ...rest }, children);
|
|
16
|
+
};
|
|
17
|
+
exports.HandWaveGesture = HandWaveGesture;
|
|
18
|
+
exports.HandWaveGesture.displayName = 'HandWaveGesture';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Multi Hand Gesture - Detects multi-hand gestures
|
|
3
|
+
* @module gestures
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface MultiHandGestureProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const MultiHandGesture: React.FC<MultiHandGestureProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Multi Hand Gesture - Detects multi-hand gestures
|
|
4
|
+
* @module gestures
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.MultiHandGesture = void 0;
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
const MultiHandGesture = ({ children, enabled = true, ...rest }) => {
|
|
14
|
+
// TODO: Implement Multi Hand Gesture logic
|
|
15
|
+
return react_1.default.createElement(react_native_1.View, { ...rest }, children);
|
|
16
|
+
};
|
|
17
|
+
exports.MultiHandGesture = MultiHandGesture;
|
|
18
|
+
exports.MultiHandGesture.displayName = 'MultiHandGesture';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { useHandWave } from './useHandWave';
|
|
2
|
+
export { useAirSwipe } from './useAirSwipe';
|
|
3
|
+
export { useAirTap } from './useAirTap';
|
|
4
|
+
export { useAirPinch } from './useAirPinch';
|
|
5
|
+
export { useAirRotate } from './useAirRotate';
|
|
6
|
+
export { useAirDraw } from './useAirDraw';
|
|
7
|
+
export { useMultiHand } from './useMultiHand';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useMultiHand = exports.useAirDraw = exports.useAirRotate = exports.useAirPinch = exports.useAirTap = exports.useAirSwipe = exports.useHandWave = void 0;
|
|
4
|
+
var useHandWave_1 = require("./useHandWave");
|
|
5
|
+
Object.defineProperty(exports, "useHandWave", { enumerable: true, get: function () { return useHandWave_1.useHandWave; } });
|
|
6
|
+
var useAirSwipe_1 = require("./useAirSwipe");
|
|
7
|
+
Object.defineProperty(exports, "useAirSwipe", { enumerable: true, get: function () { return useAirSwipe_1.useAirSwipe; } });
|
|
8
|
+
var useAirTap_1 = require("./useAirTap");
|
|
9
|
+
Object.defineProperty(exports, "useAirTap", { enumerable: true, get: function () { return useAirTap_1.useAirTap; } });
|
|
10
|
+
var useAirPinch_1 = require("./useAirPinch");
|
|
11
|
+
Object.defineProperty(exports, "useAirPinch", { enumerable: true, get: function () { return useAirPinch_1.useAirPinch; } });
|
|
12
|
+
var useAirRotate_1 = require("./useAirRotate");
|
|
13
|
+
Object.defineProperty(exports, "useAirRotate", { enumerable: true, get: function () { return useAirRotate_1.useAirRotate; } });
|
|
14
|
+
var useAirDraw_1 = require("./useAirDraw");
|
|
15
|
+
Object.defineProperty(exports, "useAirDraw", { enumerable: true, get: function () { return useAirDraw_1.useAirDraw; } });
|
|
16
|
+
var useMultiHand_1 = require("./useMultiHand");
|
|
17
|
+
Object.defineProperty(exports, "useMultiHand", { enumerable: true, get: function () { return useMultiHand_1.useMultiHand; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* useAirDraw - useAirDraw hook
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useAirDraw = useAirDraw;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
function useAirDraw(options = {}) {
|
|
9
|
+
const { enabled = true } = options;
|
|
10
|
+
return (0, react_1.useMemo)(() => {
|
|
11
|
+
// TODO: Implement useAirDraw logic
|
|
12
|
+
return { enabled };
|
|
13
|
+
}, [enabled]);
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* useAirPinch - useAirPinch hook
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useAirPinch = useAirPinch;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
function useAirPinch(options = {}) {
|
|
9
|
+
const { enabled = true } = options;
|
|
10
|
+
return (0, react_1.useMemo)(() => {
|
|
11
|
+
// TODO: Implement useAirPinch logic
|
|
12
|
+
return { enabled };
|
|
13
|
+
}, [enabled]);
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* useAirRotate - useAirRotate hook
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useAirRotate = useAirRotate;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
function useAirRotate(options = {}) {
|
|
9
|
+
const { enabled = true } = options;
|
|
10
|
+
return (0, react_1.useMemo)(() => {
|
|
11
|
+
// TODO: Implement useAirRotate logic
|
|
12
|
+
return { enabled };
|
|
13
|
+
}, [enabled]);
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* useAirSwipe - useAirSwipe hook
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useAirSwipe = useAirSwipe;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
function useAirSwipe(options = {}) {
|
|
9
|
+
const { enabled = true } = options;
|
|
10
|
+
return (0, react_1.useMemo)(() => {
|
|
11
|
+
// TODO: Implement useAirSwipe logic
|
|
12
|
+
return { enabled };
|
|
13
|
+
}, [enabled]);
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* useAirTap - useAirTap hook
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useAirTap = useAirTap;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
function useAirTap(options = {}) {
|
|
9
|
+
const { enabled = true } = options;
|
|
10
|
+
return (0, react_1.useMemo)(() => {
|
|
11
|
+
// TODO: Implement useAirTap logic
|
|
12
|
+
return { enabled };
|
|
13
|
+
}, [enabled]);
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* useHandWave - useHandWave hook
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useHandWave = useHandWave;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
function useHandWave(options = {}) {
|
|
9
|
+
const { enabled = true } = options;
|
|
10
|
+
return (0, react_1.useMemo)(() => {
|
|
11
|
+
// TODO: Implement useHandWave logic
|
|
12
|
+
return { enabled };
|
|
13
|
+
}, [enabled]);
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* useMultiHand - useMultiHand hook
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useMultiHand = useMultiHand;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
function useMultiHand(options = {}) {
|
|
9
|
+
const { enabled = true } = options;
|
|
10
|
+
return (0, react_1.useMemo)(() => {
|
|
11
|
+
// TODO: Implement useMultiHand logic
|
|
12
|
+
return { enabled };
|
|
13
|
+
}, [enabled]);
|
|
14
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export { AirDrawGesture } from './AirDrawGesture';
|
|
3
|
+
export { AirPinchGesture } from './AirPinchGesture';
|
|
4
|
+
export { AirRotateGesture } from './AirRotateGesture';
|
|
5
|
+
export { AirSwipeGesture } from './AirSwipeGesture';
|
|
6
|
+
export { AirTapGesture } from './AirTapGesture';
|
|
7
|
+
export { HandWaveGesture } from './HandWaveGesture';
|
|
8
|
+
export { MultiHandGesture } from './MultiHandGesture';
|
|
9
|
+
export * from './hooks';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.MultiHandGesture = exports.HandWaveGesture = exports.AirTapGesture = exports.AirSwipeGesture = exports.AirRotateGesture = exports.AirPinchGesture = exports.AirDrawGesture = void 0;
|
|
18
|
+
// Air Gestures
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
// Components
|
|
21
|
+
var AirDrawGesture_1 = require("./AirDrawGesture");
|
|
22
|
+
Object.defineProperty(exports, "AirDrawGesture", { enumerable: true, get: function () { return AirDrawGesture_1.AirDrawGesture; } });
|
|
23
|
+
var AirPinchGesture_1 = require("./AirPinchGesture");
|
|
24
|
+
Object.defineProperty(exports, "AirPinchGesture", { enumerable: true, get: function () { return AirPinchGesture_1.AirPinchGesture; } });
|
|
25
|
+
var AirRotateGesture_1 = require("./AirRotateGesture");
|
|
26
|
+
Object.defineProperty(exports, "AirRotateGesture", { enumerable: true, get: function () { return AirRotateGesture_1.AirRotateGesture; } });
|
|
27
|
+
var AirSwipeGesture_1 = require("./AirSwipeGesture");
|
|
28
|
+
Object.defineProperty(exports, "AirSwipeGesture", { enumerable: true, get: function () { return AirSwipeGesture_1.AirSwipeGesture; } });
|
|
29
|
+
var AirTapGesture_1 = require("./AirTapGesture");
|
|
30
|
+
Object.defineProperty(exports, "AirTapGesture", { enumerable: true, get: function () { return AirTapGesture_1.AirTapGesture; } });
|
|
31
|
+
var HandWaveGesture_1 = require("./HandWaveGesture");
|
|
32
|
+
Object.defineProperty(exports, "HandWaveGesture", { enumerable: true, get: function () { return HandWaveGesture_1.HandWaveGesture; } });
|
|
33
|
+
var MultiHandGesture_1 = require("./MultiHandGesture");
|
|
34
|
+
Object.defineProperty(exports, "MultiHandGesture", { enumerable: true, get: function () { return MultiHandGesture_1.MultiHandGesture; } });
|
|
35
|
+
// Hooks
|
|
36
|
+
__exportStar(require("./hooks"), exports);
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for this gesture category.
|
|
3
|
+
*/
|
|
4
|
+
import type { BaseGestureEvent } from 'gesture-kit-core';
|
|
5
|
+
export interface AirGestureEvent extends BaseGestureEvent {
|
|
6
|
+
handId: number;
|
|
7
|
+
confidence: number;
|
|
8
|
+
depth: number;
|
|
9
|
+
}
|
|
10
|
+
export interface AirSwipeEvent extends AirGestureEvent {
|
|
11
|
+
direction: 'up' | 'down' | 'left' | 'right';
|
|
12
|
+
velocity: number;
|
|
13
|
+
}
|
|
14
|
+
export interface AirPinchEvent extends AirGestureEvent {
|
|
15
|
+
scale: number;
|
|
16
|
+
}
|
|
17
|
+
export interface AirRotateEvent extends AirGestureEvent {
|
|
18
|
+
rotation: number;
|
|
19
|
+
}
|
|
20
|
+
export interface AirDrawEvent extends AirGestureEvent {
|
|
21
|
+
path: Array<{
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
z: number;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
export interface MultiHandEvent extends AirGestureEvent {
|
|
28
|
+
hands: number;
|
|
29
|
+
}
|
package/dist/types.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gesture-kit-air",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Air gestures: touchless interaction via camera/depth sensors",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": ["dist", "README.md"],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"prepare": "npm run build",
|
|
11
|
+
"typecheck": "tsc --noEmit"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"gesture-kit-core": "^1.0.0"
|
|
15
|
+
},
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"react": ">=18.0.0",
|
|
18
|
+
"react-native": ">=0.71.0",
|
|
19
|
+
"react-native-gesture-handler": ">=2.10.0"
|
|
20
|
+
},
|
|
21
|
+
"peerDependenciesMeta": {
|
|
22
|
+
"react-native-camera": { "optional": true },
|
|
23
|
+
"@mediapipe/hands": { "optional": true }
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/react": "^18.2.0",
|
|
27
|
+
"react": "^18.2.0",
|
|
28
|
+
"react-native": "^0.73.11",
|
|
29
|
+
"react-native-gesture-handler": "^2.30.0",
|
|
30
|
+
"typescript": "^5.9.3"
|
|
31
|
+
},
|
|
32
|
+
"keywords": ["react-native", "gesture", "air", "touchless", "hand-tracking"],
|
|
33
|
+
"license": "MIT"
|
|
34
|
+
}
|