@ahmed_hani/dot-face-auto-capture 8.0.0 → 8.0.1
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/events.mjs +4 -4
- package/events.umd.js +1 -1
- package/index.mjs +4280 -4308
- package/index.umd.js +24 -24
- package/package.json +1 -1
package/events.mjs
CHANGED
|
@@ -21,23 +21,23 @@ const c = {};
|
|
|
21
21
|
c.LOADING = "loading", c.ERROR = "error", c.WAITING = "waiting", c.RUNNING = "running", c.COMPLETE = "complete";
|
|
22
22
|
const u = c, N = { ...u };
|
|
23
23
|
N.DONE = "done";
|
|
24
|
-
const
|
|
24
|
+
const p = N, r = {};
|
|
25
25
|
r.EYE_NOT_PRESENT = "eye_not_present";
|
|
26
26
|
const O = r, t = {};
|
|
27
27
|
t.CANDIDATE_SELECTION = "candidate_selection", t.FACE_TOO_CLOSE = "face_too_close", t.FACE_TOO_FAR = "face_too_far", t.FACE_CENTERING = "face_centering", t.FACE_NOT_PRESENT = "face_not_present", t.SHARPNESS_TOO_LOW = "sharpness_too_low", t.BRIGHTNESS_TOO_LOW = "brightness_too_low", t.BRIGHTNESS_TOO_HIGH = "brightness_too_high", t.DEVICE_PITCHED = "device_pitched", t.LEFT_EYE_NOT_PRESENT = "left_" + O.EYE_NOT_PRESENT, t.RIGHT_EYE_NOT_PRESENT = "right_" + O.EYE_NOT_PRESENT, t.MOUTH_NOT_PRESENT = "mouth_not_present", t.MOUTH_SCORE_TOO_HIGH = "mouth_score_too_high", t.MOUTH_SCORE_TOO_LOW = "mouth_score_too_low";
|
|
28
28
|
const E = t, o = {};
|
|
29
29
|
o.isPresent = E.FACE_NOT_PRESENT, o.isNotPitched = E.DEVICE_PITCHED, o.isNotSmall = E.FACE_TOO_FAR, o.isNotLarge = E.FACE_TOO_CLOSE, o.isNotOutOfBounds = E.FACE_CENTERING, o.isNotDim = E.BRIGHTNESS_TOO_LOW, o.isNotBright = E.BRIGHTNESS_TOO_HIGH, o.isSharp = E.SHARPNESS_TOO_LOW, o.isLeftEyePresent = E.LEFT_EYE_NOT_PRESENT, o.isRightEyePresent = E.RIGHT_EYE_NOT_PRESENT, o.isMouthPresent = E.MOUTH_NOT_PRESENT, o.isMouthScoreNotTooHigh = E.MOUTH_SCORE_TOO_HIGH, o.isMouthScoreNotTooLow = E.MOUTH_SCORE_TOO_LOW;
|
|
30
|
-
const
|
|
30
|
+
const P = o;
|
|
31
31
|
var R = ((e) => (e.CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", e.CONTROL = "face-auto-capture:control", e.DETECTION_CHANGED = "face-auto-capture:detection-changed", e.FACE_DETECTION = "face-auto-capture:face-detection", e.INSTRUCTION_CHANGED = "face-auto-capture:instruction-changed", e.STATE_CHANGED = "face-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "face-auto-capture:video-element-size", e))(R || {});
|
|
32
32
|
export {
|
|
33
33
|
u as AppStateValues,
|
|
34
34
|
C as ComponentCustomEvent,
|
|
35
35
|
I as ControlEventInstruction,
|
|
36
36
|
O as EyeInstructionCodeValues,
|
|
37
|
-
|
|
37
|
+
P as FaceCheckToInstructionCodeMap,
|
|
38
38
|
R as FaceCustomEvent,
|
|
39
39
|
E as FaceInstructionCodeValues,
|
|
40
|
-
|
|
40
|
+
p as LivenessStateValues,
|
|
41
41
|
A as RequestCaptureInstruction,
|
|
42
42
|
H as dispatchCaptureEvent,
|
|
43
43
|
h as dispatchControlEvent
|
package/events.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(t=typeof globalThis<"u"?globalThis:t||self,_(t["@innovatrics/dot-events-auto-capture"]={}))})(this,function(t){"use strict";const _={};_.CONTINUE_DETECTION="continue-detection",_.SWITCH_CAMERA="switch-camera",_.TOGGLE_MIRROR="toggle-mirror";const I=_,T={};T.FIRST_FRAME="first-frame",T.FIRST_VALID_FRAME="first-valid-frame";const d=T,O={};O.REQUEST_CAPTURE="dot-custom-event:request-capture";const u=O,r=(E,a)=>{const c={};c.detail=a,document.dispatchEvent(new CustomEvent(E,c))},
|
|
1
|
+
(function(t,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(t=typeof globalThis<"u"?globalThis:t||self,_(t["@innovatrics/dot-events-auto-capture"]={}))})(this,function(t){"use strict";const _={};_.CONTINUE_DETECTION="continue-detection",_.SWITCH_CAMERA="switch-camera",_.TOGGLE_MIRROR="toggle-mirror";const I=_,T={};T.FIRST_FRAME="first-frame",T.FIRST_VALID_FRAME="first-valid-frame";const d=T,O={};O.REQUEST_CAPTURE="dot-custom-event:request-capture";const u=O,r=(E,a)=>{const c={};c.detail=a,document.dispatchEvent(new CustomEvent(E,c))},h=(E,a)=>{const c={};c.instruction=a,r(E,c)};function p(E){const a={};a.instruction=E;const c=a;r(u.REQUEST_CAPTURE,c)}const s={};s.LOADING="loading",s.ERROR="error",s.WAITING="waiting",s.RUNNING="running",s.COMPLETE="complete";const C=s,N={...C};N.DONE="done";const A=N,S={};S.EYE_NOT_PRESENT="eye_not_present";const i=S,e={};e.CANDIDATE_SELECTION="candidate_selection",e.FACE_TOO_CLOSE="face_too_close",e.FACE_TOO_FAR="face_too_far",e.FACE_CENTERING="face_centering",e.FACE_NOT_PRESENT="face_not_present",e.SHARPNESS_TOO_LOW="sharpness_too_low",e.BRIGHTNESS_TOO_LOW="brightness_too_low",e.BRIGHTNESS_TOO_HIGH="brightness_too_high",e.DEVICE_PITCHED="device_pitched",e.LEFT_EYE_NOT_PRESENT="left_"+i.EYE_NOT_PRESENT,e.RIGHT_EYE_NOT_PRESENT="right_"+i.EYE_NOT_PRESENT,e.MOUTH_NOT_PRESENT="mouth_not_present",e.MOUTH_SCORE_TOO_HIGH="mouth_score_too_high",e.MOUTH_SCORE_TOO_LOW="mouth_score_too_low";const o=e,n={};n.isPresent=o.FACE_NOT_PRESENT,n.isNotPitched=o.DEVICE_PITCHED,n.isNotSmall=o.FACE_TOO_FAR,n.isNotLarge=o.FACE_TOO_CLOSE,n.isNotOutOfBounds=o.FACE_CENTERING,n.isNotDim=o.BRIGHTNESS_TOO_LOW,n.isNotBright=o.BRIGHTNESS_TOO_HIGH,n.isSharp=o.SHARPNESS_TOO_LOW,n.isLeftEyePresent=o.LEFT_EYE_NOT_PRESENT,n.isRightEyePresent=o.RIGHT_EYE_NOT_PRESENT,n.isMouthPresent=o.MOUTH_NOT_PRESENT,n.isMouthScoreNotTooHigh=o.MOUTH_SCORE_TOO_HIGH,n.isMouthScoreNotTooLow=o.MOUTH_SCORE_TOO_LOW;const f=n;var R=(E=>(E.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",E.CONTROL="face-auto-capture:control",E.DETECTION_CHANGED="face-auto-capture:detection-changed",E.FACE_DETECTION="face-auto-capture:face-detection",E.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",E.STATE_CHANGED="face-auto-capture:state-changed",E.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",E))(R||{});t.AppStateValues=C,t.ComponentCustomEvent=u,t.ControlEventInstruction=I,t.EyeInstructionCodeValues=i,t.FaceCheckToInstructionCodeMap=f,t.FaceCustomEvent=R,t.FaceInstructionCodeValues=o,t.LivenessStateValues=A,t.RequestCaptureInstruction=d,t.dispatchCaptureEvent=p,t.dispatchControlEvent=h,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|