remote-calibrator 0.3.0-rc.3 → 0.5.0-beta.10
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/CHANGELOG.md +35 -3
- package/README.md +34 -49
- package/homepage/example.css +4 -3
- package/homepage/example.js +42 -22
- package/homepage/index.html +19 -4
- package/i18n/fetch-languages-sheets.js +11 -1
- package/lib/RemoteCalibrator.min.js +1 -1
- package/lib/RemoteCalibrator.min.js.LICENSE.txt +19 -2
- package/lib/RemoteCalibrator.min.js.map +1 -1
- package/netlify.toml +1 -1
- package/package.json +25 -24
- package/src/WebGazer4RC/package-lock.json +198 -143
- package/src/WebGazer4RC/package.json +2 -2
- package/src/WebGazer4RC/src/index.mjs +161 -52
- package/src/WebGazer4RC/test/webgazer_test.js +1 -1
- package/src/check/checkScreenSize.js +84 -0
- package/src/components/buttons.js +21 -4
- package/src/components/input.js +82 -0
- package/src/components/keyBinder.js +5 -6
- package/src/components/language.js +5 -0
- package/src/components/mediaPermission.js +21 -0
- package/src/components/onCanvas.js +2 -2
- package/src/components/sound.js +30 -2
- package/src/components/swalOptions.js +6 -3
- package/src/components/utils.js +27 -1
- package/src/components/video.js +9 -6
- package/src/const.js +15 -0
- package/src/core.js +103 -48
- package/src/css/buttons.scss +34 -7
- package/src/css/components.scss +57 -0
- package/src/css/distance.scss +71 -1
- package/src/css/gaze.css +9 -5
- package/src/css/main.css +22 -6
- package/src/css/panel.scss +33 -3
- package/src/css/screenSize.css +6 -5
- package/src/css/swal.css +1 -1
- package/src/css/video.scss +19 -0
- package/src/distance/distance.js +194 -41
- package/src/distance/distanceCheck.js +241 -0
- package/src/distance/distanceTrack.js +165 -68
- package/src/{interpupillaryDistance.js → distance/interPupillaryDistance.js} +27 -19
- package/src/gaze/gaze.js +4 -7
- package/src/gaze/gazeAccuracy.js +9 -4
- package/src/gaze/gazeCalibration.js +14 -4
- package/src/gaze/gazeTracker.js +40 -9
- package/src/i18n.js +1 -1
- package/src/index.js +7 -2
- package/src/media/two-side-arrow.svg +1 -0
- package/src/media/two-sided-horizontal.svg +1 -0
- package/src/media/two-sided-vertical.svg +3 -0
- package/src/panel.js +130 -65
- package/src/screenSize.js +38 -5
- package/webpack.config.js +7 -4
- package/media/measureDistance.png +0 -0
- package/media/panel.png +0 -0
- package/media/screenSize.png +0 -0
- package/media/trackGaze.png +0 -0
- package/src/displaySize.js +0 -28
package/netlify.toml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Settings in the [build] context are global and are applied to all contexts
|
2
2
|
# unless otherwise overridden by more specific contexts.
|
3
3
|
[build]
|
4
|
-
environment = { NODE_VERSION = "
|
4
|
+
environment = { NODE_VERSION = "16", NPM_VERSION = "8.1.3" }
|
5
5
|
# Directory to change to before starting a build.
|
6
6
|
# This is where we will look for package.json/.nvmrc/etc.
|
7
7
|
# If not set, defaults to the root directory.
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "remote-calibrator",
|
3
|
-
"version": "0.
|
4
|
-
"description": "
|
3
|
+
"version": "0.5.0-beta.10",
|
4
|
+
"description": "Useful calibration tools for remote psychophysics experiments.",
|
5
5
|
"main": "lib/RemoteCalibrator.min.js",
|
6
6
|
"directories": {
|
7
7
|
"lib": "lib",
|
@@ -29,31 +29,31 @@
|
|
29
29
|
},
|
30
30
|
"homepage": "https://github.com/EasyEyes/remote-calibrator#readme",
|
31
31
|
"devDependencies": {
|
32
|
-
"@babel/core": "^7.
|
33
|
-
"autoprefixer": "^10.
|
34
|
-
"babel-loader": "^8.2.
|
32
|
+
"@babel/core": "^7.16.0",
|
33
|
+
"autoprefixer": "^10.4.0",
|
34
|
+
"babel-loader": "^8.2.3",
|
35
35
|
"clean-webpack-plugin": "^4.0.0",
|
36
|
-
"css-loader": "^6.
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"eslint
|
36
|
+
"css-loader": "^6.5.1",
|
37
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
38
|
+
"cssnano": "^5.0.12",
|
39
|
+
"eslint": "^8.4.0",
|
40
|
+
"eslint-webpack-plugin": "^3.1.1",
|
40
41
|
"express": "^4.17.1",
|
41
|
-
"googleapis": "^
|
42
|
-
"husky": "^7.0.
|
43
|
-
"lint-staged": "^
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"sass": "^
|
48
|
-
"
|
49
|
-
"style-loader": "^3.3.0",
|
42
|
+
"googleapis": "^92.0.0",
|
43
|
+
"husky": "^7.0.4",
|
44
|
+
"lint-staged": "^12.1.2",
|
45
|
+
"postcss-loader": "^6.2.1",
|
46
|
+
"prettier": "^2.5.1",
|
47
|
+
"sass": "^1.44.0",
|
48
|
+
"sass-loader": "^12.3.0",
|
49
|
+
"style-loader": "^3.3.1",
|
50
50
|
"svg-inline-loader": "^0.8.2",
|
51
|
-
"terser-webpack-plugin": "^5.2.
|
51
|
+
"terser-webpack-plugin": "^5.2.5",
|
52
52
|
"url-loader": "^4.1.1",
|
53
|
-
"webpack": "^5.
|
54
|
-
"webpack-cli": "^4.9.
|
53
|
+
"webpack": "^5.64.4",
|
54
|
+
"webpack-cli": "^4.9.1",
|
55
55
|
"webpack-modules": "^1.0.0",
|
56
|
-
"xlsx": "^0.17.
|
56
|
+
"xlsx": "^0.17.4"
|
57
57
|
},
|
58
58
|
"lint-staged": {
|
59
59
|
"*.js": "eslint --cache --fix",
|
@@ -61,9 +61,10 @@
|
|
61
61
|
},
|
62
62
|
"dependencies": {
|
63
63
|
"animate.css": "^4.1.1",
|
64
|
-
"device-detector-js": "^
|
64
|
+
"device-detector-js": "^3.0.0",
|
65
65
|
"platform": "^1.3.6",
|
66
|
-
"
|
66
|
+
"react-fast-compare": "^3.2.0",
|
67
|
+
"sweetalert2": "^11.2.2",
|
67
68
|
"tinycolor2": "^1.4.2",
|
68
69
|
"tone": "^14.7.77"
|
69
70
|
}
|