How to use the ngx-color.toState function in ngx-color

To help you get started, we’ve selected a few ngx-color examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scttcper / ngx-color / src / lib / components / alpha / alpha-picker.component.ts View on Github external
ngOnChanges() {
    if (this.direction === 'vertical') {
      this.pointer.transform = 'translate(-3px, -9px)';
    }
    this.setState(toState(this.color, this.oldHue));
  }
  handlePickerChange({ data, $event }) {
github scttcper / ngx-color / src / lib / components / hue / hue-picker.component.ts View on Github external
ngOnChanges() {
    if (this.direction === 'vertical') {
      this.pointer.transform = 'translate(-3px, -9px)';
    }
    this.setState(toState(this.color, this.oldHue));
  }
  handlePickerChange({ data, $event }) {

ngx-color

A Collection of Color Pickers from Sketch, Photoshop, Chrome & more

MIT
Latest version published 12 months ago

Package Health Score

64 / 100
Full package analysis