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

circular-gauge-color-picker-package

v1.0.0

Published

A circular color picker in ionic 2

Downloads

3

Readme

Circular Gauge Color Picker

This is a simple circular color picker for your Ionic 2+ app.

The module can be used on browser and mobile.

Alt text (Background color is transparent by default)

Current version is a working beta (0.2.x). Do not hesitate to give me your feedback.

Installation

With node installed, run the following command:

 $ npm install --save circular-gauge-color-picker-package

Using this module in an Ionic app

Little description of how to import the component in your Ionic 2 App.

// Import the module and component
import {
  CircularColorPickerModule,
  ColorPickerComponent,
  ColorPickerSourceProvider
} from 'circular-gauge-color-picker-package';

@NgModule({
  declarations: [
     // ...
  ],
  imports: [
    // ... ,
    CircularColorPickerModule
  ],
  entryComponents: [
    // ... ,
    ColorPickerComponent
  ],
  providers: [
    // ... ,
   ColorPickerSourceProvider
  ]
})
export class AppModule {}

Used this module in ionic page

Add the module in an ionic page with this line.

<color-picker [connectingLineColor]="'yellow'" (colorChanged)="newcolor($event)" ></color-picker>

The module comes with differents and optionals parameters described as follow :

/* ================ INPUTS =================*/
[connectingLineColor]="'yellow'" /* Connecting line betwen center circle and gauge user click (default : yellow) */

[connectingLineThickness]="5" /*  Connecting line thickness (default : 5) */

[enable]="true" /* Enable or disable color picker (default is true, enabled) */

[outputColorFormat]="'HEX'" /* Select output format value (default is 'HEX')(possibilities : 'RGBW' - 'RGB' - 'HEX') */

[imageB64Source]="base64Imagesource"
/* This component allow you to change to background image of circular color picker. 
 Image should be 300x300px and type of : "data:image/png;base64 ... " 
 Transparent pixels will be ignored on user selection */
 
[selectedColor]="#ff0100" /* Pre-selected color (no default pre-selected color) */
 
 /* ================= OUTPUTS ================= */
(colorChanged)="newcolor($event)"  /* Subscribe to event when user as selected a new color */

(isUsed)="func($event)" /* Subscribe to event allowing you to know if user is using the color picker ($event is boolean value) */

You should take care of colorChanged event. It will be called each time a new color is found (if user slide on color picker, called a lot of times).

You can use the isUsed event output in order to block page scrolling/change in your application.

newcolor(color){
 selectedColor = color;
}

License

Under MIT License. See License file.