-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: lineCap must be a string #938
Comments
I've just confirmed that the same defaults are also needed for |
@mlohbihler feel free to open a PR anyway. I am the author of 9 on 12 PR still pending and hopefully they will be managed. Pay attention to options fallback setting the defaults. |
@stockiNail sounds good. For completeness, here is a code snip that i just run with
A full sample of the error is:
|
Closed by #939 |
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
andlineJoin
properties, 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.defaults
andarrowHeadsDefaults
. 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.
The text was updated successfully, but these errors were encountered: