0.1.4 • Published 7 years ago

@sirus/stylus v0.1.4

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

sirus-stylus

Stylus input text recognition module for angular

stylus demo

Installation

To install this library, run:

$ npm install @sirus/stylus --save

Usage

Once you have published your library to npm, you can import this module in any Angular application by running:

$ npm install @sirus/stylus

and then from your Angular AppModule add your myScript application key & hmac key:

import { SirusStylusModule } from '@sirus/stylus';

@NgModule({
  imports: [
    SirusStylusModule.forRoot(
      'APPLICATION_KEY',
      'HMAC_KEY',
      'HOST' // default to webdemoapi.myscript.com
    )
  ]
})
export class AppModule { }

Then from your application template, you can start using stylus component

<sirus-stylus
  [pen]="pen" 
  height="200" 
  width="270" 
  language="id_ID" 
  (onResult)="writeRecognition($event)"
  (onInkChange)="inkChange($event)">
</sirus-stylus>

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © muhammad hasan

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago