New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

digital-display

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digital-display

Javascript library to draw 7-segment displays

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

digital-display Build Status

yarn version NuGet version

Javascript library to draw 7-segment displays

digital-display demo 1

This example in plunker: demo/index.html

Quick start

1 Download and Install digital-display

2 Include dependences

2.1 digital-display.js and digital-display.min.js are under dist folder.

2.2 Include digital-display.js or digital-display.min.js, e.g.

<head>
    ...
    <link rel="stylesheet" href="../dist/digital-display.css">
    <script src="../dist/digital-display.js"></script>
</head>

3 Use it

Just use it inside your javascript code this way:

<script>

    var dd1 = new DigitalDisplay("00:00:00", {
        el: null,
        x: 0,
        y: 0
    });

    dd1.displayText("88:88 88");

    var w = dd1.getWidth();
    var h = dd1.getHeight();

    var dd2 = new DigitalDisplay("00:00", {
        el: null,
        x: 20,
        y: 200,
        baseUnit: 5
    });

    var dd3 = new DigitalDisplay("abcdef", {
        el: null,
        x: 20,
        y: 400,
        baseUnit: 5
    });

    var dd4 = new DigitalDisplay("00:00:00", {
        el: "greenBox",
        x: 10,
        y: 10,
        class: "mio",
        width: 100
    })
    
<script>

4 License

digital-display.js is MIT licensed.

Keywords

FAQs

Package last updated on 28 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc