0.3.1 • Published 6 years ago

ng-heatmap v0.3.1

Weekly downloads
16
License
-
Repository
-
Last release
6 years ago

Angular heatmapjs wrapper

promo

Usage

install heatmapjs npm i heatmapjs --save app.module

import { AngularHeatmapModule } from 'ng-heatmap';
imports: [
    ...
    AngularHeatmapModule,
    ...
  ],

in project <ng-heatmap [active]="true" [hidden]="false" [(heatmapData)]="twoWayBind"></ng-heatmap>

Properties

NameDefaultDescription
@Input() hidden: booleanfalse
@Input() active: booleantrueun/subscribe to mouse events
heatmapData: anynulltwo-way property source of heatmap obejct
@Input() config: any{maxOpacity: .6, radius: 15, blur: .90, backgroundColor: 'rgba(0, 0, 58, 0.96)'}config for heatmap

Styling

Default class .heatmap can be overwritten by passing class property to <ng-heatmap> component.

.heatmap {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  opacity: .5;
  z-index: 9;
}
0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago