Files
ui/packages/ui-shared/src/beachballIcon
Jaco Greeff b814d754b8 Bump deps (#264)
* Bump deps

* Update tests

* Update mdEngine
2020-01-26 10:57:37 +01:00
..
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-26 10:57:37 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2019-08-06 13:15:10 +02:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00
2020-01-06 14:51:16 +01:00

@polkadot/ui-shared/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