2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-07-04 00:24:29 -06:00

plain JS rendering update

This commit is contained in:
peterd 2015-02-05 23:56:26 +01:00
parent bfb4d0f4dd
commit 2b82ce7062

View File

@ -96,8 +96,8 @@
show(0, function() { show(0, function() {
_GPU = _options.GPU && $(this).css('perspective') === ''; _GPU = _options.GPU && $(this).css('perspective') === '';
// _GPU = _options.GPU && // _GPU = _options.GPU &&
// $('<div>').css('transform', 'matrix(1,0,0,2,0,0)')[0]. // $('<div>').css('transform', 'matrix(1,0,0,2,0,0)').
// style.cssText.replace(/2.*$/, '1,'); // css('transform').replace(/2.*$/, '1,');
_options.buidCallback.call(_colorPicker, $(this)); _options.buidCallback.call(_colorPicker, $(this));
_$xy_slider = $('.cp-xy-slider', this); _$xy_slider = $('.cp-xy-slider', this);
_$xy_cursor = $('.cp-xy-cursor', this); _$xy_cursor = $('.cp-xy-cursor', this);
@ -219,11 +219,13 @@
// (_GPU ? _GPU + '0,' + h + ');' : // (_GPU ? _GPU + '0,' + h + ');' :
// 'top:' + h + 'px;') + // 'top:' + h + 'px;') +
// 'border-color:' + 'transparent ' + HUEContrast; // 'border-color:' + 'transparent ' + HUEContrast;
// _$alpha[0].style.cssText = 'background-color:' + '#' + colors.HEX; // if (_options.opacity) {
// _$alpha_cursor[0].style.cssText = // _$alpha[0].style.cssText = 'background-color:' + '#' + colors.HEX;
// (_GPU ? _GPU + a + ', 0);' : // _$alpha_cursor[0].style.cssText =
// 'left:' + a + 'px;') + // (_GPU ? _GPU + a + ', 0);' :
// 'left:' + a + 'px;') +
// 'border-color:' + alphaContrast + ' transparent'; // 'border-color:' + alphaContrast + ' transparent';
// }
// _options.doRender && (_cache.$element[0].style.cssText = // _options.doRender && (_cache.$element[0].style.cssText =
// 'background-color:' + text + // 'background-color:' + text +
// ';color:' + (colors.rgbaMixBGMixCustom.luminance > 0.22 ? dark : light)); // ';color:' + (colors.rgbaMixBGMixCustom.luminance > 0.22 ? dark : light));