Coder Social home page Coder Social logo

colorwheel's People

Contributors

jweir avatar koppor avatar rfinnie avatar yoka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

colorwheel's Issues

Raphael 2.1.3 issue

On Raphael 2.1.3 the center square doesn't change its color (it does change on Raphael 2.1.2).

Color range incorrect

Pure white (#FFFFFF) can not be reached from the color picker when using Raphael 1.5.2

dynamically changing color

I noticed that if you feed it a color via

cw.color('#ff0000')

it doesn't update the input field associated with it, and internally it doens't change the color.

if you then do a

cw.color()

it will still read whatever the color was prior to changing it. The hue ring shows the correct color, but it doesn't register internally.

After adding .input() a lot of errors is logged.

Noticed an issue where using .input() to hook it to a text field makes the color wheel spawn plenty of errors in Chrome.

Error, as taken from console: "Uncaught TypeError: object is not a function".

Issue is that the input() function resets "change_callback = null;", whereas run_onchange_event() does a stricter type evaluation for "!== undefined".

Making a less strict check, such as "if(change_callback)" instead will allow for both of these, but maybe the real fix would be to remove the modification inside of input()? I did not see the reason behind the reset.

Broken with most recent Raphael

Hello, when using this colorwheel with the most recent Raphael the color ring is constant white. Tested with Raphael 1.5.2.

Adam

Color input for "1" in hex codes will return the equivalent of "255" instead

It's actually a bug from raphaeljs's "hsb2rgb" function itself. To replicate, all you need to do is provide the values "000001", "000100" or "010000" and instead of giving you an almost-black color, it gives you the equivalent of "00f", "0f0" or "f00".

I'm personally modifying the code to use another library instead of raphaeljs's hsb2rgb (https://github.com/bgrins/TinyColor) but this is just fyi. Will you be fixing this?

Browser zoom problem

We are running colorwheel in a page with css zoom applied, and the mouse and touch events do not work as needed. This may be because the coordinates of the touches and clicks are not taking the zoom factor into account, so the color wheel is not working for our project.

Steps to reproduce:

  1. Go to http://jweir.github.io/colorwheel
  2. In Developer Tools, Elements, choose the root element HTML
  3. Set style zoom: 0.5
  4. The color wheel is not operable

Fixed stroke visibility in IE

In IE, the stroke:none value for the segments causes it to draw borders with default black color. This prevents uniform look and feel, this is cured by changing

Line 261 to
n.attr({stroke:"hsb("+d_(1/k)+", 1, 0.85)",fill:"hsb("+d_(1/k)+", 1, 0.85)"})

now the stroke is not seen and same look and feel is achieved in IE also

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.