powerbi-visuals-utils-tooltiputils
v7.1.0
Published
TooltipUtils
Keywords
Readme
Microsoft Power BI visuals TooltipUtils
TooltipUtils is a set of functions and classes in order to simplify usage of the Tooltip API for Power BI custom visuals
Usage
Learn how to install and use the TooltipUtils in your custom visuals:
Development
Common scripts:
| Command | Description |
| --- | --- |
| npm ci | Install pinned dependencies from package-lock.json |
| npm run build | Compile src/ into lib/ with TypeScript declarations and source maps |
| npm test | Run the full Vitest suite once (used by CI) |
| npm run test:watch | Run Vitest in watch mode; re-runs affected tests on file change |
| npm run test:coverage | Run Vitest once and produce a coverage report under coverage/ |
| npm run test:typecheck | Type-check the test/ tree with TypeScript using test/tsconfig.json |
| npm run lint | Lint the codebase with ESLint flat config in eslint.config.mjs |
| npm run lint:fix | Auto-fix lint issues where possible |
TypeScript configs
tsconfig.jsonbuildssrc/intolib/.test/tsconfig.jsonextends the main config, addsvitest/globals, and includestest/files.
Tests
Tests live under test/ and run on Vitest in browser mode using Playwright (headless Chromium, configured in vitest.config.mts).
Contributing
- Read our contribution guideline to find out how to contribute bugs fixes and improvements
- Issue Tracker
License
See the LICENSE file for license rights and limitations (MIT).
