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

ng-angle-control

v5.0.0

Published

Angular package that provide one reusable component for change angle value by using mouse dragging.

Downloads

344

Readme

rotate-control

This library was generated with Angular CLI version 16.1.2.

Description

This Package is fully supported with angular's various version and written in angular. This provide simple drag UI for change angle. Package is configurable with multiple directives and support two way bindind.

Preview of control

Preview of control

Live Demo Here

How to Use Package

Import RotateControlModule into your app.module.ts like Below :

import { RotateControlModule } from 'rotate-control';
.
.
@NgModule({
    imports: [
        ...
        RotateControlModule
    ]
});

In Your HTML Template file of angular, Just Use rotate-control selecter like below :

<rotate-control [(angle)]="angle"></rotate-control>

Configuration Options

Option | Purpose ------------ | ------------- angle | input/output value binder. used for two way binding like ngModel radius | radius of circle of rotate-control (control's Size). Value should be in between 15 - 50 (in px). Default Value: 50 borderColor | border-color property of control. You can change UI's border color by this property (hex code is supported). Default value: "#000" borderWidth | set border width in UI. value should be in between 1 - 10 (in Px). Default Value : 1 valueContainerClass | External class that can change UI of control's value preview. default is ""

Events

Event | Purpose ------|--------- angleChange | Fire and return angle value in $event when drag pin in control. onAngleChangeEnd | Fire and return angle value in $event when drag end and mouse up event of pin in control.

Examples

<rotate-control [angle]="angle" (angleChange)="angleChange($event)"></rotate-control>

you can combine above both with one Directive like below :

<rotate-control [(angle)]="angle"></rotate-control>

in above merged directive, angle variable will be automatic update on value changes.

Fully Functional Control look like this :

<rotate-control [(angle)]="angle" radius="30" borderColor="#ff0000" borderWidth="2" valueContainerClass="preview" (onAngleChangeEnd)="afterAngleChange($event)"></rotate-control>

Help

Each and every things that on a internet is written and develop by someone with lot's of efforts and time. You can empower them to do more and best work for others who can freely use that by Buying them a coffee.

Buy me a Coffee

Further help

To get more help on the this Control. Contact me on this email [email protected]