The svg pattern filling isn't correctly draw when a pdf is created at production. The problem seems to be related to the if statement on docFillColor and docFillColor functions. The color parameter, when in production, has a different strutucture. The problem is reported at pdfMake/issue#1832
before
the conditional statement on docFillColor and docFillColor functions is currently like
if (color[0].constructor.name === 'PDFPattern')
after
i`ve added another condition to both if statements
if (color[0].constructor.name === 'PDFPattern' || color[0].dx)
the problem
The svg pattern filling isn't correctly draw when a pdf is created at production. The problem seems to be related to the if statement on
docFillColor
anddocFillColor
functions. The color parameter, when in production, has a different strutucture. The problem is reported at pdfMake/issue#1832before
the conditional statement on
docFillColor
anddocFillColor
functions is currently likeif (color[0].constructor.name === 'PDFPattern')
after
i`ve added another condition to both if statements
if (color[0].constructor.name === 'PDFPattern' || color[0].dx)