Skip to content

Instantly share code, notes, and snippets.

@rinukkusu
Created May 23, 2016 12:47
Show Gist options
  • Save rinukkusu/63ae4530561c89a95c9c3d716c0a7b3b to your computer and use it in GitHub Desktop.
Save rinukkusu/63ae4530561c89a95c9c3d716c0a7b3b to your computer and use it in GitHub Desktop.
type defintion file for jscolor
/**
* jscolor, JavaScript Color Picker
*
* @version 1.3.1
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
* @author Jan Odvarko, http://odvarko.cz
* @created 2008-06-15
* @updated 2010-01-23
* @link http://jscolor.com
*/
declare var jscolor: {
dir: string;
binding: boolean;
preloading: boolean;
install: () => void;
init: () => void;
getDir: () => any;
detectDir: () => any;
bind: () => void;
preload: () => void;
images: {
pad: number[];
sld: number[];
cross: number[];
arrow: number[];
};
imgRequire: {};
imgLoaded: {};
requireImage: (filename: any) => void;
loadImage: (filename: any) => void;
fetchElement: (mixed: any) => any;
addEvent: (el: any, evnt: any, func: any) => void;
fireEvent: (el: any, evnt: any) => void;
getElementPos: (e: any) => number[];
getElementSize: (e: any) => any[];
getMousePos: (e: any) => any[];
getViewPos: () => number[];
getViewSize: () => number[];
URI: (uri: any) => void;
color: (target: any, prop: any) => void;
};
Copy link

ghost commented Dec 10, 2016

Hi.
Can you shown an example how to use this on angular project?
Thanks in advanced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment