(opts)
| 762 | } |
| 763 | |
| 764 | function get(opts) { |
| 765 | opts = opts || {}; |
| 766 | |
| 767 | if (allowEmpty && isEmpty) { |
| 768 | return null; |
| 769 | } |
| 770 | |
| 771 | return tinycolor.fromRatio( |
| 772 | { |
| 773 | h: currentHue, |
| 774 | s: currentSaturation, |
| 775 | v: currentValue, |
| 776 | a: Math.round(currentAlpha * 100) / 100, |
| 777 | }, |
| 778 | { format: opts.format || currentPreferredFormat }, |
| 779 | ); |
| 780 | } |
| 781 | |
| 782 | function isValid() { |
| 783 | return !textInput.hasClass('sp-validation-error'); |
no outgoing calls
no test coverage detected