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/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.3.4';
207
+ var webSdkVersion = '2.3.5';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -13672,11 +13672,13 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13672
13672
  var _h = useCameraStore(useShallow(function (state) {
13673
13673
  return {
13674
13674
  camera: state.camera,
13675
- videoWidth: state.videoWidth
13675
+ videoWidth: state.videoWidth,
13676
+ videoHeight: state.videoHeight
13676
13677
  };
13677
13678
  })),
13678
13679
  camera = _h.camera,
13679
- videoWidth = _h.videoWidth;
13680
+ videoWidth = _h.videoWidth,
13681
+ videoHeight = _h.videoHeight;
13680
13682
  var _j = useSelfieGuidanceModelsContext(),
13681
13683
  onPredictionMade = _j.onPredictionMade,
13682
13684
  start = _j.start,
@@ -13719,7 +13721,7 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13719
13721
  onPredictionMade(useThrottledCallback(function (_a) {
13720
13722
  var face = _a.face;
13721
13723
  if (!camera) return;
13722
- 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;
13724
+ 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;
13723
13725
  setLastFace(face);
13724
13726
  setHeadTrackingSatisfied(!!face && !nearBoundary);
13725
13727
  setNumFramesWithoutFaces(face ? 0 : function (n) {