Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "monkeysee", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A drop-in library for adding face-controlled mouse pointers with computer vision via BRFv4 🙈", | ||
@@ -5,0 +5,0 @@ "main": "dist/monkeysee.js", |
@@ -62,2 +62,3 @@ const {trimStart} = require('lodash') | ||
this.initAndMaybeReadWASMBinary() | ||
document.body.classList.add('monkeysee-stopped') | ||
} | ||
@@ -70,2 +71,4 @@ | ||
this.toggleDebugger(this.opts.debug) | ||
document.body.classList.add('monkeysee-started') | ||
document.body.classList.remove('monkeysee-stopped') | ||
@@ -90,2 +93,5 @@ window.navigator.mediaDevices.getUserMedia({ | ||
stop () { | ||
document.body.classList.remove('monkeysee-started') | ||
document.body.classList.add('monkeysee-stopped') | ||
if (this.isTracking) { | ||
@@ -132,3 +138,4 @@ this.isTracking = false | ||
requestAnimationFrame(() => this.trackFaces()) | ||
// Only loop if we're tracking | ||
this.isTracking && requestAnimationFrame(() => this.trackFaces()) | ||
} | ||
@@ -135,0 +142,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20775591
4315