@kubohiroya/turbowarp-camera-source 0.16.0 → 0.17.1
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/README.ja.md +4 -2
- package/README.md +4 -2
- package/dist/calibration/camera-info.d.ts +2 -0
- package/dist/calibration/camera-info.d.ts.map +1 -1
- package/dist/calibration/camera-info.js +4 -0
- package/dist/calibration/camera-info.js.map +1 -1
- package/dist/camera-source.js +9837 -1344
- package/dist/profile.d.ts +1 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/lib-editor/schemas/camera-intrinsics-v1.json +346 -0
- package/lib-editor/schemas/editor-legacy-calibration.json +57 -0
- package/lib-editor/schemas/editor-ros-camera-info.json +29 -0
- package/lib-editor/src/calibration/camera-info.d.ts +33 -0
- package/lib-editor/src/calibration/camera-info.js +340 -0
- package/lib-editor/src/calibration/profile.d.ts +46 -0
- package/lib-editor/src/calibration/profile.js +479 -0
- package/lib-editor/src/calibration/types.d.ts +134 -0
- package/lib-editor/src/calibration/types.js +12 -0
- package/lib-editor/src/calibration/yaml.d.ts +20 -0
- package/lib-editor/src/calibration/yaml.js +444 -0
- package/lib-editor/src/editor-schema.d.ts +51 -0
- package/lib-editor/src/editor-schema.js +119 -0
- package/package.json +27 -10
- package/schemas/block-editor-fixed-inputs.schema.json +21 -0
- package/schemas/editor-legacy-calibration.json +57 -0
- package/schemas/editor-ros-camera-info.json +29 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubohiroya/turbowarp-camera-source",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"author": "Hiroya Kubo <hiroya@cuc.ac.jp>",
|
|
5
5
|
"description": "A TurboWarp capability extension for sharing one MediaDevices camera stream across extensions.",
|
|
6
6
|
"type": "module",
|
|
@@ -23,14 +23,19 @@
|
|
|
23
23
|
"types": "./dist/profile.d.ts",
|
|
24
24
|
"import": "./dist/profile.js"
|
|
25
25
|
},
|
|
26
|
-
"./package.json": "./package.json"
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
"./editor-schema": {
|
|
28
|
+
"types": "./lib-editor/src/editor-schema.d.ts",
|
|
29
|
+
"import": "./lib-editor/src/editor-schema.js"
|
|
30
|
+
}
|
|
27
31
|
},
|
|
28
32
|
"files": [
|
|
29
33
|
"dist/",
|
|
30
34
|
"schemas/",
|
|
31
35
|
"README.md",
|
|
32
36
|
"README.ja.md",
|
|
33
|
-
"LICENSE"
|
|
37
|
+
"LICENSE",
|
|
38
|
+
"lib-editor/"
|
|
34
39
|
],
|
|
35
40
|
"unpkg": "./dist/camera-source.js",
|
|
36
41
|
"jsdelivr": "./dist/camera-source.js",
|
|
@@ -45,11 +50,11 @@
|
|
|
45
50
|
"scripts": {
|
|
46
51
|
"dev": "vite build --watch",
|
|
47
52
|
"typecheck": "tsc --noEmit",
|
|
48
|
-
"build": "vite build && tsc -p tsconfig.lib.json",
|
|
53
|
+
"build": "vite build && tsc -p tsconfig.lib.json && npm run build:editor",
|
|
49
54
|
"lint": "eslint src tests vite.config.ts",
|
|
50
55
|
"format": "eslint src tests vite.config.ts --fix",
|
|
51
56
|
"test": "vitest run",
|
|
52
|
-
"docs": "node scripts/generate-readme.ts",
|
|
57
|
+
"docs": "node scripts/generate-readme.ts && node scripts/generate-fixed-input-docs.mjs",
|
|
53
58
|
"docs:check": "pnpm run docs && git diff --exit-code -- README.md README.ja.md",
|
|
54
59
|
"docs:pages:check": "node scripts/check-pages.ts",
|
|
55
60
|
"repo:check": "node scripts/check-repo.ts",
|
|
@@ -57,19 +62,22 @@
|
|
|
57
62
|
"release:check": "pnpm publish --dry-run --access public --no-git-checks",
|
|
58
63
|
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run docs:check && pnpm run docs:pages:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check",
|
|
59
64
|
"check:dist": "pnpm run build && node scripts/check-dist.ts",
|
|
60
|
-
"prepack": "
|
|
65
|
+
"prepack": "node scripts/prepack.mjs",
|
|
66
|
+
"build:editor": "tsc -p tsconfig.editor.json",
|
|
67
|
+
"prepare": "npm run build"
|
|
61
68
|
},
|
|
62
69
|
"devDependencies": {
|
|
63
70
|
"@eslint/js": "^9.39.5",
|
|
64
|
-
"@kubohiroya/turbowarp-extension-manifest": "0.2
|
|
65
|
-
"@kubohiroya/vite-plugin-turbowarp-extension": "0.
|
|
71
|
+
"@kubohiroya/turbowarp-extension-manifest": "0.3.2",
|
|
72
|
+
"@kubohiroya/vite-plugin-turbowarp-extension": "0.6.1",
|
|
66
73
|
"@types/node": "^24.13.3",
|
|
67
74
|
"ajv": "^8.20.0",
|
|
68
75
|
"eslint": "^9.39.5",
|
|
69
76
|
"typescript": "^5.9.3",
|
|
70
77
|
"typescript-eslint": "^8.66.0",
|
|
71
78
|
"vite": "^8.2.2",
|
|
72
|
-
"vitest": "^4.1.10"
|
|
79
|
+
"vitest": "^4.1.10",
|
|
80
|
+
"react-dom": "18.3.1"
|
|
73
81
|
},
|
|
74
82
|
"keywords": [
|
|
75
83
|
"turbowarp",
|
|
@@ -78,5 +86,14 @@
|
|
|
78
86
|
"camera",
|
|
79
87
|
"media-devices",
|
|
80
88
|
"getusermedia"
|
|
81
|
-
]
|
|
89
|
+
],
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@kubohiroya/turbowarp-extension-data-editor": "0.2.1"
|
|
92
|
+
},
|
|
93
|
+
"gitHead": "e23f2e1e3db28c5b7e0290949cf99004b689d90c",
|
|
94
|
+
"x-turbowarp-source": {
|
|
95
|
+
"revision": "e23f2e1e3db28c5b7e0290949cf99004b689d90c",
|
|
96
|
+
"revisionRole": "base-commit",
|
|
97
|
+
"sourceState": "local-release-overlay"
|
|
98
|
+
}
|
|
82
99
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://kubohiroya.github.io/turbowarp-camera-source/schemas/block-editor-fixed-inputs.schema.json",
|
|
4
|
+
"$defs": {
|
|
5
|
+
"showCameraPreview": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"PREVIEW_FLIP": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"enum": [
|
|
11
|
+
"none",
|
|
12
|
+
"horizontal",
|
|
13
|
+
"vertical",
|
|
14
|
+
"both"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://kubohiroya.github.io/turbowarp-camera-source/schema/editor-legacy-calibration.json",
|
|
4
|
+
"title": "Existing Camera Source legacy input shape",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schema",
|
|
8
|
+
"version",
|
|
9
|
+
"calibrationId",
|
|
10
|
+
"cameraId",
|
|
11
|
+
"imageWidth",
|
|
12
|
+
"imageHeight",
|
|
13
|
+
"intrinsicMatrix",
|
|
14
|
+
"distortionCoefficients",
|
|
15
|
+
"calibratedAt"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schema": {
|
|
19
|
+
"const": "twrmc/camera-calibration"
|
|
20
|
+
},
|
|
21
|
+
"version": {
|
|
22
|
+
"const": 1
|
|
23
|
+
},
|
|
24
|
+
"calibrationId": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"cameraId": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"imageWidth": {
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
"imageHeight": {
|
|
34
|
+
"type": "number"
|
|
35
|
+
},
|
|
36
|
+
"intrinsicMatrix": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "number"
|
|
40
|
+
},
|
|
41
|
+
"minItems": 9,
|
|
42
|
+
"maxItems": 9
|
|
43
|
+
},
|
|
44
|
+
"distortionCoefficients": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "number"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"calibratedAt": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"worldFromCameraMatrix": true,
|
|
54
|
+
"worldUnit": true
|
|
55
|
+
},
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://kubohiroya.github.io/turbowarp-camera-source/schema/editor-ros-camera-info.json",
|
|
4
|
+
"title": "Raw ROS camera_info shape (owner validates matrices and metadata)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"image_width",
|
|
8
|
+
"image_height",
|
|
9
|
+
"camera_name",
|
|
10
|
+
"camera_matrix",
|
|
11
|
+
"distortion_coefficients",
|
|
12
|
+
"turbowarp_camera_source"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"image_width": true,
|
|
16
|
+
"image_height": true,
|
|
17
|
+
"camera_name": true,
|
|
18
|
+
"camera_matrix": true,
|
|
19
|
+
"distortion_model": true,
|
|
20
|
+
"distortion_coefficients": true,
|
|
21
|
+
"rectification_matrix": true,
|
|
22
|
+
"projection_matrix": true,
|
|
23
|
+
"binning_x": true,
|
|
24
|
+
"binning_y": true,
|
|
25
|
+
"roi": true,
|
|
26
|
+
"turbowarp_camera_source": true
|
|
27
|
+
},
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
}
|