1.0.0 • Published 7 months ago

ngx-compass v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

NgxCompass Component

MIT License npm

Compass Component, scallable angular component

Installing

Assuming you have NodeJS, NPM installed globally just open up a terminal, navigate to your projects root directory and then execute

npm install ngx-compass --save

Usage

With Angular module

...
import {NgxCompassModule} from 'ngx-compass';

@NgModule({
  imports: [
      ...
      NgxCompassModule
  ],
})

Call component selector as

  <ngx-compass [rotate]="30"></ngx-compass>

or with all available inputs

  <ngx-compass 
    [rotate]="value" 
    [width]="330" 
    [mode]="'light'" 
    [angleUnit]="30" 
  >
  </ngx-compass>

Options

inputdefault
rotate0rotation angle
width330compass container width
modelight"light", "dark" theme
angleUnit30this will define compass scale angle step

Example

See Stackblitz example

Issues

If you identify any errors in the library, or have an idea for an improvement, please open an issue.

1.0.0

7 months ago

0.1.0

7 months ago