question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check config in a correct place too (options.plugins)

See original GitHub issue

Currently this plugin waits for config in options.zoom and options.pan while the correct place for them is options.plugins.zoom and options.plugins.pan respectively (https://www.chartjs.org/docs/latest/developers/plugins.html#plugin-options). This problem also makes a pain to use the plugin with TypeScript, because it doesn’t expect options to contain zoom and pan properties and emits an error.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
benmccanncommented, Jan 30, 2019

We could read from both locations now and remove the old one at 1.0. We could add a TODO(1.0) in the code to track in lieu of an issue

1reaction
simonbrunelcommented, Jan 30, 2019

@PaulAnnekov This problem also makes a pain to use the plugin with TypeScript

FYI, DefinitelyTyped/DefinitelyTyped#31440 now allows to extend the TypeScript definition for the plugin options. That means plugins can independently provide declaration files for their public API. For example, the datalabels plugin now exposes these types in the /types folder (9e0026597).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Plugin Usage with Plugin Options | Gatsby
Plugins loaded into a Gatsby site can have options passed in to customize how a plugin operates. This guide refers to creating plugins,...
Read more >
Configure Plugin Options (Tenable.sc 5.23.x)
Configure Plugin Options · In the Total column, view the number of plugins in the family. · To enable or disable all plugins...
Read more >
Guide to Configuring Plug-ins - Apache Maven
To configure the Mojo from your POM with the desired URL, timeout and options you might have something like the following: <project> ......
Read more >
Plugins | Chart.js
Plugin options are located under the options.plugins config and are scoped by the plugin ID: options.plugins.{plugin-id} .
Read more >
Creating Options Pages - WordPress Codex
gif"); ?> The below example uses the new Settings API to create and save your plugin options <?php // create custom plugin settings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found