@react-opencv/fiber 0.1.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.
@@ -0,0 +1,32 @@
1
+ declare global {
2
+ interface Window {
3
+ cv: any;
4
+ }
5
+ }
6
+ export type CV = any;
7
+ export type Mat = any;
8
+ export interface OpenCVContextValue {
9
+ cv: CV | null;
10
+ loading: boolean;
11
+ error: string | null;
12
+ }
13
+ export type OnMatCallback = (mat: Mat) => void;
14
+ export interface ParamConfig {
15
+ min: number;
16
+ max: number;
17
+ step: number;
18
+ default: number;
19
+ }
20
+ export interface SignatureParam {
21
+ name: string;
22
+ required: boolean;
23
+ type?: string;
24
+ }
25
+ export interface SignatureOverload {
26
+ name: string;
27
+ params: SignatureParam[];
28
+ returns: string;
29
+ }
30
+ export interface SignatureEntry {
31
+ overloads: SignatureOverload[];
32
+ }
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@react-opencv/fiber",
3
+ "version": "0.1.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/erasta/react-opencv-fiber.git"
7
+ },
8
+ "description": "A React reconciler for building OpenCV.js image-processing pipelines declaratively",
9
+ "type": "module",
10
+ "main": "dist/index.js",
11
+ "module": "dist/index.js",
12
+ "types": "dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/index.js",
16
+ "types": "./dist/index.d.ts"
17
+ }
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "sideEffects": false,
23
+ "license": "MIT",
24
+ "keywords": [
25
+ "react",
26
+ "opencv",
27
+ "fiber",
28
+ "reconciler",
29
+ "image-processing",
30
+ "computer-vision"
31
+ ],
32
+ "scripts": {
33
+ "build": "vite build && tsc -p tsconfig.build.json"
34
+ },
35
+ "dependencies": {
36
+ "react-reconciler": "^0.33.0"
37
+ },
38
+ "peerDependencies": {
39
+ "react": "^19.2.0",
40
+ "react-dom": "^19.2.0"
41
+ }
42
+ }