mirror of
https://github.com/PitPik/colorPicker.git
synced 2025-09-19 14:12:36 -06:00
Typo fix
Some fixes according to @KargoGlobal
This commit is contained in:
parent
d715098a4f
commit
de16e45365
@ -55,7 +55,7 @@ var myColorPicker = new ColorPicker({
|
|||||||
memoryColors: [{r: 100, g: 200, b: 10, a: 0.8}, ...] // array of colors in memory section
|
memoryColors: [{r: 100, g: 200, b: 10, a: 0.8}, ...] // array of colors in memory section
|
||||||
opacityPositionRelative: undefined, // render opacity slider arrows in px or %
|
opacityPositionRelative: undefined, // render opacity slider arrows in px or %
|
||||||
customCSS: undefined, // if external stylesheet, internal will be ignored...
|
customCSS: undefined, // if external stylesheet, internal will be ignored...
|
||||||
appenTo: document.body, // the HTMLElement the colorPicker will be appended to on initialization
|
appendTo: document.body, // the HTMLElement the colorPicker will be appended to on initialization
|
||||||
noRangeBackground: false, // performance option: doesn't render backgrounds in input fields if set to false
|
noRangeBackground: false, // performance option: doesn't render backgrounds in input fields if set to false
|
||||||
textRight: false, // not supported yet. Make numbers appear aligned right
|
textRight: false, // not supported yet. Make numbers appear aligned right
|
||||||
noHexButton: false, // button next to HEX input could be used for some trigger...
|
noHexButton: false, // button next to HEX input could be used for some trigger...
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
// opacityPositionRelative: undefined,
|
// opacityPositionRelative: undefined,
|
||||||
// customCSS: undefined,
|
// customCSS: undefined,
|
||||||
// appenTo: document.body,
|
// appendTo: document.body,
|
||||||
// noRangeBackground: false,
|
// noRangeBackground: false,
|
||||||
// textRight: false, ?????
|
// textRight: false, ?????
|
||||||
// noHexButton: false,
|
// noHexButton: false,
|
||||||
@ -377,7 +377,7 @@
|
|||||||
// get a better addClass for this....
|
// get a better addClass for this....
|
||||||
// app.className = app.className.split(' ')[0]; // cleanup for multy instances
|
// app.className = app.className.split(' ')[0]; // cleanup for multy instances
|
||||||
|
|
||||||
return (_options.appenTo || document.body).appendChild(app);
|
return (_options.appendTo || document.body).appendChild(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getInstanceNodes(colorPicker, THIS) { // check nodes again... are they all needed?
|
function getInstanceNodes(colorPicker, THIS) { // check nodes again... are they all needed?
|
||||||
@ -553,6 +553,7 @@
|
|||||||
changeClass(_nodes.panel, '(?:start-change|do-change)', '');
|
changeClass(_nodes.panel, '(?:start-change|do-change)', '');
|
||||||
|
|
||||||
_nodes.resizer.style.cssText = '';
|
_nodes.resizer.style.cssText = '';
|
||||||
|
_nodes.panelCover.style.cssText = '';
|
||||||
|
|
||||||
_nodes.memo_store.style.cssText = 'background-color: ' +
|
_nodes.memo_store.style.cssText = 'background-color: ' +
|
||||||
color2string(_colors.RND.rgb) + '; ' + getOpacityCSS(_colors.alpha);
|
color2string(_colors.RND.rgb) + '; ' + getOpacityCSS(_colors.alpha);
|
||||||
@ -564,7 +565,6 @@
|
|||||||
_valueType = undefined;
|
_valueType = undefined;
|
||||||
|
|
||||||
resetCursors();
|
resetCursors();
|
||||||
_nodes.panelCover.style.cssText = '';
|
|
||||||
|
|
||||||
if (_options.actionCallback) {
|
if (_options.actionCallback) {
|
||||||
_options.actionCallback(e, _action || mouseMoveAction.name || action || 'external');
|
_options.actionCallback(e, _action || mouseMoveAction.name || action || 'external');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user