mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-12 15:31:07 +00:00
Bump deps (#769)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
export function container (diameter: number, background = 'white', className = '', _style: { [index: string]: string } = {}): HTMLElement {
|
||||
export function container (diameter: number, background = 'white', className = '', _style: Record<string, string> = {}): HTMLElement {
|
||||
const element = document.createElement('div');
|
||||
const style = Object.assign({
|
||||
background,
|
||||
|
||||
@@ -12,7 +12,7 @@ import { container as newContainer } from './container.js';
|
||||
import { SHAPE_COUNT } from './defaults.js';
|
||||
import { seeder as newSeeder } from './seeder.js';
|
||||
|
||||
export function beachballIcon (seed: string | Uint8Array, { size = 256 }: Options, className = '', style?: { [index: string]: string }): HTMLElement {
|
||||
export function beachballIcon (seed: string | Uint8Array, { size = 256 }: Options, className = '', style?: Record<string, string>): HTMLElement {
|
||||
const seeder = newSeeder(seed);
|
||||
const colorGen = colors(seeder);
|
||||
const outer = newContainer(size, 'white', className, style);
|
||||
|
||||
@@ -3,6 +3,4 @@
|
||||
|
||||
export type Seeder = () => number;
|
||||
|
||||
export interface ColorGen {
|
||||
(alpha?: number): string;
|
||||
}
|
||||
export type ColorGen = (alpha?: number) => string;
|
||||
|
||||
Reference in New Issue
Block a user