npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ad-pattern-lock

v1.0.2

Published

An react library for android like pattern lock for your web app. It's highly customizable according to your need

Downloads

1

Readme

ADPatternLock

An react library for android like pattern lock for your web app. It's highly customizable according to your need.

Installation

npm install ad-pattern-lock

How to use

import React, { Component } from "react";
import AdPatternLock from "ad-pattern-lock";
import 'ad-pattern-lock/dist/main.css';

// in you render method
<AdPatternLock onCompletePattern={(pattern) => {console.log(pattern)}/>

Props API

| props | default | Description | | ------------- | ------------- | ------------- | | matrix | [3,3] | m*n grid for the pattern | | backgroundColor | #556b2f | Background color for the pattern | | allowRepeat | false | Will allow repetition of dots if true | | delimiter | | Delimeter used in pattern output | | patternDotsBackgroundColor | #fff | background color for the inner dots of pattern circle | | patternDotsRadius | 5 | radius for the pattern dots | | patternCircleRadius | 25 | radius for the pattern circle | | patternCircleMargin | 20 | margin for the pattern circle (margin and radius used to calculate width and height of the pattern component) | | patternCircleVisible | false | if true circle surrounds the pattern dots | | patternCircleVisibleBorder| "3px solid #fff" | border property for pattern circle | | patternCircleHoverVisible | false | if true circle surrounds the pattern dots on hover | | patternCircleHoverBorder | "3px solid #afeeee" | border property for pattern circle on hover | | patternLinesHeight | 10 | height of the pattern lines[usually double of radius of pattern dots] | | patternLinesBackgroundColor | rgba(255,255,255,.7) | color of pattern lines | | minimumPatternLength| 2 | minimum pattern length | onCompletePattern | null | callback to receive the pattern seperated by the delimeter|

License

Copyright (c) [2019] [ankitdeveloper]