Skip to content

Releases: EastDesire/jscolor

jscolor-2.4.2

28 Dec 19:01
Compare
Choose a tag to compare
  • 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

27 Dec 16:02
Compare
Choose a tag to compare
  • 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

07 Nov 17:46
Compare
Choose a tag to compare
  • Added module wrapper to allow using jscolor as a module
  • jscolor.init() method made public

jscolor-2.3.3

11 Aug 09:39
Compare
Choose a tag to compare
  • added option hideOnLeave

jscolor-2.3.2

18 Jul 09:30
Compare
Choose a tag to compare
  • limiting Close button's maximum width to prevent overflow

jscolor-2.3.1

16 Jul 19:24
Compare
Choose a tag to compare
  • 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

14 Jul 13:08
Compare
Choose a tag to compare
  • 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

09 Jul 12:29
Compare
Choose a tag to compare
  • alpha slider will be automatically enabled if initial 'alpha' option is set
  • disabled autocorrect and autocapitalize on valueElement and alphaElement

jscolor-2.2.3

02 Jul 09:49
Compare
Choose a tag to compare
  • 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

01 Jul 11:26
Compare
Choose a tag to compare
  • 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)