1.0.5 • Published 5 years ago

halo-react v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

halo-react

React component to simplify adding Halos to your React app.

Installing

with yarn yarn add halo-react

with NPM npm install --save halo-react

Component Usage

import { HaloComponent } from 'halo-react';

<HaloComponent vertcies={ object containing the data points } title={ string } size={ number } endpoint={ string } />

Example of verticies object

'vertices': {
        'size':       (float),
        'speed':      (float),
        'brightness': (float),
        'complexity': (float),
        'color':      (float),
        'wobble':     (float),
        'colorCenter': (float),
        'colorCenterRatio': (float),
        'waveCount':  (int), 
        'highlightRing': (float)
      } 
Property NameDescriptionType
sizeThe relative size of the halo.float: 0.0 - 1.0
speedThe speed of halo activity.float: 0.0 - 1.0
colorThe color of the halo, from cool to warm.float: 0.0 - 1.0
complexityThe complexity of halo activity.float: 0.0 - 1.0
brightnessThe intensity of halo color.float: 0.0 - 1.0
wobbleThe stability of the halo motion.float: 0.0 - 1.0
colorCenterThe color at the center of the halo.float: 0.0 - 1.0
colorCenterRatioThe percentage of the halo occupied by the center color.float: 0.0 - 1.0
waveCountThe number of radiating waves.int: 0-10
highlightRingThe location of the highlight ring, as a percentage of the total possible halo.float: 0.0 - 1.0

API docs

This component handles most of these requirements, however the definition of the verticies object, advanced features, and general information is contained in the API docs.

API Docs

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago