Socket
Book a DemoInstallSign in
Socket

pro-widgets

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pro-widgets

Responsive animated Angular SVG widgets

0.9.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Angular Pro Widgets

Build Status npm npm NPM GitHub repo size Github code size code style: prettier

This library provides animated and highly customizable SVG widgets for use with IoT or other data visualization tasks. It has an easy to use interface as you will see in this description. See the library in action while reading the documentation and live-play with all the parameters.

This is currently in an early stage. API changes are likely. It follows semantic versioning.

Widgets

Currently available widgets are Gauge, Digital Gauge, Linear Gauge, Analog Stick and Space Tracker. More widgets coming soon. Widget ideas/implementations/issue reporting/PRs welcome.

Installation

Install the library with

npm install pro-widgets

Importing the module and use the components

At first you have to import the ProModule into the module in which you want to use the widgets. For example in the root module.

import { ProModule } from 'pro-widgets';

@NgModule({
  import: [ProModule]
})
export class AppModule {}

You can import each widget manually by importing e.g. LinearGaugeModule. Use the widgets in your components template by

<pro-gauge [value]="stream$ | async"></pro-gauge>
<pro-digital-gauge></pro-digital-gauge>
<pro-analog-stick></pro-analog-stick>
<pro-linear-gauge></pro-linear-gauge>
<pro-space-tracker></pro-space-tracker>

See the docs to get to know the full list of input parameters for customizing the widgets to your needs.

Input value shapes

Some widgets require a different shape of data input for the value input property. Most of them are requiring a primitive number or an array of numbers. The space-tracker requires the following type

interface MultiDimensional {
  [id: string]: number[];
}

Here is an overview of all widget value inputs

WidgetValue type
Gaugenumber
Digital Gaugenumber
Linear Gaugenumber
Analog Sticknumber[2]
Space TrackerMultipleInputs

Contributing

Contributions in all forms are welcome. Widget ideas, feature requests, bug reports, etc. PR contributors will be mentioned in here.

Get in touch

twitter github

Hi, I am Felix, Software developer and Angular, NgRX contributor

avatar

If you like this library, think about giving it a star or follow me on twitter or github or check out my personal the website.

Keywords

angular

FAQs

Package last updated on 12 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.