Comments (3)
I have a same question..
<svg>
<g>
<svg></svg>
</g>
</svg>
How can I do above where the inner svg is positioned within the parent at (x, y) and width and height?
I tried below and it does NOT work.
<svg class="label-container" [style.width.px]="width * pxPerInch" [style.height.px]="height * pxPerInch">
<g *ngFor="let widget of widgets">
<ngx-barcode
[bc-element-type]="svg"
[bc-format]="CODE128B"
[bc-width]="widget.width"
[bc-height]="100"
[bc-value]="widget.value" [bc-display-value]="true"></ngx-barcode>
</g>
</svg>
from ngx-barcode.
Hi I need to do the same, the problem is that the component is generating a <div>
with an <svg>
inside.
In order to do what we need, the selector should be [ngx-barcode]
(with the []) so we can use it as attribute of an <svg:g>
<svg:g ngx-barcode></svg:g>
And the template of such component should be just the <svg:g>
I tried to fork the code and include the component in my code but I get the error message: "jsbarcode is not a function"
Do you know how can I solve it?
from ngx-barcode.
I forked this project and added a component that can be used as inside an SVG:
Please tell me if it make sense, or if there is a better way to do it.
I don't like how I did it (basically copy and paste from the original).
from ngx-barcode.
Related Issues (20)
- alphanumeric values not generating barcodes HOT 1
- [ngStyle]='barcodeSpecs'
- bc-element-type img cannot be used in ionic 3
- EAN => EAN13
- Error after upgrading to angular 9. Unable to run the application HOT 11
- INVITATION FOR COLLABORATORS HOT 6
- Is it possible to validate barcode ?
- How can i change Width and Height? HOT 1
- Angular 11 possible optimization bailouts HOT 1
- Error after update to Angular 11.2.4 HOT 2
- Ngx-barcode Code 128 randomly cannot read
- Is it possible to remove the hanging down bars at the end of UPC-A barcodes?
- When I am using EAN13 in the format - Showing the blank HOT 1
- Angular 12 update HOT 1
- Need to update Angular Core dependencies HOT 1
- Trying to install for Angular 12 and get an error. HOT 2
- Not working properly on Safari
- Encourage the library authors to publish an Ivy distribution. HOT 2
- Angular v17 support HOT 1
- Error after update to Angular 17.0.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-barcode.