|
|
|
@ -16,6 +16,7 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
|
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this; |
|
|
|
|
this._defaultState(); |
|
|
|
|
return { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
@ -87,6 +88,10 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_defaultState: function () { |
|
|
|
|
this.hsl = [0, 0, 0]; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_unpack: function (color) { |
|
|
|
|
if (color.length === 7) { |
|
|
|
|
return [parseInt("0x" + color.substring(1, 3)) / 255, |
|
|
|
|