Open lajith111 opened 2 weeks ago
Align should still work. Not aware of any issues. But the second argument of the line()
function is no longer supported. To archive a similar effect you can use the box()
function with a style of none
.
encoder
.align('center')
.box(
{ width: 32, align: 'center', style: 'none'},
'The quick brown fox jumps over the lazy dog. ' +
'The quick brown fox jumps over the lazy dog. ' +
'The quick brown fox jumps over the lazy dog'
)
Try pasting this in the playground to see the effect: https://point-of-sale.dev/receipt-printer/playground
Ok..Thank You..
.align('center').height(size).line(print.RecieptName ?? '',32).height(1)
Here print.RecieptName not constanct value.. after i search align is deprecated..
How can i achived same using new version..Please let me know