@daboss2003/liveness-web 1.0.1 → 1.0.2

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 (3) hide show
  1. package/dist/ui.js +3 -2
  2. package/package.json +1 -1
  3. package/src/ui.ts +3 -2
package/dist/ui.js CHANGED
@@ -41,8 +41,9 @@ function createStyles() {
41
41
  display: flex;
42
42
  flex-direction: column;
43
43
  align-items: center;
44
- --oval-w: min(72vmin, ${OVAL_W}px);
45
- --oval-h: min(96vmin, ${OVAL_H}px);
44
+ /* Radii: keep oval inside viewport on mobile (diameter = 2× this), cap at desktop */
45
+ --oval-w: min(45vmin, ${OVAL_W}px);
46
+ --oval-h: min(60vmin, ${OVAL_H}px);
46
47
  /* Half-height of the visible oval for positioning (oval uses full w/h as radii) */
47
48
  --oval-half-h: var(--oval-h);
48
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daboss2003/liveness-web",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Web liveness detection using MediaPipe Face Landmarker (CDN)",
5
5
  "keywords": [
6
6
  "liveness",
package/src/ui.ts CHANGED
@@ -56,8 +56,9 @@ function createStyles(): HTMLStyleElement {
56
56
  display: flex;
57
57
  flex-direction: column;
58
58
  align-items: center;
59
- --oval-w: min(72vmin, ${OVAL_W}px);
60
- --oval-h: min(96vmin, ${OVAL_H}px);
59
+ /* Radii: keep oval inside viewport on mobile (diameter = 2× this), cap at desktop */
60
+ --oval-w: min(45vmin, ${OVAL_W}px);
61
+ --oval-h: min(60vmin, ${OVAL_H}px);
61
62
  /* Half-height of the visible oval for positioning (oval uses full w/h as radii) */
62
63
  --oval-half-h: var(--oval-h);
63
64
  }