When using the $(canvas).drawText() function, jcanvas is converting the 'text' parameter to a number, so, for instance, if I want to write the string '012345' the 0 is removed as a "leading zero" when the conversion to number takes place.
As a simple fix, I replaced the line 193, on the function '_coerceNumericProps' by the following one:
if (propType === 'string' && propValue !== '' && !isNaN( propValue) && propName != 'text') {
However, I believe that you would like to make a broader correction that also works for other similar cases if there are any.
When using the $(canvas).drawText() function, jcanvas is converting the 'text' parameter to a number, so, for instance, if I want to write the string '012345' the 0 is removed as a "leading zero" when the conversion to number takes place.
As a simple fix, I replaced the line 193, on the function '_coerceNumericProps' by the following one:
if (propType === 'string' && propValue !== '' && !isNaN( propValue) && propName != 'text') {
However, I believe that you would like to make a broader correction that also works for other similar cases if there are any.
Thank you!