Closed stockiNail closed 1 year ago
The PR https://github.com/chartjs/chartjs-plugin-annotation/pull/801 introduced indexable options (font and color).
font
color
The current options resolution is checking if the options is indexable and if true, it stores the value of the options.
https://github.com/chartjs/chartjs-plugin-annotation/blob/bc38d6bfad27a052c199604e89d1338c07681d3f/src/elements.js#L134
In this way, it stores a Proxy object (or an array of Proxy) in element options, something that probably you don't want.
Proxy
This PR is storing "plain" objects as element.options.
element.options
Thank youu @kurkle
The PR https://github.com/chartjs/chartjs-plugin-annotation/pull/801 introduced indexable options (
font
andcolor
).The current options resolution is checking if the options is indexable and if true, it stores the value of the options.
https://github.com/chartjs/chartjs-plugin-annotation/blob/bc38d6bfad27a052c199604e89d1338c07681d3f/src/elements.js#L134
In this way, it stores a
Proxy
object (or an array ofProxy
) in element options, something that probably you don't want.This PR is storing "plain" objects as
element.options
.