idmission-web-sdk 2.3.4 → 2.3.5
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/dist/components/video_signature_capture/VideoSignatureCapture.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +6 -4
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +6 -4
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +6 -4
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.3.
|
|
214
|
+
var webSdkVersion = '2.3.5';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -23578,11 +23578,13 @@
|
|
|
23578
23578
|
var _h = useCameraStore(useShallow(function (state) {
|
|
23579
23579
|
return {
|
|
23580
23580
|
camera: state.camera,
|
|
23581
|
-
videoWidth: state.videoWidth
|
|
23581
|
+
videoWidth: state.videoWidth,
|
|
23582
|
+
videoHeight: state.videoHeight
|
|
23582
23583
|
};
|
|
23583
23584
|
})),
|
|
23584
23585
|
camera = _h.camera,
|
|
23585
|
-
videoWidth = _h.videoWidth
|
|
23586
|
+
videoWidth = _h.videoWidth,
|
|
23587
|
+
videoHeight = _h.videoHeight;
|
|
23586
23588
|
var _j = useSelfieGuidanceModelsContext(),
|
|
23587
23589
|
onPredictionMade = _j.onPredictionMade,
|
|
23588
23590
|
start = _j.start,
|
|
@@ -23625,7 +23627,7 @@
|
|
|
23625
23627
|
onPredictionMade(f(function (_a) {
|
|
23626
23628
|
var face = _a.face;
|
|
23627
23629
|
if (!camera) return;
|
|
23628
|
-
var nearBoundary = (face === null || face === void 0 ? void 0 : face.box.xMin) < videoWidth * 0.2 || (face === null || face === void 0 ? void 0 : face.box.xMax) > videoWidth * 0.8;
|
|
23630
|
+
var nearBoundary = (face === null || face === void 0 ? void 0 : face.box.xMin) < videoWidth * 0.2 || (face === null || face === void 0 ? void 0 : face.box.xMax) > videoWidth * 0.8 || (face === null || face === void 0 ? void 0 : face.box.yMin) < videoHeight * 0.1 || (face === null || face === void 0 ? void 0 : face.box.yMax) > videoHeight * 0.9;
|
|
23629
23631
|
setLastFace(face);
|
|
23630
23632
|
setHeadTrackingSatisfied(!!face && !nearBoundary);
|
|
23631
23633
|
setNumFramesWithoutFaces(face ? 0 : function (n) {
|