New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fedo-face-alignment

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fedo-face-alignment

This package provides a custom Web Component called `fedo-face-alignment`, designed to detect the device orientation and display a UI element that shows eyes and nose markers to help align a face properly.

  • 2.0.1-beta.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-50%
Maintainers
0
Weekly downloads
 
Created
Source

Fedo Face Alignment

This package provides a custom Web Component called fedo-face-alignment, designed to detect the device orientation and display a UI element that shows eyes and nose markers to help align a face properly.

Features

  • UI Element for Face Alignment: Displays a visual marker that consists of an image showing the positions for eyes and nose.
  • Device Orientation Support: Detects device orientation and updates the face alignment marker based on the tilt of the device.
    • Displays a neutral marker when orientation cannot be determined.
    • Shows a good alignment marker when the device is within the correct range.
    • Shows an error marker when the device is tilted too far.

Installation

To install the package, you can use npm:

npm install fedo-face-alignment

To import the package in your application:

import 'fedo-face-alignment';

Usage:

<fedo-face-alignment></fedo-face-alignment>

To access gyroscope feature:

async function requestOrientation() {

    try {
        await DeviceOrientationEvent.requestPermission();
    }

    catch (e) {
        console.error(e);
    }

}

Keywords

FAQs

Package last updated on 25 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc