Socket
Socket
Sign inDemoInstall

@eastdesire/jscolor

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.4.1

7

package.json
{
"name": "@eastdesire/jscolor",
"version": "2.4.0",
"description": "Simple web color picker with opacity channel. Supports CSS color formats such as RGBA and HEX.",
"version": "2.4.1",
"description": "Simple web color picker with opacity channel and palette. Supports CSS colors such as RGBA and HEX.",
"main": "jscolor.js",

@@ -20,2 +20,4 @@ "scripts": {

"picker",
"palette",
"swatch",
"input",

@@ -37,3 +39,2 @@ "chooser",

"mobile",
"swatch",
"popup",

@@ -40,0 +41,0 @@ "widget",

# jscolor - JavaScript Color picker with Opacity
**jscolor.js** is a **HEX** and **RGBA** color picker with opacity (alpha channel) support.
**jscolor.js** is a **HEX** and **RGBA** color picker with palette and opacity (alpha channel) support.

@@ -19,6 +19,32 @@ It aims to stay super easy both for developers to install and for web users to use.

[<img src="https://jscolor.com/hosted/gui/jscolor-2.2.4.png" alt="Screenshots of jscolor">](https://jscolor.com/examples)
## Adjusting defaults & Palette (swatch)
```html
<script>
jscolor.presets.default = {
width: 201,
height: 81,
position: 'right',
previewPosition: 'right',
backgroundColor: '#f3f3f3',
borderColor: '#bbbbbb',
controlBorderColor: '#bbbbbb',
palette: [
'#000000', '#7d7d7d', '#870014', '#ec1c23', '#ff7e26',
'#fef100', '#22b14b', '#00a1e7', '#3f47cc', '#a349a4',
'#ffffff', '#c3c3c3', '#b87957', '#feaec9', '#ffc80d',
'#eee3af', '#b5e61d', '#99d9ea', '#7092be', '#c8bfe7',
],
paletteCols: 10,
hideOnPaletteClick: true,
}
</script>
```
[<img src="https://jscolor.com/hosted/gui/jscolor-2.4.1.png" alt="Screenshots of jscolor">](https://jscolor.com/examples)
## Usage examples

@@ -25,0 +51,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc