Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let users specify the position of the gradient's center #13

Closed
wants to merge 6 commits into from

Commits on Aug 16, 2015

  1. fix: stop the shim from treating background-position property as a co…

    …lor stop
    Kumar Harsh committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    0c1cf77 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2015

  1. Configuration menu
    Copy the full SHA
    866e2f7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    af8700d View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2015

  1. Configuration menu
    Copy the full SHA
    0527ca7 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2015

  1. fix(positioning): fix interpretation of the position string

    * If the vertical component came alone, such as `at top`, then the position
      was wrongly calculated as (left, center). This is fixed.
    Kumar Harsh committed Aug 26, 2015
    Configuration menu
    Copy the full SHA
    4b01097 View commit details
    Browse the repository at this point in the history
  2. fix(paint): fix the painting of the gradient to cover the whole element

    * the radius of the canvas used was calculated as √2*(side/2). This was
      causing the painted gradient to not stretch till the end of the element
      when the gradient was positioned sufficiently off-center. The best way
      to ensure that the gradient covers the full element is having the
      radius to be √2*(longer-side) - this would ensure even gradients at the
      top-left corner to cover the bottom-right corner.
    Kumar Harsh committed Aug 26, 2015
    Configuration menu
    Copy the full SHA
    04248f9 View commit details
    Browse the repository at this point in the history