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.
Files changed (58) hide show
  1. package/CHANGELOG.md +35 -3
  2. package/README.md +34 -49
  3. package/homepage/example.css +4 -3
  4. package/homepage/example.js +42 -22
  5. package/homepage/index.html +19 -4
  6. package/i18n/fetch-languages-sheets.js +11 -1
  7. package/lib/RemoteCalibrator.min.js +1 -1
  8. package/lib/RemoteCalibrator.min.js.LICENSE.txt +19 -2
  9. package/lib/RemoteCalibrator.min.js.map +1 -1
  10. package/netlify.toml +1 -1
  11. package/package.json +25 -24
  12. package/src/WebGazer4RC/package-lock.json +198 -143
  13. package/src/WebGazer4RC/package.json +2 -2
  14. package/src/WebGazer4RC/src/index.mjs +161 -52
  15. package/src/WebGazer4RC/test/webgazer_test.js +1 -1
  16. package/src/check/checkScreenSize.js +84 -0
  17. package/src/components/buttons.js +21 -4
  18. package/src/components/input.js +82 -0
  19. package/src/components/keyBinder.js +5 -6
  20. package/src/components/language.js +5 -0
  21. package/src/components/mediaPermission.js +21 -0
  22. package/src/components/onCanvas.js +2 -2
  23. package/src/components/sound.js +30 -2
  24. package/src/components/swalOptions.js +6 -3
  25. package/src/components/utils.js +27 -1
  26. package/src/components/video.js +9 -6
  27. package/src/const.js +15 -0
  28. package/src/core.js +103 -48
  29. package/src/css/buttons.scss +34 -7
  30. package/src/css/components.scss +57 -0
  31. package/src/css/distance.scss +71 -1
  32. package/src/css/gaze.css +9 -5
  33. package/src/css/main.css +22 -6
  34. package/src/css/panel.scss +33 -3
  35. package/src/css/screenSize.css +6 -5
  36. package/src/css/swal.css +1 -1
  37. package/src/css/video.scss +19 -0
  38. package/src/distance/distance.js +194 -41
  39. package/src/distance/distanceCheck.js +241 -0
  40. package/src/distance/distanceTrack.js +165 -68
  41. package/src/{interpupillaryDistance.js → distance/interPupillaryDistance.js} +27 -19
  42. package/src/gaze/gaze.js +4 -7
  43. package/src/gaze/gazeAccuracy.js +9 -4
  44. package/src/gaze/gazeCalibration.js +14 -4
  45. package/src/gaze/gazeTracker.js +40 -9
  46. package/src/i18n.js +1 -1
  47. package/src/index.js +7 -2
  48. package/src/media/two-side-arrow.svg +1 -0
  49. package/src/media/two-sided-horizontal.svg +1 -0
  50. package/src/media/two-sided-vertical.svg +3 -0
  51. package/src/panel.js +130 -65
  52. package/src/screenSize.js +38 -5
  53. package/webpack.config.js +7 -4
  54. package/media/measureDistance.png +0 -0
  55. package/media/panel.png +0 -0
  56. package/media/screenSize.png +0 -0
  57. package/media/trackGaze.png +0 -0
  58. 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 = "14", NPM_VERSION = "7.20.5" }
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.3.0-rc.3",
4
- "description": "A toolbox for remote testing calibration and tracking.",
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.15.8",
33
- "autoprefixer": "^10.3.7",
34
- "babel-loader": "^8.2.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.4.0",
37
- "cssnano": "^5.0.8",
38
- "eslint": "^7.32.0",
39
- "eslint-webpack-plugin": "^3.0.1",
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": "^88.2.0",
42
- "husky": "^7.0.2",
43
- "lint-staged": "^11.2.3",
44
- "nodemon": "^2.0.13",
45
- "postcss-loader": "^6.1.1",
46
- "prettier": "^2.4.1",
47
- "sass": "^1.42.1",
48
- "sass-loader": "^12.1.0",
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.4",
51
+ "terser-webpack-plugin": "^5.2.5",
52
52
  "url-loader": "^4.1.1",
53
- "webpack": "^5.58.1",
54
- "webpack-cli": "^4.9.0",
53
+ "webpack": "^5.64.4",
54
+ "webpack-cli": "^4.9.1",
55
55
  "webpack-modules": "^1.0.0",
56
- "xlsx": "^0.17.2"
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": "^2.2.10",
64
+ "device-detector-js": "^3.0.0",
65
65
  "platform": "^1.3.6",
66
- "sweetalert2": "^11.1.7",
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
  }