open-index/open-npm huggingface dataset:
npm package: @realign-zone/tiny-color-picker
Description: A tiny color picker.
Author: ReAlign
Latest version: 0.0.4

# tiny-color-picker

[![NPM version][npm-image]][npm-url]

[npm-image]: https://img.shields.io/npm/v/@realign-zone/tiny-color-picker.svg?longCache=true&style=for-the-badge
[npm-url]: https://www.npmjs.com/package/@realign-zone/tiny-color-picker

> A tiny color picker.

## API

```js
// <script> or import or require
new TinyColorPicker({
    el: String, // dom id, only id
    oriColor: String, // origin color：hex / rgba
    debounce: Number, // debounce delay, unit is ms, max is 5000 ms
    offsetX: Number, // X offset, relative to el-X
    offsetY: Number, // Y offset, relative to el-Y + el-height
    // color change callback
    change(cObj = {}, dom) {
        // cObj = { hex: '#...', rgba: 'rgba(...)' }
        // dom = DOM, inject elDom, as $(`#${el}`)
    }
});
```

## Command

```bash
# dev 1 + 2
# 1. main dev
$ npm start
# 2. gulp: make template and css
$ npm run gulp

# build
$ npm run build
```