tracky-mouse 2.6.0 → 2.8.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.
Files changed (76) hide show
  1. package/README.md +2 -1
  2. package/audio/click-press.wav +0 -0
  3. package/audio/click-release.wav +0 -0
  4. package/audio/middle-click-press.wav +0 -0
  5. package/audio/middle-click-release.wav +0 -0
  6. package/audio/pause.wav +0 -0
  7. package/audio/unpause.wav +0 -0
  8. package/lib/face-landmarks-detection.min.js +1 -1
  9. package/lib/face_mesh/face_mesh.js +1 -1
  10. package/locales/ar/translation.json +8 -2
  11. package/locales/ar-EG/translation.json +8 -2
  12. package/locales/bg/translation.json +8 -2
  13. package/locales/bn/translation.json +8 -2
  14. package/locales/ca/translation.json +8 -2
  15. package/locales/ce/translation.json +8 -2
  16. package/locales/ceb/translation.json +9 -3
  17. package/locales/cs/translation.json +8 -2
  18. package/locales/da/translation.json +8 -2
  19. package/locales/de/translation.json +8 -2
  20. package/locales/el/translation.json +8 -2
  21. package/locales/emoji/emoji-translation-notes.md +1 -0
  22. package/locales/emoji/translation.json +12 -6
  23. package/locales/en/translation.json +8 -2
  24. package/locales/eo/translation.json +8 -2
  25. package/locales/es/translation.json +8 -2
  26. package/locales/eu/translation.json +8 -2
  27. package/locales/fa/translation.json +8 -2
  28. package/locales/fi/translation.json +8 -2
  29. package/locales/fr/translation.json +8 -2
  30. package/locales/gu/translation.json +8 -2
  31. package/locales/ha/translation.json +8 -2
  32. package/locales/he/translation.json +8 -2
  33. package/locales/hi/translation.json +8 -2
  34. package/locales/hr/translation.json +8 -2
  35. package/locales/hu/translation.json +8 -2
  36. package/locales/hy/translation.json +8 -2
  37. package/locales/id/translation.json +8 -2
  38. package/locales/it/translation.json +8 -2
  39. package/locales/ja/translation.json +8 -2
  40. package/locales/jv/translation.json +9 -3
  41. package/locales/ko/translation.json +8 -2
  42. package/locales/mr/translation.json +8 -2
  43. package/locales/ms/translation.json +8 -2
  44. package/locales/nan/translation.json +8 -2
  45. package/locales/nb/translation.json +8 -2
  46. package/locales/nl/translation.json +8 -2
  47. package/locales/pa/translation.json +8 -2
  48. package/locales/pl/translation.json +8 -2
  49. package/locales/pt/translation.json +8 -2
  50. package/locales/pt-BR/translation.json +8 -2
  51. package/locales/ro/translation.json +8 -2
  52. package/locales/ru/translation.json +8 -2
  53. package/locales/sk/translation.json +8 -2
  54. package/locales/sl/translation.json +8 -2
  55. package/locales/sr/translation.json +8 -2
  56. package/locales/sv/translation.json +8 -2
  57. package/locales/sw/translation.json +8 -2
  58. package/locales/ta/translation.json +8 -2
  59. package/locales/te/translation.json +8 -2
  60. package/locales/th/translation.json +8 -2
  61. package/locales/tl/translation.json +9 -3
  62. package/locales/tr/translation.json +8 -2
  63. package/locales/tt/translation.json +8 -2
  64. package/locales/uk/translation.json +8 -2
  65. package/locales/ur/translation.json +8 -2
  66. package/locales/uz/translation.json +8 -2
  67. package/locales/vi/translation.json +8 -2
  68. package/locales/war/translation.json +9 -3
  69. package/locales/zh/translation.json +8 -2
  70. package/locales/zh-simplified/translation.json +8 -2
  71. package/package.json +3 -1
  72. package/src/audio.js +145 -0
  73. package/src/autoscroll.js +189 -0
  74. package/src/input-simulator.js +518 -0
  75. package/tracky-mouse.css +32 -1
  76. package/tracky-mouse.js +457 -185
package/README.md CHANGED
@@ -147,7 +147,7 @@ This is the callback that you need to define to simulate pointer movement.
147
147
  This starts up the dwell clicker.
148
148
 
149
149
  Arguments:
150
- - `config.targets` (required): a CSS selector for the elements to click. Anything else will be ignored.
150
+ - `config.targets` (required): a CSS selector for the elements to click. Anything else will be ignored (except as an occluder).
151
151
  - `config.shouldDrag(el)` (optional): a function that returns true if the element should be dragged rather than simply clicked.
152
152
  - `config.noCenter(el)` (optional): a function that returns true if the element should be clicked anywhere on the element, rather than always at the center.
153
153
  - `config.retarget` (optional): an array of `{ from, to, withinMargin }` objects, which define rules for dynamically changing what is hovered/clicked when the mouse is over a different element.
@@ -156,6 +156,7 @@ Arguments:
156
156
  - `withinMargin` (optional): a number of pixels within which to consider the mouse over the `to` element. Default to infinity.
157
157
  - `config.isEquivalentTarget(el1, el2)` (optional): a function that returns true if two elements should be considered part of the same control, i.e. if clicking either should do the same thing. Elements that are equal are always considered equivalent even if you return false. This option is used for preventing the system from detecting occluding elements as separate controls, and rejecting the click. (When an occlusion is detected, it flashes a red box.)
158
158
  - `config.dwellClickEvenIfPaused(el)` (optional): a function that returns true if the element should be clicked even while dwell clicking is otherwise paused. Use this for a dwell clicking toggle button, so it's possible to resume dwell clicking. With dwell clicking it's important to let users take a break, since otherwise you have to constantly move the cursor in order to not click on things!
159
+ - `config.shouldClickThrough(el)` (optional): a function that returns true if the element should be totally ignored, allowing clicking on content behind it. Prefer `pointer-events: none` when possible, which will work for all input methods. Use this only if you need to differentiate input methods. Default: `(el) => el.matches(".tracky-mouse-click-through, .tracky-mouse-click-through *")`
159
160
  - `config.click({x, y, target})` (required): a function to trigger a click on the given target element.
160
161
  - `config.beforeDispatch()` (optional): a function to call before a pointer event is dispatched. For detecting un-trusted user gestures, outside of an event handler.
161
162
  - `config.afterDispatch()` (optional): a function to call after a pointer event is dispatched. For detecting un-trusted user gestures, outside of an event handler.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file