I am using chart.js in node and using 'skia-canvas' to raise windows and provide a canvas / graphics context. This context appears to be pickier about lineCap and lineJoin properties, which cannot be set to undefined or null. Happily this problem is easily fixed by adding their 'annotation' equivalents (i.e. borderCapStyle, and borderJoinStyle) to the default options of certain structures. So far i have only encountered the errors with LineAnnotation.defaults and arrowHeadsDefaults. Adding the following lines to each is the fix:
borderCapStyle: 'butt',
borderJoinStyle: 'miter',
I can create a PR for this if that is easier, but i noted that there are currently 12 outstanding PRs already, some going back years.
I am using chart.js in node and using 'skia-canvas' to raise windows and provide a canvas / graphics context. This context appears to be pickier about
lineCapandlineJoinproperties, which cannot be set to undefined or null. Happily this problem is easily fixed by adding their 'annotation' equivalents (i.e.borderCapStyle, andborderJoinStyle) to the default options of certain structures. So far i have only encountered the errors withLineAnnotation.defaultsandarrowHeadsDefaults. Adding the following lines to each is the fix:I can create a PR for this if that is easier, but i noted that there are currently 12 outstanding PRs already, some going back years.