Skip to content

Releases: NC22/KellyC-Color-Picker

1.21

09 Jun 08:37
fd2cdd0
Compare
Choose a tag to compare
  • Added optional color savers buttons (option "colorSaver")
  • Added optional method switch (option "methodSwitch")
  • Added option "changeCursor"
  • Added option "resizeWith"
  • Added new callback "selectcolorsaver"
  • Added new callback "setmethod"
  • Added method "setColor" (synonym of setColorByHex)
  • Fix wheel cursor render
  • For all methods variable "color" now can be applayed as string (rgb \ rgba \ hex \ hsl \ hsla format) or as object ex. rgb {r : 255, g : 255, b : 255, a : 1}, hsv {h : 258.62, s: 32.40, l : 70.20, a : 1}
  • For input variable color now accept rgb \ rgba \ hex \ hsl \ hsla css standard formats

v1.03

19 Sep 11:54
Compare
Choose a tag to compare

Add user event 'popupshow' function(self, event). Calls when native popUpShow method is called. If return false -prevent popup show.
Changed behavior of user event 'updateinput' - if user function returns false prevent native update input value and background color.
Fix padding of popup box in some cases (when css box-sizing parameter differs from "content-box" by default)

v1.02

23 Jul 11:33
Compare
Choose a tag to compare

Added set color by value of input if config 'color' value not setted
Added popup window as default 'place'. Activates if set only 'input' without 'place' (or place = false) in config
Added static function KellyColorPicker.attachToInputByClass(className, cfg) to attach multiple color pickers by input class (todo add check is object = input)
Added config option 'popupClass'. if you need to use custom style for popup div canvas holder (by default css style generates throw javascript)
Added method getAlphaFig. Return alpha sidebar object if alpha sidebar enabled
Added method getPopup. Return popup object with referense on dom element and padding parametr
Added method getSize. Return wheel rect size
Fixed set input by object in config
Fixed manual enter color value in input, correct detection of rgba, rgb and hex input format
Fixed set default color in short format (ex. #fff instead of #ffffff)
Fixed remove events
Fixed correct turn off in some cases

v0.91

25 Jan 04:29
Compare
Choose a tag to compare
  • Add event 'updateinput' (overload default private method updateInput, that called when color changes)
  • Add constructor option 'input_format' - "mixed" (default) (color formated as hex if alpha not setted), "hex" (always as hex) or "rgba" (always as rgba)
  • Removing trailing whitespace
  • Cleanup code

v0.9b

20 Jan 11:32
Compare
Choose a tag to compare
  • Add transparency slider
  • Add new construct parameters - alpha, alpha_slider
  • Add new events - mousemovealpha, mouseupalpha
  • Add new public methods - getCurColorRgba(), getCurAlpha(), setAlpha(newAlpha)

v0.81

17 May 03:10
Compare
Choose a tag to compare

Add min.js version compiled by google/closure-compiler
Fix compatibility issue with IE 8.0

v0.8

17 May 02:14
Compare
Choose a tag to compare

First release.
Tested work with mobile Safari, Firefox, Chrome.
Tested work with IE 8.0-11.0, Chrome Firefox, Safari, Opera