This commit is contained in:
1 file changed
+2
-4
@@ -42,11 +42,9 @@
|
|||||||
scale: 10,
|
scale: 10,
|
||||||
includetext: true,
|
includetext: true,
|
||||||
textxalign: 'center',
|
textxalign: 'center',
|
||||||
backgroundcolor: 'ffffff'
|
backgroundcolor: 'ffffff',
|
||||||
|
height: 10
|
||||||
};
|
};
|
||||||
if (bcid == 'code128') {
|
|
||||||
codeconfig.height = 10;
|
|
||||||
}
|
|
||||||
bwipjs.toCanvas(canvas, codeconfig);
|
bwipjs.toCanvas(canvas, codeconfig);
|
||||||
return canvas.toDataURL('image/png');
|
return canvas.toDataURL('image/png');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user