Files
pezkuwi-ui/packages/ui-identicon/src/beachball
Jaco Greeff fd67ecdf3a Swap to eslint (#154)
* 311 problems (173 errors, 138 warnings)

* Make a start...

* swap to react config

* Literally a handful left

* Clean.

* any removal

* Use Record

* Adjust versions

* Update with latest eslint-standard ruleset

* Update defaults.ts
2019-07-12 22:01:19 +02:00
..
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00
2019-02-27 11:18:35 +01:00
2019-01-04 16:58:22 +01:00
2018-12-05 11:35:28 +01:00
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00
2019-07-12 22:01:19 +02:00

@polkadot/ui-identicon/beachball

Adapted from Jazzicon by Dan Finlay with the following changes -

  • Random values now is read from the Uint8Array supplied (as opposed to having the seed as a number). This allows us to give an publicKey/address as an input and use those values in the pattern generation.
  • Upgrade to the underlying color library
  • Generate circles as shapes (instead of rectangles)
  • Interface updated to take in optional className & style
  • Update everywhere to use ES6
  • Split source into self-contained functions (TODO: future testing)
  • Everything has been updated to use flow
  • Test the library functions
  • Copyright headers added (original also under Apache-2.0)

Usage

Also see src/demo.js for a randomly generated example.

demo