mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-29 16:07:59 +00:00
Bup dev (import sorting) (#411)
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
import type { ColorGen } from './types';
|
||||
|
||||
import newSeeder from './seeder';
|
||||
import newColors from './colors';
|
||||
import newSeeder from './seeder';
|
||||
|
||||
describe('colors', (): void => {
|
||||
let colors: ColorGen;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
import type { ColorGen, Seeder } from './types';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
export default function container (diameter: number, background = 'white', className = '', _style: { [index: string]: string } = {}): HTMLElement {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
const COLORS: string[] = [
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
import { isNull } from '@polkadot/util';
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
import type { Options } from '../types';
|
||||
|
||||
import colors from './colors';
|
||||
import newContainer from './container';
|
||||
import newSeeder from './seeder';
|
||||
import newShape from './shape/circle';
|
||||
import newElement from './svg/element';
|
||||
import colors from './colors';
|
||||
import newContainer from './container';
|
||||
import { SHAPE_COUNT } from './defaults';
|
||||
import newSeeder from './seeder';
|
||||
|
||||
export default function generate (seed: string | Uint8Array, { size = 256 }: Options, className = '', style?: { [index: string]: string }): HTMLElement {
|
||||
const seeder = newSeeder(seed);
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
import type { Seeder } from '../types';
|
||||
|
||||
import newCircle from '../svg/circle';
|
||||
import { SHAPE_COUNT } from '../defaults';
|
||||
import newCircle from '../svg/circle';
|
||||
|
||||
export default function circle (seeder: Seeder, fill: string, diameter: number, count: number): Element {
|
||||
const center = diameter / 2;
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
import type { Seeder } from '../types';
|
||||
|
||||
import newRect from '../svg/rect';
|
||||
import { SHAPE_COUNT } from '../defaults';
|
||||
import newRect from '../svg/rect';
|
||||
|
||||
export default function square (seeder: Seeder, fill: string, diameter: number, count: number): Element {
|
||||
const center = diameter / 2;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
import createSvg from './svg';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2016 Dan Finlay
|
||||
|
||||
const SVG_NS = 'http://www.w3.org/2000/svg';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2018-2020 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
|
||||
|
||||
// This has been converted from the original version that can be found at
|
||||
|
||||
Reference in New Issue
Block a user