Merge pull request #31 from polkadot-js/jg-rm-jdenticon

Remove jdenticon, includec upstream (2.2.0+)
This commit is contained in:
Jaco Greeff 2019-08-03 07:40:20 +02:00 committed by GitHub
commit fb69462fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 48 deletions

View File

@ -1,28 +0,0 @@
// Type definitions for Jdenticon 2.1.1
// Project: http://jdenticon.com/
// Definitions by: Martin Thorsen Ranang <https://github.com/mtr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface JdenticonConfig {
lightness?: {
color?: number[];
grayscale?: number[];
};
saturation?: number;
}
interface Jdenticon {
drawIcon(ctx: CanvasRenderingContext2D, hash: string, size: number): void;
toPng(hash: string, size: number, padding?: number): string;
toSvg(hash: string, size: number, padding?: number): string;
update(el: Element | string, hash?: string, padding?: number): void;
config: JdenticonConfig;
version: string;
}
declare module 'jdenticon' {
const jdenticon: Jdenticon;
export default jdenticon;
}

View File

@ -1,3 +0,0 @@
import jdenticon from 'jdenticon';
jdenticon.toSvg('12345', 64);

View File

@ -1,16 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": ["index.d.ts", "jdenticon-tests.ts"]
}

View File

@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }