wa0x6e/cal-heatmap

Tooltip plugin, and others are not importable

spookylukey opened this issue · 2 comments

The docs say this for NPM:

The plugin is built-in in the core CalHeatmap, just import the module with

import { Tooltip } from 'cal-heatmap';

However, this doesn't appear to work. Typescript says Module '"cal-heatmap"' has no exported member 'Tooltip', the package.json doesn't mention the plugins, and cal-heatmap.esm.js file doesn't mention them at all.

Is this a package.json error?

Thanks

4.1.0 has been released with the fix.

Use

import Tooltip from 'cal-heatmap/plugins/Tooltip';

Thanks again!