wa0x6e / cal-heatmap

Cal-Heatmap is a javascript charting library to create a time-series calendar heatmap
http://cal-heatmap.com
MIT License
2.73k stars 297 forks source link

Cannot find module 'cal-heatmap/plugins/Tooltip' or its corresponding type declarations.ts(2307) #520

Open zystudios opened 6 months ago

zystudios commented 6 months ago

image

import CalHeatmap from "cal-heatmap";
import Tooltip from 'cal-heatmap/plugins/Tooltip';
import Legend from 'cal-heatmap/plugins/Legend';

image

Official example, the code will run, but with ts warning

thanks

zakhij commented 2 weeks ago

@wa0x6e Are you planning on deprecating the built-in plugins (Tooltip, Legend, LegendLite)? I see that they are excluded from package.json and their corresponding constructor files are gone in version 4.3.0-beta.4.

wa0x6e commented 2 weeks ago

@wa0x6e Are you planning on deprecating the built-in plugins (Tooltip, Legend, LegendLite)? I see that they are excluded from package.json and their corresponding constructor files are gone in version 4.3.0-beta.4.

I am planning to extract them to their own package

zakhij commented 2 weeks ago

I am planning to extract them to their own package

Where can one find this? is it available to view?

wa0x6e commented 2 weeks ago

I am planning to extract them to their own package

Where can one find this? is it available to view?

https://github.com/cal-heatmap

but it still work in progress