remote-calibrator 0.2.1 → 0.2.2-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -0
  3. package/homepage/example.js +11 -13
  4. package/lib/RemoteCalibrator.min.js +1 -1
  5. package/lib/RemoteCalibrator.min.js.LICENSE.txt +1 -1
  6. package/lib/RemoteCalibrator.min.js.map +1 -1
  7. package/package.json +8 -8
  8. package/src/WebGazer4RC/.gitattributes +10 -0
  9. package/src/WebGazer4RC/LICENSE.md +15 -0
  10. package/src/WebGazer4RC/README.md +142 -0
  11. package/src/WebGazer4RC/gnu-lgpl-v3.0.md +163 -0
  12. package/src/WebGazer4RC/gplv3.md +636 -0
  13. package/src/WebGazer4RC/package-lock.json +1133 -0
  14. package/src/WebGazer4RC/package.json +28 -0
  15. package/src/WebGazer4RC/src/dom_util.mjs +27 -0
  16. package/src/WebGazer4RC/src/facemesh.mjs +150 -0
  17. package/src/WebGazer4RC/src/index.mjs +1213 -0
  18. package/src/WebGazer4RC/src/mat.mjs +301 -0
  19. package/src/WebGazer4RC/src/params.mjs +29 -0
  20. package/src/WebGazer4RC/src/pupil.mjs +109 -0
  21. package/src/WebGazer4RC/src/ridgeReg.mjs +104 -0
  22. package/src/WebGazer4RC/src/ridgeRegThreaded.mjs +161 -0
  23. package/src/WebGazer4RC/src/ridgeWeightedReg.mjs +125 -0
  24. package/src/WebGazer4RC/src/ridgeWorker.mjs +135 -0
  25. package/src/WebGazer4RC/src/util.mjs +348 -0
  26. package/src/WebGazer4RC/src/util_regression.mjs +240 -0
  27. package/src/WebGazer4RC/src/worker_scripts/mat.js +306 -0
  28. package/src/WebGazer4RC/src/worker_scripts/util.js +398 -0
  29. package/src/WebGazer4RC/test/regression_test.js +182 -0
  30. package/src/WebGazer4RC/test/run_tests_and_server.sh +24 -0
  31. package/src/WebGazer4RC/test/util_test.js +60 -0
  32. package/src/WebGazer4RC/test/webgazerExtract_test.js +40 -0
  33. package/src/WebGazer4RC/test/webgazer_test.js +160 -0
  34. package/src/WebGazer4RC/test/www_page_test.js +41 -0
  35. package/src/components/onCanvas.js +1 -2
  36. package/src/core.js +18 -0
  37. package/src/css/distance.scss +1 -0
  38. package/src/distance/distance.js +4 -1
  39. package/src/distance/distanceTrack.js +2 -2
  40. package/src/panel/panel.js +14 -5
  41. package/src/text.json +4 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - `nextHeadline` and `nextDescription` in panel options to change panel text after finishing all calibrations.
13
+ - Blind spot floating instructions move along with the crosshair.
14
+
15
+ ### Changed
16
+
17
+ - Changed "cross" to "crosshair" in default task descriptions.
18
+ - SLightly thinner crosshair line width.
19
+ - When not tracking near point, `nearPointCm` is stored as `[null, null]` instead of `null`.
20
+
21
+ ### Fixed
22
+
23
+ - Floating instructions don't show in blind spot test for head tracking, when near point is turned off.
24
+ - Dependency security issues.
25
+
10
26
  ## [0.2.1] - 2021-09-14
11
27
 
12
28
  Minor fixes and updates.
package/README.md CHANGED
@@ -147,6 +147,8 @@ You can customize the panel element with the following options.
147
147
  {
148
148
  headline: `To calibrate, press a button!`,
149
149
  description: ``,
150
+ nextHeadline: `Thanks for calibrating. Hit the button to continue.`,
151
+ nextDescription: ``,
150
152
  nextButton: `Done`,
151
153
  }
152
154
  ```
@@ -111,9 +111,7 @@ function makePanel(e) {
111
111
  },
112
112
  ],
113
113
  '#experiment',
114
- {
115
- _demoActivateAll: true,
116
- }
114
+ {}
117
115
  )
118
116
  changeClass(e.target, 'complete')
119
117
  }
@@ -126,9 +124,9 @@ function makePanel(e) {
126
124
  function measureDisplaySize(e) {
127
125
  RemoteCalibrator.displaySize(displayData => {
128
126
  printMessage(
129
- `Display size is ${displayData.value.displayWidthPx}px in width and ${
127
+ `Display size is ${displayData.value.displayWidthPx} px in width and ${
130
128
  displayData.value.displayHeightPx
131
- }px in height, measured at ${parseTimestamp(displayData.timestamp)}.`
129
+ } px in height, measured at ${parseTimestamp(displayData.timestamp)}.`
132
130
  )
133
131
 
134
132
  changeClass(e.target, 'complete')
@@ -143,9 +141,9 @@ function measureDisplaySize(e) {
143
141
  function measureScreenSize(e) {
144
142
  RemoteCalibrator.screenSize({}, screenData => {
145
143
  printMessage(
146
- `Screen size is ${screenData.value.screenDiagonalIn}in [Width: ${
144
+ `Screen size is ${screenData.value.screenDiagonalIn} in [Width: ${
147
145
  screenData.value.screenWidthCm
148
- }cm, Height: ${screenData.value.screenHeightCm}cm, PPI: ${
146
+ } cm, Height: ${screenData.value.screenHeightCm} cm, PPI: ${
149
147
  screenData.value.screenPpi
150
148
  }, PPI (Physical): ${
151
149
  screenData.value.screenPhysicalPpi
@@ -160,7 +158,7 @@ const measureDistanceCallback = distanceData => {
160
158
  printMessage(
161
159
  `The viewing distance is ${
162
160
  distanceData.value
163
- }cm, measured at ${parseTimestamp(distanceData.timestamp)}, by ${
161
+ } cm, measured at ${parseTimestamp(distanceData.timestamp)}, by ${
164
162
  distanceData.method
165
163
  } method.`
166
164
  )
@@ -201,11 +199,11 @@ function trackViewingDistance(e) {
201
199
  trackP.innerHTML = gotData(
202
200
  `The dynamic viewing distance is ${
203
201
  data.value.viewingDistanceCm
204
- }cm at ${parseTimestamp(data.timestamp)}, measured by ${
202
+ } cm at ${parseTimestamp(data.timestamp)}, measured by ${
205
203
  data.method
206
- } method. The near point is at [${data.value.nearPointCm.x}cm, ${
204
+ } method. The near point is at [${data.value.nearPointCm.x} cm, ${
207
205
  data.value.nearPointCm.y
208
- }cm] compared to the center of the screen.`
206
+ } cm] compared to the center of the screen.`
209
207
  )
210
208
  }
211
209
  )
@@ -300,9 +298,9 @@ function trackGaze(e) {
300
298
  },
301
299
  data => {
302
300
  gazeP.innerHTML = gotData(
303
- `The gaze position is [${data.value.x}px, ${
301
+ `The gaze position is [${data.value.x} px, ${
304
302
  data.value.y
305
- }px] at ${parseTimestamp(data.timestamp)}.`
303
+ } px] at ${parseTimestamp(data.timestamp)}.`
306
304
  )
307
305
  }
308
306
  )