Releases: EastDesire/jscolor
Releases · EastDesire/jscolor
jscolor-2.4.2
- Fixed infinite loop bug that occurs when sliderSize or paletteCols is set to 0
- Added static method jscolor.ready() that calls given function as soon as jscolor is initialized
- Current color is now also reflected in 'data-current-color' attribute of the target element
- Public method getCurrentFormat() renamed back to getFormat()
jscolor-2.4.1
- Added support for custom palette (swatch)
- Added options: palette, paletteCols, paletteHeight, paletteSpacing, hideOnPaletteClick
- Added value for option paletteCols into presets 'small', 'medium', and 'large'
jscolor-2.4.0
- Added module wrapper to allow using jscolor as a module
- jscolor.init() method made public
jscolor-2.3.3
- added option hideOnLeave
jscolor-2.3.2
- limiting Close button's maximum width to prevent overflow
jscolor-2.3.1
- the 'refine' option was removed
- added sliderSize values into presets 'small', 'medium', 'large'
- added buttonColor values into presets 'light' and 'dark'
- presets specify colors in rgba format
- linked elements now have their jscolor-related data stored in a single property '_data_jscolor'
jscolor-2.3.0
- the 'hash' option is enabled by default
- fixed bug that the 'change' event wasn't re-triggered upon leaving the input field when its value was programmatically refined
- if dragging the alpha slider while format is 'any', the 'rgba' format will be forced
- the install() method now accepts an optional argument rootNode
- added method getFormat() that returns the color format currently in effect
- added possibility to specify the 'default' preset in the 'preset' option (useful for raising its priority over other presets)
- color-related options now have their default values in rgba format
jscolor-2.2.4
- alpha slider will be automatically enabled if initial 'alpha' option is set
- disabled autocorrect and autocapitalize on valueElement and alphaElement
jscolor-2.2.3
- fixed warning message for unparseable data-jscolor configuration
- specifying passive flag (false) when registering touch event listener to prevent console warning
- removed outdated polyfills for event listeners
jscolor-2.2.2
- attaching ontouchstart listener only to picker box - this fixes usability issues on touch devices. (Thanks to Brendon M.)
- added static method jscolor.hide() that hides the color picker box (in addition to existing pickerInstance.hide() method)