Feature/tooltip pointer event (#95) Migrate toolchain to Vitest and TypeScript 6 Replace the Karma/Jasmine setup with Vitest browser mode and v8 coverage Move sources under src/ and add a dedicated test tsconfig Switch ESLint to the flat config format Refresh CI workflows and enable Dependabot Update dependencies and regenerate package-lock.json Fix build and lint after the Vitest migration Remove the unused Karma and webpack configs that broke the flat ESLint run Restore the TooltipShowOptions import lost during the merge Split the tooltip helper into show/move so dataItems types match the API Port the remaining Jasmine spy calls in the tests to Vitest fix: address PR review feedback fix: rebuild before publish and verify build in CI feat: pass pointer events to tooltip delegates chore: revert dependabot formatting fix: address tooltip delegate review comments
Feature/tooltip pointer event (#95)
Replace the Karma/Jasmine setup with Vitest browser mode and v8 coverage
Move sources under src/ and add a dedicated test tsconfig
Switch ESLint to the flat config format
Refresh CI workflows and enable Dependabot
Update dependencies and regenerate package-lock.json
Remove the unused Karma and webpack configs that broke the flat ESLint run
Restore the TooltipShowOptions import lost during the merge
Split the tooltip helper into show/move so dataItems types match the API
Port the remaining Jasmine spy calls in the tests to Vitest
fix: address PR review feedback
fix: rebuild before publish and verify build in CI
feat: pass pointer events to tooltip delegates
chore: revert dependabot formatting
fix: address tooltip delegate review comments
TooltipUtils is a set of functions and classes in order to simplify usage of the Tooltip API for Power BI custom visuals
Learn how to install and use the TooltipUtils in your custom visuals:
Common scripts:
npm ci
package-lock.json
npm run build
src/
lib/
npm test
npm run test:watch
npm run test:coverage
coverage/
npm run test:typecheck
test/
test/tsconfig.json
npm run lint
eslint.config.mjs
npm run lint:fix
tsconfig.json
vitest/globals
Tests live under test/ and run on Vitest in browser mode using Playwright (headless Chromium, configured in vitest.config.mts).
vitest.config.mts
See the LICENSE file for license rights and limitations (MIT).
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Microsoft Power BI visuals TooltipUtils
Usage
Learn how to install and use the TooltipUtils in your custom visuals:
Development
Common scripts:
npm cipackage-lock.jsonnpm run buildsrc/intolib/with TypeScript declarations and source mapsnpm testnpm run test:watchnpm run test:coveragecoverage/npm run test:typechecktest/tree with TypeScript usingtest/tsconfig.jsonnpm run linteslint.config.mjsnpm run lint:fixTypeScript 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 invitest.config.mts).Contributing
License
See the LICENSE file for license rights and limitations (MIT).