Skip to content

Releases: EastDesire/jscolor

jscolor-2.2.1

27 Jun 10:46
Compare
Choose a tag to compare
  • color picker won't show on disabled target elements
  • increased default z-index to 5000

jscolor-2.2.0

26 Jun 17:33
Compare
Choose a tag to compare

2.2.0

  • added support for alpha channel (opacity) and RGBA output format
  • added support for query selectors - elements can now be specified using CSS query selectors
  • element IDs in all element-related options now must be prefixed with '#' character in order to be valid CSS selectors
  • toString() method now returns a color code in current format (and includes leading '#' in case of HEX format)
  • property styleElement renamed to previewElement
  • property onFineChange renamed to onInput
  • property overwriteImportant renamed to forceStyle
  • property closable renamed to closeButton
  • property insetWidth renamed to controlBorderWidth
  • property insetColor renamed to controlBorderColor
  • method jscolor.init() renamed to jscolor.install()
  • methods fromHSV() and fromRGB() are now deprecated, but still supported. Use fromHSVA() and fromRGBA() instead.
  • removed properties 'rgb' and 'hsv'. Color channels are now accessible via channel() method.
  • removed property 'activeClass'. Use static property jscolor.activeClassName
  • added options: format, alpha, alphaElement, alphaChannel, onChange, previewSize, previewPosition, previewPadding
  • added experimental options minA, maxA
  • added methods option(), channel(), trigger(), fromHSVA(), fromRGBA(), toRGBAString(), toBackground()
  • added static method jscolor.trigger()
  • added static properties jscolor.className, jscolor.activeClassName
  • added static property jscolor.looseJSON that enables/disables support for loose JSON syntax (enabled by default)
  • the options parser now uses JSON.parse() by default and alternatively tries to parse loose JSON syntax by evaluating options as a JS code (if jscolor.looseJSON is enabled)
  • increased default padding for 'small' preset
  • removed outdated polyfills. The oldest IE supported is now IE10

jscolor-2.1.1

15 Jun 16:24
Compare
Choose a tag to compare
  • added jscolor.presets property
  • added .toGrayscale() method
  • color picker box now hides when Enter or Escape key is pressed
  • jscolor.options is now deprecated

jscolor-2.1.0

12 Jun 09:07
Compare
Choose a tag to compare
  • jscolor now installs on elements having 'data-jscolor' attribute
  • class="jscolor" is no longer needed, but still supported for backward compatibility
  • the 'jscolor' variable is now accessible via alias 'JSColor'
  • added classes to color picker elements: 'jscolor-picker', 'jscolor-picker-wrap', 'jscolor-picker-shadow', 'jscolor-picker-border', 'jscolor-btn-close'
  • prints console warning when trying to set an unrecognized configuration option
  • valueElement's value is now being set only if it differs from the new value

jscolor-2.0.4

09 Nov 17:40
Compare
Choose a tag to compare
  • Added a minified version (generated using UglifyJS)

jscolor-2.0.3

07 Nov 22:17
Compare
Choose a tag to compare
  • Fixed bug which prevented closing the picker during tap event on touch devices
  • jscolor instance now gets registered only once, even if the <script> is included multiple times

jscolor-2.0.2

06 Nov 16:23
Compare
Choose a tag to compare
  • Improved color picker positioning
  • When resizing browser window, color picker position is continuously updated
  • When scrolling one of the offsetParents, color picker is hidden
  • Fixed positioning is now autodetected, no need to set the parameter 'fixed'
  • Added support for rgb color notation, e.g. rgb(160, 0, 255)
  • Added toHEXString() and toRGBString() methods

jscolor-2.0.0

27 Oct 10:11
Compare
Choose a tag to compare
Updated to version 2.0.0

jscolor-1.4.5

27 Oct 10:10
Compare
Choose a tag to compare
v1.4.5

Updated to version 1.4.5

jscolor-1.4.2

27 Oct 10:10
Compare
Choose a tag to compare
v1.4.2

Updated to 1.4.2