Skip to content
fujaru edited this page Jan 28, 2016 · 5 revisions

Version 3 is a major development of the Wheel Color Picker plugin and has various new features.

CODE REFACTOR

The codebase has been rewritten, making it easier to maintain and extend the plugin. Internal data and widget options previously stored in $.data() and procedural-style functions are now moved into a single WCP.ColorPicker class instance.

Changes at a glance:

  • Flags and global variables are moved to WCP
  • Helper functions are moved to WCP
  • Static functions are moved to WCP.ColorPicker
  • Event handlers are moved to WCP.Handler

SLIDERS ARRANGEMENT

It is now possible to rearrange the position of sliders by specifying options.sliders value in a specific order. For example, whsvp and phwsv now yield different result.

RESIZEABLE COLOR PICKER

The color picker can now be programmatically resized, and the sliders will adjust to it.

NO EXTERNAL IMAGES REQUIRED

Now you only need two files: jquery.wheelcolorpicker.js and wheelcolorpicker.css. That's all you need.

All images are now either switched to pure CSS rules, generated on the fly, or embedded in CSS file. Hence less file dependencies and browser requests. Using pure CSS rules and efficiently generating images on the fly also allows reduced total file size.