Coder Social home page Coder Social logo

isonet / angular-barcode Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 20.0 1.9 MB

An angular directive for lindell's JsBarcode

Home Page: https://isonet.github.io/angular-barcode/

License: MIT License

JavaScript 54.22% HTML 45.78%
angular angularjs barcode barcode-generator bower browser directive es2015 es6 eslint lindell-jsbarcode npm webpack

angular-barcode's Introduction

isonet

Paul Biester's simple personal webpage, isonet.fr.

angular-barcode's People

Contributors

isonet avatar lindell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-barcode's Issues

How to use valid function

Hi, I would like to validate if my barcode is valid or not, but I don't know how to fire the valid function. Could you show an example?

No bower file with the property main

Hello, great library!!
I use yeoman, and I installed angular-barcode with:
bower install angular-barcode-es6 --save
When I run grunt serve, It crashes, and it is because there's no file bower.json with the important param:
"main": "dist/angular-barcode.js",
I created it manually, and my project works again, but when I have to make a
bower install to my project again, I will have to create the bower file again, and It's a problem.
Can you fix this please!!!

PD:
Write in your description the way to install with bower, that would be great.
Sorry my english.

Information about use / examples in README

First I want to say thanks for making JsBarcode available to use in more than the standard way ๐Ÿ˜„
But the information in the README is a bit sparse and some information about how to use the library should be added.

'Barcode is not available' error

At first, I used angular-barcode module as 1.2.5 version.
Today, I update as 1.4.2 version, I can see below error sentence in console

Module 'barcode' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

So. I down-graded it as 1.2.5. That version is working well.
I use this module by using below step.

npm install --save angular-barcode
angular.module('MyExampleApp', ['barcode']);

Please check about it.
If you want to know other informs. Please comments.
Thanks.

versions support

does it support also devices with old versions like android 4.3? it's not working there.

Please add to bower library

It's good to add to bower library.
I can not find this lib, and the latest I can use is angular-barcode from justechn that stops nearly a year.
And I found an issue with this when print out, the barcode still be blurry in Chrome.

Check environment

Before I could see the barcode in IE10 and IE11
But now, I can not see it.
I want to know specification on browser.

Question about barcode of long size

Sometimes, I use very long text of barcode. (about 31)
Then, barcode's width is too long to show in mobile screen.

[length: 10]
screen shot 2017-02-20 at 4 32 02 pm
[length:30]
screen shot 2017-02-20 at 4 32 16 pm

I look into barcode's markup.
There is always 4px gap each barcode.
screen shot 2017-02-20 at 4 33 19 pm
If length of text is 31, just gap size is 30 * 4 = 120px.

Is there any option for long text?

Not working when reactively changing settings

Say you want to change height:

<barcode bc-height="{{$scope.bcHeight}}"></barcode>
<button ng-click="$scope.bcHeight=30">Height 30</button>
<button ng-click="$scope.bcHeight=60">Height 60</button>

Won't work

Export PDF

Hello,
With my angular loop

<div id="contentOneBarCode" ng-repeat="n in [].constructor(16) track by $index" class="wp90 {{classOneBarCode}}">
    <angular-barcode ng-model="myBarCode" bc-options="bc" bc-class="barcode" bc-type="canvas" class="wp25 left"></angular-barcode>
</div>

Have you trying to export PDF, width pdfMake and html2canvas for example like this :
`

html2canvas(document.getElementById('contentOneBarCode'), {
                    onrendered: function (canvas) {
                        var data = canvas.toDataURL();
                        var docDefinition = {
                            content: [{
                                image: data,
                                width: 500,
                            }]
                        };
                        pdfMake.createPdf(docDefinition).download("Score_Details.pdf");
                    }
                });

`
I have this message :
Uncaught invalid image, images dictionary should contain dataURL entries (or local file paths in node.js)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.