gka/palettes

Steps query parameter resets to `7`

Opened this issue · 1 comments

When manually setting the steps query parameter:

http://gka.github.io/palettes/#colors=lightyellow,orange,deeppink,darkred|steps=11|bez=1|coL=1

The steps query parameter automatically updates to 7:

http://gka.github.io/palettes/#colors=lightyellow,orange,deeppink,darkred|steps=7|bez=1|coL=1

The provided step query parameter should be retained and applied. All other query parameters (i.e. colors, bez, and coL) work as expected.

It seems to work as expected with diverging URLs. Just not sequential URLs.

http://gka.github.io/palettes/#diverging|c0=lightyellow,orange,deeppink,darkred|c1=lightyellow,orange,deeppink,darkred|steps=15|bez0=1|bez1=1|coL0=1|coL1=1