mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-28 07:51:05 +00:00
Merge pull request #31 from polkadot-js/jg-rm-jdenticon
Remove jdenticon, includec upstream (2.2.0+)
This commit is contained in:
commit
fb69462fb1
28
types/jdenticon/index.d.ts
vendored
28
types/jdenticon/index.d.ts
vendored
@ -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;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
import jdenticon from 'jdenticon';
|
|
||||||
|
|
||||||
jdenticon.toSvg('12345', 64);
|
|
@ -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"]
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
{ "extends": "dtslint/dt.json" }
|
|
Loading…
x
Reference in New Issue
Block a user