jPicker (Adapted from version 1.1.6)
jQuery Plugin for Photoshop style color picker
- Copyright:
- (c) 2010 Christopher T. Tillman Digital Magic Productions, Inc. (http://www.digitalmagicpro.com/) FREE to use, alter, copy, sell, and especially ENHANCE
- License:
- MIT Painstakingly ported from John Dyers' excellent work on his own color picker based on the Prototype framework. John Dyers' website: http://johndyer.name Color Picker page: http://johndyer.name/photoshop-like-javascript-color-picker/
- Source:
Classes
Methods
(static) jPicker($) → {external:jQuery}
Parameters:
Name | Type | Description |
---|---|---|
$ |
external:jQuery | The jQuery object, |
Returns:
- Type
- external:jQuery
(inner) isNullish(val) → {boolean}
Whether a value is null
or undefined
.
Parameters:
Name | Type | Description |
---|---|---|
val |
any |
Returns:
- Type
- boolean
Type Definitions
CancelCallback(activeColor, cancelButton) → {void}
Parameters:
Name | Type | Description |
---|---|---|
activeColor |
external:jQuery.jPicker.Color | |
cancelButton |
external:jQuery |
Returns:
Return value not used.
- Type
- void
CommitCallback(activeColor, okButton) → {void}
Parameters:
Name | Type | Description |
---|---|---|
activeColor |
external:jQuery.jPicker.Color | |
okButton |
external:jQuery |
Returns:
Return value not used.
- Type
- void
HSV
Type:
Properties:
Name | Type | Description |
---|---|---|
h |
Integer | |
s |
Integer | |
v |
Integer |
JPickerInit
Type:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
a |
Integer |
<optional> |
|
b |
Integer |
<optional> |
|
g |
Integer |
<optional> |
|
h |
Integer |
<optional> |
|
r |
Integer |
<optional> |
|
s |
Integer |
<optional> |
|
v |
Integer |
<optional> |
|
hex |
string |
<optional> |
|
ahex |
string |
<optional> |
LiveCallback(ui, context) → {void}
Will be bound to active jQuery.jPicker.Color
.
Parameters:
Name | Type | Description |
---|---|---|
ui |
external:jQuery | |
context |
Element |
Returns:
- Type
- void
MinMaxRangeX
Type:
Properties:
Name | Type | Description |
---|---|---|
minX |
Float | |
maxX |
Float | |
rangeX |
Float |
MinMaxRangeXY
Type:
MinMaxRangeY
Type:
Properties:
Name | Type | Description |
---|---|---|
minY |
Float | |
maxY |
Float | |
rangeY |
Float |
RGB
Type:
Properties:
Name | Type | Description |
---|---|---|
r |
Integer | |
g |
Integer | |
b |
Integer |
RGBA
Type:
Properties:
Name | Type | Description |
---|---|---|
r |
Integer | |
g |
Integer | |
b |
Integer | |
a |
Integer |
SliderOptions
Type:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arrow |
external:jQuery | PlainObject |
Properties
|
||||||||||||
map |
PlainObject |
Properties
|